Package gov.nasa.worldwind.ogc.kml
Class KMLDocument
- java.lang.Object
-
- All Implemented Interfaces:
MessageListener
,KMLRenderable
,XMLEventParser
public class KMLDocument extends KMLAbstractContainer
Represents the KML Document element and provides access to its contents.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<KMLSchema>
schemas
-
Fields inherited from class gov.nasa.worldwind.ogc.kml.KMLAbstractContainer
features
-
Fields inherited from class gov.nasa.worldwind.ogc.kml.KMLAbstractFeature
balloon, region, styleSelectors, visibility
-
Fields inherited from class gov.nasa.worldwind.ogc.kml.KMLAbstractObject
MSG_BOX_CHANGED, MSG_GEOMETRY_CHANGED, MSG_LINK_CHANGED, MSG_STYLE_CHANGED, MSG_TIME_CHANGED, MSG_VIEW_CHANGED
-
Fields inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
CHARACTERS_CONTENT, fields, namespaceURI, parent
-
-
Constructor Summary
Constructors Constructor Description KMLDocument(java.lang.String namespaceURI)
Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addSchema(KMLSchema o)
void
applyChange(KMLAbstractObject sourceValues)
protected void
doAddEventContent(java.lang.Object o, XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, java.lang.Object... args)
java.util.List<KMLSchema>
getSchemas()
protected void
mergeSchemas(KMLDocument sourceDocument)
Merge a list of incoming schemas with the current list.-
Methods inherited from class gov.nasa.worldwind.ogc.kml.KMLAbstractContainer
addFeature, beginRendering, doPreRender, doRender, endRendering, getFeatures, isFeatureActive, mergeFeatures, onMessage, preRenderFeatures, removeFeature, renderFeatures
-
Methods inherited from class gov.nasa.worldwind.ogc.kml.KMLAbstractFeature
addStyleSelector, getAddress, getAddressDetails, getAuthor, getBalloon, getDescription, getExtendedData, getLink, getName, getOpen, getPhoneNumber, getRegion, getSnippet, getSnippetText, getStyleSelectors, getStyleUrl, getSubStyle, getTimePrimitive, getView, getVisibility, hasStyle, hasStyleSelectors, mergeStyleSelectors, preRender, render, renderBalloon, setBalloon, setRegion, setTimePrimitive, setView, setVisibility
-
Methods inherited from class gov.nasa.worldwind.ogc.kml.KMLAbstractObject
getId, getRoot, getTargetId, onChange
-
Methods inherited from class gov.nasa.worldwind.util.xml.AbstractXMLEventParser
allocate, doAddCharacters, doAddEventAttribute, 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
-
schemas
protected java.util.List<KMLSchema> schemas
-
-
Method Detail
-
doAddEventContent
protected void doAddEventContent(java.lang.Object o, XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, java.lang.Object... args) throws javax.xml.stream.XMLStreamException
- Overrides:
doAddEventContent
in classKMLAbstractContainer
- Throws:
javax.xml.stream.XMLStreamException
-
addSchema
protected void addSchema(KMLSchema o)
-
getSchemas
public java.util.List<KMLSchema> getSchemas()
-
applyChange
public void applyChange(KMLAbstractObject sourceValues)
- Overrides:
applyChange
in classKMLAbstractContainer
-
mergeSchemas
protected void mergeSchemas(KMLDocument sourceDocument)
Merge a list of incoming schemas with the current list. If an incoming schema has the same ID as an existing one, replace the existing one, otherwise just add the incoming one.- Parameters:
sourceDocument
- the incoming document.
-
-