|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.collada.ColladaAbstractObject
gov.nasa.worldwind.ogc.collada.ColladaLibrary<T>
public class ColladaLibrary<T>
Represents the COLLADA Library element and provides access to its contents. This class can be used for any library element (library_nodes, library_effects, etc.) by specifying a generic parameter that defines the parser for the elements in the library. For example new ColladaLibrary<ColladaNode>(ns) creates a library of ColladaNodes.
| Field Summary | |
|---|---|
protected String |
elementName
Local name of the elements in the library. |
protected List<T> |
elements
Elements in the library. |
| Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser |
|---|
CHARACTERS_CONTENT, fields, namespaceURI, parent |
| Constructor Summary | |
|---|---|
ColladaLibrary(String ns)
Construct an instance. |
|
| Method Summary | |
|---|---|
protected String |
getElementName(String libraryName)
|
List<T> |
getElements()
Indicates the elements in the library. |
Object |
parse(XMLEventParserContext context,
XMLEvent event,
Object... args)
Parse the event and initialize the parser's values to those found in the event. |
void |
setField(String keyName,
Object value)
|
| Methods inherited from class gov.nasa.worldwind.ogc.collada.ColladaAbstractObject |
|---|
getLocalExtent, getRoot |
| Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser |
|---|
allocate, doAddCharacters, doAddEventAttribute, doAddEventContent, doParseEventAttributes, doParseEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parseCharacterContent, removeField, setField, setFields, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String elementName
protected List<T> elements
| Constructor Detail |
|---|
public ColladaLibrary(String ns)
ns - the qualifying namespace URI. May be null to indicate no namespace qualification.| Method Detail |
|---|
protected String getElementName(String libraryName)
public List<T> getElements()
public Object parse(XMLEventParserContext context,
XMLEvent event,
Object... args)
throws XMLStreamException
parse in interface XMLEventParserparse in class AbstractXMLEventParsercontext - 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.
XMLStreamException - if an exception occurs during event-stream reading.
public void setField(String keyName,
Object value)
setField in class AbstractXMLEventParser
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||