org.jscience.ml.gml.dom
Class CoordinatesImpl

java.lang.Object
  extended by org.jscience.ml.gml.dom.GMLConstructImpl
      extended by org.jscience.ml.gml.dom.CoordinatesImpl
All Implemented Interfaces:
Coordinates, GMLConstruct, GMLConstructOwner, UnknownConstructOwner, XMLDescribable

public class CoordinatesImpl
extends GMLConstructImpl
implements Coordinates

A DOM-based implementation of the Coordinates interface.


Field Summary
static java.lang.String DEFAULT_COORDINATE_DELIMITOR
          DOCUMENT ME!
static java.lang.String DEFAULT_COORDINATE_TUPLE_DELIMITOR
          DOCUMENT ME!
 
Constructor Summary
CoordinatesImpl(Geometry owner, org.w3c.dom.Element domElement, GMLDocument document)
          Initializes this coordinates construct and all GML constructs directly owned by it.
 
Method Summary
 CoordinateTupleIterator getCoordinateTupleIterator()
          Provides access to coordinate tuples in this coordinates' construct.
 UnknownConstructIterator getUnknownConstructIterator()
          Returns an iterator to all unknown constructs of this feature.
protected  void refreshInternals()
          Refreshes the internal cache of owned GML constructs.
 java.lang.String toString()
          Returns a one-line string representation of this GML construct.
 
Methods inherited from class org.jscience.ml.gml.dom.GMLConstructImpl
getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributeLine, getDOMElement, getGMLConstructIterator, getGMLDocument, getOwner, getXMLDescriptor, hasCoordinates, hasCoords, hasFeatures, hasGeometries, hasProperties, hasUnknownConstructs, 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
 

Field Detail

DEFAULT_COORDINATE_TUPLE_DELIMITOR

public static final java.lang.String DEFAULT_COORDINATE_TUPLE_DELIMITOR
DOCUMENT ME!

See Also:
Constant Field Values

DEFAULT_COORDINATE_DELIMITOR

public static final java.lang.String DEFAULT_COORDINATE_DELIMITOR
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

CoordinatesImpl

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

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

getCoordinateTupleIterator

public CoordinateTupleIterator getCoordinateTupleIterator()
Provides access to coordinate tuples in this coordinates' construct.

Specified by:
getCoordinateTupleIterator in interface Coordinates
Returns:
Returns an iterator to coordinate tuples. Cannot be null.

getUnknownConstructIterator

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

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

toString

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

Overrides:
toString in class GMLConstructImpl
Returns:
DOCUMENT ME!

refreshInternals

protected void refreshInternals()
Refreshes the internal cache of owned GML constructs.

Overrides:
refreshInternals in class GMLConstructImpl