|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.ml.gml.dom.GMLDocument
public class GMLDocument
Encapsulates a DOM-based GML document, i.e. an XML document, whose root element is a GML feature/feature collection.
| Constructor Summary | |
|---|---|
GMLDocument(org.w3c.dom.Document domDocument)
Initializes a GMLDocument object with the given DOM document. |
|
| Method Summary | |
|---|---|
org.w3c.dom.Document |
getDOMDocument()
Returns the underlying DOM document. |
FeatureIterator |
getFeatureIterator()
Returns a feature iterator on the root feature of this document. |
GMLConstructIterator |
getGMLConstructIterator()
Provide access to all GML constructs on the top most level. |
Feature |
getRootFeature()
Returns the root feature or feature collection. |
boolean |
isCoord(java.lang.String namespaceURI,
java.lang.String localName)
Determines if the given element tag refers to a "coord". |
boolean |
isCoordinates(java.lang.String namespaceURI,
java.lang.String localName)
Determines if the given element tag refers to a "coordinates". |
boolean |
isFeature(java.lang.String namespaceURI,
java.lang.String localName)
Determines if the given element tag refers to a feature. |
boolean |
isFeatureCollection(java.lang.String namespaceURI,
java.lang.String localName)
Determines if the given element tag refers to a feature collection. |
boolean |
isGeometry(java.lang.String namespaceURI,
java.lang.String localName)
Determines if the given element tag refers to a geometry. |
boolean |
isGeometryCollection(java.lang.String namespaceURI,
java.lang.String localName)
Determines if the given element tag refers to a geometry collection. |
boolean |
isProperty(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String parentNamespaceURI,
java.lang.String parentLocalName)
Determines if the given element tag refers to a property. |
protected void |
refreshInternals()
Refreshes the internal structure. |
void |
resolveSchemaLocations()
Attempts to read schemas at the specified locations (in the document). |
void |
setDocument(org.w3c.dom.Document document)
Sets the DOM document and rebuilds the structure. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GMLDocument(org.w3c.dom.Document domDocument)
throws XMLException
domDocument - DOCUMENT ME!
XMLException - DOCUMENT ME!| Method Detail |
|---|
public FeatureIterator getFeatureIterator()
getFeatureIterator in interface FeatureOwnerpublic GMLConstructIterator getGMLConstructIterator()
getGMLConstructIterator in interface GMLConstructOwner
public boolean isFeatureCollection(java.lang.String namespaceURI,
java.lang.String localName)
namespaceURI - DOCUMENT ME!localName - DOCUMENT ME!
public boolean isFeature(java.lang.String namespaceURI,
java.lang.String localName)
namespaceURI - DOCUMENT ME!localName - DOCUMENT ME!
public boolean isGeometryCollection(java.lang.String namespaceURI,
java.lang.String localName)
namespaceURI - DOCUMENT ME!localName - DOCUMENT ME!
public boolean isGeometry(java.lang.String namespaceURI,
java.lang.String localName)
namespaceURI - DOCUMENT ME!localName - DOCUMENT ME!
public boolean isProperty(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String parentNamespaceURI,
java.lang.String parentLocalName)
namespaceURI - DOCUMENT ME!localName - DOCUMENT ME!parentNamespaceURI - DOCUMENT ME!parentLocalName - DOCUMENT ME!
public boolean isCoordinates(java.lang.String namespaceURI,
java.lang.String localName)
namespaceURI - DOCUMENT ME!localName - DOCUMENT ME!
public boolean isCoord(java.lang.String namespaceURI,
java.lang.String localName)
namespaceURI - DOCUMENT ME!localName - DOCUMENT ME!
public Feature getRootFeature()
public org.w3c.dom.Document getDOMDocument()
public void setDocument(org.w3c.dom.Document document)
throws XMLException
document - DOCUMENT ME!
XMLException - DOCUMENT ME!
protected void refreshInternals()
throws XMLException
XMLException - DOCUMENT ME!
public void resolveSchemaLocations()
throws XMLException
XMLException - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||