protected class FileSourceXML.Parser extends Object
Modifier | Constructor and Description |
---|---|
protected |
Parser() |
Modifier and Type | Method and Description |
---|---|
protected String |
__characters()
Read a sequence of characters and return these characters as a
string.
|
protected <T extends Enum<T>> |
checkRequiredAttributes(XMLEvent e,
EnumMap<T,String> attributes,
T... required)
Check if all required attributes are present.
|
protected <T extends Enum<T>> |
getAttributes(Class<T> cls,
StartElement e)
Get attributes of a start element in a map.
|
protected Parser()
protected String __characters() throws IOException, XMLStreamException
IOException
XMLStreamException
protected <T extends Enum<T>> EnumMap<T,String> getAttributes(Class<T> cls, StartElement e)
FileSourceXML.toConstantName(Attribute)
correspond to names
of enumeration constants.T
- type of the enumeration describing attributescls
- class of the enumeration Te
- start event from which attributes have to be extractedprotected <T extends Enum<T>> void checkRequiredAttributes(XMLEvent e, EnumMap<T,String> attributes, T... required) throws XMLStreamException
T
- type of the enumeration describing attributese
- the eventattributes
- extracted attributesrequired
- array of required attributesXMLStreamException
- if at least one required attribute is not foundWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses