org.jscience.ml.gml.dom
Class GMLConstructImpl

java.lang.Object
  extended by org.jscience.ml.gml.dom.GMLConstructImpl
All Implemented Interfaces:
GMLConstruct, GMLConstructOwner, XMLDescribable
Direct Known Subclasses:
CoordImpl, CoordinatesImpl, FeatureImpl, GeometryImpl, PropertyImpl, UnknownConstructImpl

public abstract class GMLConstructImpl
extends java.lang.Object
implements GMLConstruct

DOM-based implementation of the GMLConstruct interface.


Constructor Summary
protected GMLConstructImpl(GMLConstructOwner owner, org.w3c.dom.Element domElement, GMLDocument document)
          Creates a new GMLConstructImpl object.
 
Method Summary
 Attribute getAttribute(int index)
          DOCUMENT ME!
 Attribute getAttribute(java.lang.String localName)
          DOCUMENT ME!
 Attribute getAttribute(java.lang.String namespace, java.lang.String localName)
          DOCUMENT ME!
 int getAttributeCount()
          DOCUMENT ME!
 java.lang.String getAttributeLine()
          DOCUMENT ME!
 org.w3c.dom.Element getDOMElement()
          Returns the DOM element that was used as source for this feature object.
 GMLConstructIterator getGMLConstructIterator()
          Provide access to all GML constructs.
 GMLDocument getGMLDocument()
          DOCUMENT ME!
 GMLConstructOwner getOwner()
          Returns the direct owner of this GML construct.
 XMLDescriptor getXMLDescriptor()
          Returns the XML descriptor for this GML 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()
          DOCUMENT ME!
 void setGMLDocument(GMLDocument gmlDocument)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GMLConstructImpl

protected GMLConstructImpl(GMLConstructOwner owner,
                           org.w3c.dom.Element domElement,
                           GMLDocument document)
Creates a new GMLConstructImpl object.

Parameters:
owner - DOCUMENT ME!
domElement - DOCUMENT ME!
document - DOCUMENT ME!
Method Detail

setGMLDocument

public void setGMLDocument(GMLDocument gmlDocument)
DOCUMENT ME!

Parameters:
gmlDocument - DOCUMENT ME!

getGMLDocument

public GMLDocument getGMLDocument()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getOwner

public GMLConstructOwner getOwner()
Returns the direct owner of this GML construct.

Specified by:
getOwner in interface GMLConstruct
Returns:
DOCUMENT ME!

getGMLConstructIterator

public GMLConstructIterator getGMLConstructIterator()
Provide access to all GML constructs. This method may be used to recursively scan the GML object model.

Specified by:
getGMLConstructIterator in interface GMLConstructOwner
Returns:
DOCUMENT ME!

getXMLDescriptor

public XMLDescriptor getXMLDescriptor()
Returns the XML descriptor for this GML construct.

Specified by:
getXMLDescriptor in interface XMLDescribable
Returns:
DOCUMENT ME!

getAttributeCount

public int getAttributeCount()
DOCUMENT ME!

Specified by:
getAttributeCount in interface GMLConstruct
Returns:
DOCUMENT ME!

getAttribute

public Attribute getAttribute(int index)
DOCUMENT ME!

Specified by:
getAttribute in interface GMLConstruct
Parameters:
index - DOCUMENT ME!
Returns:
DOCUMENT ME!

getAttribute

public Attribute getAttribute(java.lang.String namespace,
                              java.lang.String localName)
DOCUMENT ME!

Specified by:
getAttribute in interface GMLConstruct
Parameters:
namespace - DOCUMENT ME!
localName - DOCUMENT ME!
Returns:
DOCUMENT ME!

getAttribute

public Attribute getAttribute(java.lang.String localName)
DOCUMENT ME!

Specified by:
getAttribute in interface GMLConstruct
Parameters:
localName - DOCUMENT ME!
Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!

getAttributeLine

public java.lang.String getAttributeLine()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getDOMElement

public org.w3c.dom.Element getDOMElement()
Returns the DOM element that was used as source for this feature object.

Returns:
DOCUMENT ME!

hasProperties

protected boolean hasProperties()
DOCUMENT ME!

Returns:
DOCUMENT ME!

hasCoords

protected boolean hasCoords()
DOCUMENT ME!

Returns:
DOCUMENT ME!

hasCoordinates

protected boolean hasCoordinates()
DOCUMENT ME!

Returns:
DOCUMENT ME!

hasGeometries

protected boolean hasGeometries()
DOCUMENT ME!

Returns:
DOCUMENT ME!

hasFeatures

protected boolean hasFeatures()
DOCUMENT ME!

Returns:
DOCUMENT ME!

hasUnknownConstructs

protected boolean hasUnknownConstructs()
DOCUMENT ME!

Returns:
DOCUMENT ME!

refreshInternals

protected void refreshInternals()
DOCUMENT ME!