public class KMLParserContext extends BasicXMLEventParserContext
Modifier and Type | Field and Description |
---|---|
protected static java.lang.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 javax.xml.namespace.QName |
COORDINATES
The key used to identify the coordinates parser in the parser context's parser map.
|
protected KMLCoordinatesParser |
coordinatesParser |
protected static java.lang.String[] |
DoubleFields
The names of elements that contain merely double data and can be parsed by a generic double parser.
|
protected static java.lang.String[] |
IntegerFields
The names of elements that contain merely integer data and can be parsed by a generic integer parser.
|
protected static java.lang.String[] |
StringFields
The names of elements that contain merely string data and can be parsed by a generic string parser.
|
BOOLEAN, BOOLEAN_INTEGER, booleanIntegerParser, booleanParser, defaultNamespaceURI, DOUBLE, doubleParser, idTable, INTEGER, integerParser, notificationListener, parsers, reader, STRING, stringParser, UNRECOGNIZED
UNRECOGNIZED_ELEMENT_PARSER
Constructor and Description |
---|
KMLParserContext(KMLParserContext ctx) |
KMLParserContext(java.lang.String defaultNamespace)
Creates a parser context instance.
|
KMLParserContext(javax.xml.stream.XMLEventReader eventReader,
java.lang.String defaultNamespace)
Creates a parser context instance.
|
Modifier and Type | Method and Description |
---|---|
KMLCoordinatesParser |
getCoordinatesParser()
Get the default coordinates parser.
|
protected void |
initializeCompanionParsers() |
protected void |
initializeParsers()
Loads the parser map with the parser to use for each element type.
|
protected void |
initializeParsers(java.lang.String ns) |
protected void |
initializeVersion2dot0Parsers() |
protected void |
initializeVersion2dot1Parsers() |
protected void |
initializeVersion2dot2Parsers() |
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, isStartElement, nextEvent, registerParser, resolveInternalReferences, setDefaultNamespaceURI, setEventReader, setNotificationListener
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected static final java.lang.String[] BooleanFields
protected static javax.xml.namespace.QName COORDINATES
protected KMLCoordinatesParser coordinatesParser
protected static final java.lang.String[] DoubleFields
protected static final java.lang.String[] IntegerFields
protected static final java.lang.String[] StringFields
public KMLParserContext(KMLParserContext ctx)
public KMLParserContext(java.lang.String defaultNamespace)
defaultNamespace
- the default namespace. If null, KMLConstants.KML_NAMESPACE
is used.public KMLParserContext(javax.xml.stream.XMLEventReader eventReader, java.lang.String defaultNamespace)
eventReader
- the event reader from which to read events.defaultNamespace
- the default namespace. If null, KMLConstants.KML_NAMESPACE
is used.public KMLCoordinatesParser getCoordinatesParser()
protected void initializeCompanionParsers()
protected void initializeParsers()
BasicXMLEventParserContext.registerParser(javax.xml.namespace.QName, gov.nasa.worldwind.util.xml.XMLEventParser)
.initializeParsers
in class BasicXMLEventParserContext
protected void initializeParsers(java.lang.String ns)
protected void initializeVersion2dot0Parsers()
protected void initializeVersion2dot1Parsers()
protected void initializeVersion2dot2Parsers()