Package 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:
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
,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 Modifier and Type Field Description static java.lang.String
MSG_BOX_CHANGED
static java.lang.String
MSG_GEOMETRY_CHANGED
static java.lang.String
MSG_LINK_CHANGED
static java.lang.String
MSG_STYLE_CHANGED
static java.lang.String
MSG_TIME_CHANGED
static java.lang.String
MSG_VIEW_CHANGED
-
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KMLAbstractObject()
protected
KMLAbstractObject(java.lang.String namespaceURI)
Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyChange(KMLAbstractObject sourceValues)
java.lang.String
getId()
Returns the id of this object, if any.KMLRoot
getRoot()
java.lang.String
getTargetId()
Returns the target-id of this object, if any.void
onChange(Message msg)
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, setNamespaceURI, setParent
-
-
-
-
Field Detail
-
MSG_BOX_CHANGED
public static final java.lang.String MSG_BOX_CHANGED
- See Also:
- Constant Field Values
-
MSG_GEOMETRY_CHANGED
public static final java.lang.String MSG_GEOMETRY_CHANGED
- See Also:
- Constant Field Values
-
MSG_LINK_CHANGED
public static final java.lang.String MSG_LINK_CHANGED
- See Also:
- Constant Field Values
-
MSG_STYLE_CHANGED
public static final java.lang.String MSG_STYLE_CHANGED
- See Also:
- Constant Field Values
-
MSG_TIME_CHANGED
public static final java.lang.String MSG_TIME_CHANGED
- See Also:
- Constant Field Values
-
MSG_VIEW_CHANGED
public static final java.lang.String MSG_VIEW_CHANGED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.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.
-
getTargetId
public java.lang.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.
-
getRoot
public KMLRoot getRoot()
- Overrides:
getRoot
in classAbstractXMLEventParser
-
onMessage
public void onMessage(Message msg)
Description copied from interface:MessageListener
Invoked when a message is received.- Specified by:
onMessage
in interfaceMessageListener
- Parameters:
msg
- The message that was received.
-
onChange
public void onChange(Message msg)
-
applyChange
public void applyChange(KMLAbstractObject sourceValues)
-
-