public class ColladaLibrary<T> extends ColladaAbstractObject
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
elementName
Local name of the elements in the library.
|
protected java.util.List<T> |
elements
Elements in the library.
|
CHARACTERS_CONTENT, fields, namespaceURI, parent
Constructor and Description |
---|
ColladaLibrary(java.lang.String ns)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getElementName(java.lang.String libraryName) |
java.util.List<T> |
getElements()
Indicates the elements in the library.
|
java.lang.Object |
parse(XMLEventParserContext context,
javax.xml.stream.events.XMLEvent event,
java.lang.Object... args)
Parse the event and initialize the parser's values to those found in the event.
|
void |
setField(java.lang.String keyName,
java.lang.Object value) |
getLocalExtent, getRoot
allocate, doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, doParseEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parseCharacterContent, removeField, setField, setFields, setNamespaceURI, setParent
protected java.lang.String elementName
protected java.util.List<T> elements
public ColladaLibrary(java.lang.String ns)
ns
- the qualifying namespace URI. May be null to indicate no namespace qualification.protected java.lang.String getElementName(java.lang.String libraryName)
public java.util.List<T> getElements()
public java.lang.Object parse(XMLEventParserContext context, javax.xml.stream.events.XMLEvent event, java.lang.Object... args) throws javax.xml.stream.XMLStreamException
parse
in interface XMLEventParser
parse
in class AbstractXMLEventParser
context
- a current parser context.event
- the event to parse.args
- an optional list of arguments that may by used by subclasses.this
, otherwise returns null.javax.xml.stream.XMLStreamException
- if an exception occurs during event-stream reading.public void setField(java.lang.String keyName, java.lang.Object value)
setField
in class AbstractXMLEventParser