NASA World Wind

gov.nasa.worldwind.ogc.kml
Class KMLDocument

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


Field Summary
protected  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
KMLDocument(String namespaceURI)
          Construct an instance.
 
Method Summary
protected  void addSchema(KMLSchema o)
           
 void applyChange(KMLAbstractObject sourceValues)
           
protected  void doAddEventContent(Object o, XMLEventParserContext ctx, XMLEvent event, Object... args)
           
 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, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schemas

protected List<KMLSchema> schemas
Constructor Detail

KMLDocument

public KMLDocument(String namespaceURI)
Construct an instance.

Parameters:
namespaceURI - the qualifying namespace URI. May be null to indicate no namespace qualification.
Method Detail

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.

NASA World Wind