org.jscience.ml.gml.dom
Class FeatureCollectionImpl

java.lang.Object
  extended by org.jscience.ml.gml.dom.GMLConstructImpl
      extended by org.jscience.ml.gml.dom.FeatureImpl
          extended by org.jscience.ml.gml.dom.FeatureCollectionImpl
All Implemented Interfaces:
Feature, FeatureCollection, FeatureOwner, GMLConstruct, GMLConstructOwner, PropertyOwner, UnknownConstructOwner, XMLDescribable

public class FeatureCollectionImpl
extends FeatureImpl
implements FeatureCollection

A DOM-based implementation of the FeatureCollection interface.


Field Summary
 
Fields inherited from interface org.jscience.ml.gml.infoset.Feature
BOUNDED_BY_PROP, DESCRIPTION_PROP, FID_ATTR, NAME_PROP
 
Constructor Summary
protected FeatureCollectionImpl(FeatureOwner owner, org.w3c.dom.Element domElement, GMLDocument document)
          Calls the superclass constructor.
 
Method Summary
 FeatureIterator getFeatureIterator()
          Provides access to features owned by this FeatureOwner.
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.FeatureImpl
getBoundedBy, getDescription, getId, getName, getPropertyIterator, getUnknownConstructIterator, hasProperties, hasUnknownConstructs, newFeature
 
Methods inherited from class org.jscience.ml.gml.dom.GMLConstructImpl
getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributeLine, getDOMElement, getGMLConstructIterator, getGMLDocument, getOwner, getXMLDescriptor, hasCoordinates, hasCoords, 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.Feature
getBoundedBy, getDescription, getId, getName
 
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.UnknownConstructOwner
getUnknownConstructIterator
 
Methods inherited from interface org.jscience.ml.gml.infoset.PropertyOwner
getPropertyIterator
 
Methods inherited from interface org.jscience.ml.gml.infoset.GMLConstructOwner
getGMLConstructIterator
 

Constructor Detail

FeatureCollectionImpl

protected FeatureCollectionImpl(FeatureOwner owner,
                                org.w3c.dom.Element domElement,
                                GMLDocument document)
Calls the superclass constructor. This constructor should be called only from the method Feature.newFeature().

#see Feature.newFeature()

Method Detail

getFeatureIterator

public FeatureIterator getFeatureIterator()
Provides access to features owned by this FeatureOwner. Works only for features contained via featureMember element.

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

toString

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

Overrides:
toString in class FeatureImpl
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 FeatureImpl