org.jscience.ml.gml.dom
Class UnknownConstructImpl

java.lang.Object
  extended by org.jscience.ml.gml.dom.GMLConstructImpl
      extended by org.jscience.ml.gml.dom.UnknownConstructImpl
All Implemented Interfaces:
FeatureOwner, GeometryOwner, GMLConstruct, GMLConstructOwner, PropertyOwner, UnknownConstruct, UnknownConstructOwner, XMLDescribable

public class UnknownConstructImpl
extends GMLConstructImpl
implements UnknownConstruct

Represents a GML construct that isn't of any familiar kind such as geometry or feature. This is just a wrapper around a DOM element. Users may ignore objects of this type or use the underlying DOM element.


Constructor Summary
UnknownConstructImpl(UnknownConstructOwner owner, org.w3c.dom.Element domElement, GMLDocument document)
          Initializes this GML construct and all GML constructs directly owned by it.
 
Method Summary
 java.lang.Object convertToFamiliarForm()
          Returns the underlying DOM element.
 FeatureIterator getFeatureIterator()
          Provides access to features owned by this FeatureOwner.
 GeometryIterator getGeometryIterator()
          Provides access to geometries owned by this GeometryOwner.
 PropertyIterator getPropertyIterator()
          Returns an iterator to all properties of this feature.
 UnknownConstructIterator getUnknownConstructIterator()
          Returns an iterator to all unknown constructs of this unknown construct.
protected  boolean hasCoordinates()
          DOCUMENT ME!
protected  boolean hasCoords()
          DOCUMENT ME!
protected  boolean hasFeatures()
          DOCUMENT ME!
protected  boolean hasGeometries()
          DOCUMENT ME!
protected  boolean hasProperties()
          DOCUMENT ME!
protected  boolean hasUnknownConstructs()
          DOCUMENT ME!
protected  void refreshInternals()
          Refreshes the internal data cache from the DOM source tree.
 java.lang.String toString()
          Returns a one-line string representation of this unknown construct.
 
Methods inherited from class org.jscience.ml.gml.dom.GMLConstructImpl
getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributeLine, getDOMElement, getGMLConstructIterator, getGMLDocument, getOwner, getXMLDescriptor, setGMLDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jscience.ml.gml.infoset.GMLConstruct
getAttribute, getAttribute, getAttribute, getAttributeCount, getOwner
 
Methods inherited from interface org.jscience.ml.gml.infoset.XMLDescribable
getXMLDescriptor
 
Methods inherited from interface org.jscience.ml.gml.infoset.GMLConstructOwner
getGMLConstructIterator
 

Constructor Detail

UnknownConstructImpl

public UnknownConstructImpl(UnknownConstructOwner owner,
                            org.w3c.dom.Element domElement,
                            GMLDocument document)
Initializes this GML construct and all GML constructs directly owned by it.

Parameters:
owner - The owner of this unknown construct.
domElement - The corresponding DOM element.
document - DOCUMENT ME!
Method Detail

convertToFamiliarForm

public java.lang.Object convertToFamiliarForm()
Returns the underlying DOM element.

Specified by:
convertToFamiliarForm in interface UnknownConstruct
Returns:
DOCUMENT ME!

getFeatureIterator

public FeatureIterator getFeatureIterator()
Provides access to features owned by this FeatureOwner.

Specified by:
getFeatureIterator in interface FeatureOwner
Returns:
FeatureIterator that can be used for iterating on features.

getGeometryIterator

public GeometryIterator getGeometryIterator()
Provides access to geometries owned by this GeometryOwner.

Specified by:
getGeometryIterator in interface GeometryOwner
Returns:
GeometryIterator that can be used for iterating on geometries.

getPropertyIterator

public PropertyIterator getPropertyIterator()
Returns an iterator to all properties of this feature.

Specified by:
getPropertyIterator in interface PropertyOwner
Returns:
DOCUMENT ME!

getUnknownConstructIterator

public UnknownConstructIterator getUnknownConstructIterator()
Returns an iterator to all unknown constructs of this unknown construct.

Specified by:
getUnknownConstructIterator in interface UnknownConstructOwner
Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
Returns a one-line string representation of this unknown construct.

Overrides:
toString in class GMLConstructImpl
Returns:
DOCUMENT ME!

hasProperties

protected boolean hasProperties()
DOCUMENT ME!

Overrides:
hasProperties in class GMLConstructImpl
Returns:
DOCUMENT ME!

hasCoords

protected boolean hasCoords()
DOCUMENT ME!

Overrides:
hasCoords in class GMLConstructImpl
Returns:
DOCUMENT ME!

hasCoordinates

protected boolean hasCoordinates()
DOCUMENT ME!

Overrides:
hasCoordinates in class GMLConstructImpl
Returns:
DOCUMENT ME!

hasGeometries

protected boolean hasGeometries()
DOCUMENT ME!

Overrides:
hasGeometries in class GMLConstructImpl
Returns:
DOCUMENT ME!

hasFeatures

protected boolean hasFeatures()
DOCUMENT ME!

Overrides:
hasFeatures in class GMLConstructImpl
Returns:
DOCUMENT ME!

hasUnknownConstructs

protected boolean hasUnknownConstructs()
DOCUMENT ME!

Overrides:
hasUnknownConstructs in class GMLConstructImpl
Returns:
DOCUMENT ME!

refreshInternals

protected void refreshInternals()
Refreshes the internal data cache from the DOM source tree. This method should be called each time the underlying DOM structure has changed.

Overrides:
refreshInternals in class GMLConstructImpl