gov.nasa.worldwind.ogc.kml
Class KMLAbstractObject
java.lang.Object
gov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.kml.KMLAbstractObject
- All Implemented Interfaces:
- MessageListener, XMLEventParser
- Direct Known Subclasses:
- ColladaAbstractObject, GXAbstractTourPrimitive, GXLatLongQuad, GXPlaylist, KMLAbstractFeature, KMLAbstractGeometry, KMLAbstractLatLonBoxType, KMLAbstractStyleSelector, KMLAbstractSubStyle, KMLAbstractTimePrimitive, KMLAbstractView, KMLAlias, KMLBoundary, KMLData, KMLExtendedData, KMLImagePyramid, KMLItemIcon, KMLLink, KMLLocation, KMLLod, KMLOrientation, KMLPair, KMLRegion, KMLResourceMap, KMLRoot, KMLScale, KMLSchemaData, KMLSnippet, KMLStyleUrl, KMLUpdate, KMLVec2, KMLViewVolume, UnrecognizedXMLEventParser, XALAddressDetails
public abstract class KMLAbstractObject
- extends AbstractXMLEventParser
- implements MessageListener
The abstract base class for most KML classes. Provides parsing and access to the id and targetId fields
of KML elements.
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, parse, parseCharacterContent, removeField, setField, setField, setFields, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KMLAbstractObject
protected KMLAbstractObject()
KMLAbstractObject
protected KMLAbstractObject(String namespaceURI)
- Construct an instance.
- Parameters:
namespaceURI
- the qualifying namespace URI. May be null to indicate no namespace qualification.
getId
public String getId()
- Returns the id of this object, if any.
- Returns:
- the id of this object, or null if it's not specified in the element.
getRoot
public KMLRoot getRoot()
- Overrides:
getRoot
in class AbstractXMLEventParser
getTargetId
public String getTargetId()
- Returns the target-id of this object, if any.
- Returns:
- the targetId of this object, or null if it's not specified in the element.
onMessage
public void onMessage(Message msg)
- Description copied from interface:
MessageListener
- Invoked when a message is received.
- Specified by:
onMessage
in interface MessageListener
- Parameters:
msg
- The message that was received.