|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.util.xml.BasicXMLEventParserContext
gov.nasa.worldwind.ogc.kml.KMLParserContext
public class KMLParserContext
The parser context for KML and KMZ docuements. Specifies the classes used to parse each type of KML element.
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 KMLCoordinatesParser |
coordinatesParser
|
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 | |
---|---|
KMLParserContext(KMLParserContext ctx)
|
|
KMLParserContext(String defaultNamespace)
Creates a parser context instance. |
|
KMLParserContext(javax.xml.stream.XMLEventReader eventReader,
String defaultNamespace)
Creates a parser context instance. |
Method Summary | |
---|---|
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(String ns)
|
protected void |
initializeVersion2dot0Parsers()
|
protected void |
initializeVersion2dot1Parsers()
|
protected void |
initializeVersion2dot2Parsers()
|
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 |
---|
protected static final String[] BooleanFields
protected static QName COORDINATES
protected KMLCoordinatesParser coordinatesParser
protected static final String[] DoubleFields
protected static final String[] IntegerFields
protected static final String[] StringFields
Constructor Detail |
---|
public KMLParserContext(KMLParserContext ctx)
public KMLParserContext(String defaultNamespace)
defaultNamespace
- the default namespace. If null, KMLConstants.KML_NAMESPACE
is used.public KMLParserContext(javax.xml.stream.XMLEventReader eventReader, String defaultNamespace)
eventReader
- the event reader from which to read events.defaultNamespace
- the default namespace. If null, KMLConstants.KML_NAMESPACE
is used.Method Detail |
---|
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(String ns)
protected void initializeVersion2dot0Parsers()
protected void initializeVersion2dot1Parsers()
protected void initializeVersion2dot2Parsers()
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |