Class KMLDocument

    • Field Detail

      • schemas

        protected java.util.List<KMLSchema> schemas
    • Constructor Detail

      • KMLDocument

        public KMLDocument​(java.lang.String namespaceURI)
        Construct an instance.
        Parameters:
        namespaceURI - the qualifying namespace URI. May be null to indicate no namespace qualification.
    • 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 class KMLAbstractContainer
        Throws:
        javax.xml.stream.XMLStreamException
      • addSchema

        protected void addSchema​(KMLSchema o)
      • getSchemas

        public java.util.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.