public class ExtendingMetaDataParser<MD extends ExtendableMetaData> extends AbstractMetaDataParser<MD>
MetaDataElementParser.DTDInfo
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
Constructor and Description |
---|
ExtendingMetaDataParser(ExtendableMetaDataParser<MD> delegate,
Map<String,AbstractMetaDataParser<?>> parsers) |
Modifier and Type | Method and Description |
---|---|
protected AbstractMetaDataParser<?> |
getParser(String uri) |
MD |
parse(XMLStreamReader reader)
Start parsing and generate the associated meta-data.
|
void |
processAttribute(MD metaData,
XMLStreamReader reader,
int i) |
protected void |
processAttributes(MD metaData,
XMLStreamReader reader) |
protected void |
processElement(MD metaData,
XMLStreamReader reader)
Process the single element.
|
processElements
attributeHasNamespace, duplicateNamedElement, equals, getElementText, getElementText, hashCode, missingRequired, missingRequiredElement, parseQName, readBooleanAttributeElement, readDTDLocation, readSchemaLocation, readStringAttributeElement, requireNoAttributes, requireNoContent, safeCopyMap, unexpectedAttribute, unexpectedElement, unexpectedValue
public ExtendingMetaDataParser(ExtendableMetaDataParser<MD> delegate, Map<String,AbstractMetaDataParser<?>> parsers)
protected AbstractMetaDataParser<?> getParser(String uri)
public MD parse(XMLStreamReader reader) throws XMLStreamException
AbstractMetaDataParser
parse
in class AbstractMetaDataParser<MD extends ExtendableMetaData>
XMLStreamException
protected void processAttributes(MD metaData, XMLStreamReader reader) throws XMLStreamException
XMLStreamException
public void processAttribute(MD metaData, XMLStreamReader reader, int i) throws XMLStreamException
XMLStreamException
protected void processElement(MD metaData, XMLStreamReader reader) throws XMLStreamException
AbstractMetaDataParser
processElement
in class AbstractMetaDataParser<MD extends ExtendableMetaData>
XMLStreamException
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.