org.jscience.ml.gml.dom
Class PropertyImpl

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

public class PropertyImpl
extends GMLConstructImpl
implements Property

A DOM-based implementation of the Property interface.


Constructor Summary
PropertyImpl(PropertyOwner owner, org.w3c.dom.Element domElement, GMLDocument document)
          Initializes this property and all GML constructs directly owned by it.
 
Method Summary
 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 property.
 java.lang.String getValueAsString()
          Returns the String value of this property.
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 property.
 
Methods inherited from class org.jscience.ml.gml.dom.GMLConstructImpl
getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributeLine, getDOMElement, getGMLConstructIterator, getGMLDocument, getOwner, getXMLDescriptor, hasCoordinates, hasCoords, 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

PropertyImpl

public PropertyImpl(PropertyOwner owner,
                    org.w3c.dom.Element domElement,
                    GMLDocument document)
Initializes this property and all GML constructs directly owned by it.

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

getValueAsString

public java.lang.String getValueAsString()
Returns the String value of this property. This is to be used for "simple" properties.

Specified by:
getValueAsString in interface Property
Returns:
Null if the property contains no String value or if it is null.

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 property.

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

toString

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

Overrides:
toString in class GMLConstructImpl
Returns:
DOCUMENT ME!

hasProperties

protected boolean hasProperties()
DOCUMENT ME!

Overrides:
hasProperties 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