NASA World Wind

gov.nasa.worldwind.ogc.kml
Class KMLAbstractObject

java.lang.Object
  extended by gov.nasa.worldwind.util.xml.AbstractXMLEventParser
      extended by 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.


Field Summary
 
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
 
Constructor Summary
protected KMLAbstractObject()
           
protected KMLAbstractObject(String namespaceURI)
          Construct an instance.
 
Method Summary
 String getId()
          Returns the id of this object, if any.
 KMLRoot getRoot()
           
 String getTargetId()
          Returns the target-id of this object, if any.
 void onMessage(Message msg)
          Invoked when a message is received.
 
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
 

Constructor Detail

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.
Method Detail

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.

NASA World Wind