gov.nasa.worldwind.ogc.kml
Class KMLDocument
java.lang.Object
gov.nasa.worldwind.util.xml.AbstractXMLEventParser
gov.nasa.worldwind.ogc.kml.KMLAbstractObject
gov.nasa.worldwind.ogc.kml.KMLAbstractFeature
gov.nasa.worldwind.ogc.kml.KMLAbstractContainer
gov.nasa.worldwind.ogc.kml.KMLDocument
- All Implemented Interfaces:
- MessageListener, KMLRenderable, XMLEventParser
public class KMLDocument
- extends KMLAbstractContainer
Represents the KML Document element and provides access to its contents.
| 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.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, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
schemas
protected List<KMLSchema> schemas
KMLDocument
public KMLDocument(String namespaceURI)
- Construct an instance.
- Parameters:
namespaceURI - the qualifying namespace URI. May be null to indicate no namespace qualification.
addSchema
protected void addSchema(KMLSchema o)
applyChange
public void applyChange(KMLAbstractObject sourceValues)
- Overrides:
applyChange in class KMLAbstractContainer
doAddEventContent
protected void doAddEventContent(Object o,
XMLEventParserContext ctx,
XMLEvent event,
Object... args)
throws XMLStreamException
- Overrides:
doAddEventContent in class KMLAbstractContainer
- Throws:
XMLStreamException
getSchemas
public List<KMLSchema> getSchemas()
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.