NASA World Wind

gov.nasa.worldwind.ogc.collada
Class ColladaParserContext

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.util.xml.BasicXMLEventParserContext
          extended by gov.nasa.worldwind.ogc.collada.ColladaParserContext
All Implemented Interfaces:
AVList, XMLEventParserContext

public class ColladaParserContext
extends BasicXMLEventParserContext

The parser context for Collada documents.


Field Summary
protected static String[] BooleanFields
          The names of elements that contain merely boolean integer (0 or 1) data and can be parsed by a generic boolean integer parser.
protected static QName COORDINATES
          The key used to identify the coordinates parser in the parser context's parser map.
protected static String[] DoubleFields
          The names of elements that contain merely double data and can be parsed by a generic double parser.
protected static String[] IntegerFields
          The names of elements that contain merely integer data and can be parsed by a generic integer parser.
protected static String[] StringFields
          The names of elements that contain merely string data and can be parsed by a generic string parser.
 
Fields inherited from class gov.nasa.worldwind.util.xml.BasicXMLEventParserContext
BOOLEAN, BOOLEAN_INTEGER, booleanIntegerParser, booleanParser, defaultNamespaceURI, DOUBLE, doubleParser, idTable, INTEGER, integerParser, notificationListener, parsers, reader, STRING, stringParser, UNRECOGNIZED
 
Fields inherited from interface gov.nasa.worldwind.util.xml.XMLEventParserContext
UNRECOGNIZED_ELEMENT_PARSER
 
Constructor Summary
ColladaParserContext(ColladaParserContext ctx)
           
ColladaParserContext(String defaultNamespace)
          Creates a parser context instance.
ColladaParserContext(XMLEventReader eventReader, String defaultNamespace)
          Creates a parser context instance.
 
Method Summary
protected  void initializeParsers()
          Loads the parser map with the parser to use for each element type.
protected  void initializeParsers(String ns)
           
 
Methods inherited from class gov.nasa.worldwind.util.xml.BasicXMLEventParserContext
addBooleanIntegerParsers, addBooleanParsers, addDoubleParsers, addId, addIntegerParsers, addStringParsers, allocate, allocate, getBooleanIntegerParser, getBooleanParser, getCharacters, getDefaultNamespaceURI, getDoubleParser, getEventReader, getIdTable, getIntegerParser, getParser, getParser, getParser, getStringParser, getUnrecognizedElementParser, hasNext, initialize, initializeDefaultNotificationListener, isDefaultNamespace, isEndElement, isEndElementEvent, isNullNamespace, isSameAttributeName, isSameName, isStartElement, nextEvent, registerParser, resolveInternalReferences, setDefaultNamespaceURI, setEventReader, setNotificationListener
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 

Field Detail

BooleanFields

protected static final String[] BooleanFields
The names of elements that contain merely boolean integer (0 or 1) data and can be parsed by a generic boolean integer parser.


COORDINATES

protected static QName COORDINATES
The key used to identify the coordinates parser in the parser context's parser map.


DoubleFields

protected static final String[] DoubleFields
The names of elements that contain merely double data and can be parsed by a generic double parser.


IntegerFields

protected static final String[] IntegerFields
The names of elements that contain merely integer data and can be parsed by a generic integer parser.


StringFields

protected static final String[] StringFields
The names of elements that contain merely string data and can be parsed by a generic string parser.

Constructor Detail

ColladaParserContext

public ColladaParserContext(ColladaParserContext ctx)

ColladaParserContext

public ColladaParserContext(String defaultNamespace)
Creates a parser context instance.

Parameters:
defaultNamespace - the default namespace. If null, ColladaConstants.COLLADA_NAMESPACE

ColladaParserContext

public ColladaParserContext(XMLEventReader eventReader,
                            String defaultNamespace)
Creates a parser context instance.

Parameters:
eventReader - the event reader from which to read events.
defaultNamespace - the default namespace. If null, ColladaConstants.COLLADA_NAMESPACE
Method Detail

initializeParsers

protected void initializeParsers()
Loads the parser map with the parser to use for each element type. The parser may be changed by calling BasicXMLEventParserContext.registerParser(javax.xml.namespace.QName, gov.nasa.worldwind.util.xml.XMLEventParser).

Overrides:
initializeParsers in class BasicXMLEventParserContext

initializeParsers

protected void initializeParsers(String ns)

NASA World Wind