org.jscience.ml.gml.dom
Class GeometryCollectionImpl

java.lang.Object
  extended by org.jscience.ml.gml.dom.GMLConstructImpl
      extended by org.jscience.ml.gml.dom.GeometryImpl
          extended by org.jscience.ml.gml.dom.GeometryCollectionImpl
All Implemented Interfaces:
Geometry, GeometryCollection, GeometryOwner, GMLConstruct, GMLConstructOwner, PropertyOwner, UnknownConstructOwner, XMLDescribable

public class GeometryCollectionImpl
extends GeometryImpl
implements GeometryCollection

A DOM-based implementation of the GeometryCollection interface.


Field Summary
 
Fields inherited from interface org.jscience.ml.gml.infoset.Geometry
GID_ATTR, SRS_NAME_ATTR
 
Constructor Summary
protected GeometryCollectionImpl(GeometryOwner owner, org.w3c.dom.Element domElement, GMLDocument document)
          Initializes this geometry collection and all GML constructs directly owned by it.
 
Method Summary
 GeometryIterator getGeometryIterator()
          DOCUMENT ME!
protected  boolean hasCoordinates()
          DOCUMENT ME!
protected  boolean hasCoords()
          DOCUMENT ME!
protected  void refreshInternals()
          Refreshes the internal data cache from the DOM source tree.
 java.lang.String toString()
          Returns a one-line string description of this object.
 
Methods inherited from class org.jscience.ml.gml.dom.GeometryImpl
getCoordinateTupleIterator, getId, getInnerBoundaryIterator, getPropertyIterator, getSRSName, getUnknownConstructIterator, hasProperties, hasUnknownConstructs, newGeometry
 
Methods inherited from class org.jscience.ml.gml.dom.GMLConstructImpl
getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributeLine, getDOMElement, getGMLConstructIterator, getGMLDocument, getOwner, getXMLDescriptor, hasFeatures, hasGeometries, 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.Geometry
getCoordinateTupleIterator, getId, getInnerBoundaryIterator, getSRSName
 
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.PropertyOwner
getPropertyIterator
 
Methods inherited from interface org.jscience.ml.gml.infoset.UnknownConstructOwner
getUnknownConstructIterator
 
Methods inherited from interface org.jscience.ml.gml.infoset.GMLConstructOwner
getGMLConstructIterator
 

Constructor Detail

GeometryCollectionImpl

protected GeometryCollectionImpl(GeometryOwner owner,
                                 org.w3c.dom.Element domElement,
                                 GMLDocument document)
Initializes this geometry collection and all GML constructs directly owned by it. Should be called from newGeometry() method only.

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

getGeometryIterator

public GeometryIterator getGeometryIterator()
DOCUMENT ME!

Specified by:
getGeometryIterator in interface GeometryOwner
Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
Returns a one-line string description of this object.

Overrides:
toString in class GeometryImpl
Returns:
DOCUMENT ME!

hasCoords

protected boolean hasCoords()
DOCUMENT ME!

Overrides:
hasCoords in class GeometryImpl
Returns:
DOCUMENT ME!

hasCoordinates

protected boolean hasCoordinates()
DOCUMENT ME!

Overrides:
hasCoordinates in class GeometryImpl
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 GeometryImpl