org.deegree_impl.gml
Class GMLFeature_Impl

java.lang.Object
  extended byorg.deegree_impl.gml.GMLFeature_Impl
All Implemented Interfaces:
GMLFeature
Direct Known Subclasses:
GMLFeatureCollection_Impl

public class GMLFeature_Impl
extends java.lang.Object
implements GMLFeature

----------------------------------------------------------

Version:
07.02.2001

Author:
Andreas Poth

Field Summary
protected  org.w3c.dom.Element element
           
 
Constructor Summary
protected GMLFeature_Impl()
          Creates a new GMLFeature_Impl object.
  GMLFeature_Impl(org.w3c.dom.Element element)
          Creates a new GMLFeature_Impl object.
 
Method Summary
 void addProperty(GMLProperty property)
          adds a property to the feature.
static GMLFeature createGMLFeature(org.w3c.dom.Document doc, java.lang.String featureTypeName)
          creates a GMLFeature that doesn't contain a property and that hasn't an id.
static GMLFeature createGMLFeature(org.w3c.dom.Document doc, java.lang.String featureTypeName, java.lang.String id, GMLProperty[] properties)
          creates a GMLFeature.
 org.w3c.dom.Element getAsElement()
           
 GMLBox getBoundedBy()
          returns the boundingbox of the feature
 java.lang.String getDescription()
          returns the description of the feature
 java.lang.String getFeatureTypeName()
          return the name of the feature type the feature based on
 GMLGeoProperty[] getGeoProperties()
          returns alls properties that are a GMLGeometry
 java.lang.String getId()
          returns the ID of the feature
 java.lang.String getName()
          returns the name of the Geometry.
 GMLProperty[] getNoneGeoProperties()
          returns alls properties that are not a GMLGeometry
 GMLProperty[] getProperties()
          returns all properties of the feature
 GMLProperty getProperty(java.lang.String name)
          returns a specific property identified by its name
protected  boolean isComplexProperty(org.w3c.dom.Node node)
          returns true if the submitted node represents a complex property.
private  boolean isGeometryProperty(org.w3c.dom.Element elem)
          returns true if the submitted element contains just excatly one childelement that have to be a geometry
protected  boolean isProperty(org.w3c.dom.Node node)
          returns true if the submitted node represents a property.
 void setDescription(java.lang.String description)
           
protected  void setElement(org.w3c.dom.Element element)
           
 void setId(java.lang.String id)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

element

protected org.w3c.dom.Element element
Constructor Detail

GMLFeature_Impl

protected GMLFeature_Impl()
Creates a new GMLFeature_Impl object.


GMLFeature_Impl

public GMLFeature_Impl(org.w3c.dom.Element element)
Creates a new GMLFeature_Impl object.

Parameters:
element -
Method Detail

setElement

protected void setElement(org.w3c.dom.Element element)
Parameters:
element -

createGMLFeature

public static GMLFeature createGMLFeature(org.w3c.dom.Document doc,
                                          java.lang.String featureTypeName)
creates a GMLFeature that doesn't contain a property and that hasn't an id.


createGMLFeature

public static GMLFeature createGMLFeature(org.w3c.dom.Document doc,
                                          java.lang.String featureTypeName,
                                          java.lang.String id,
                                          GMLProperty[] properties)
                                   throws GMLException
creates a GMLFeature.

Throws:
GMLException

getAsElement

public org.w3c.dom.Element getAsElement()
Returns:

getId

public java.lang.String getId()
returns the ID of the feature

Specified by:
getId in interface GMLFeature

setId

public void setId(java.lang.String id)
Specified by:
setId in interface GMLFeature
See Also:
getId()

getDescription

public java.lang.String getDescription()
returns the description of the feature

Specified by:
getDescription in interface GMLFeature

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface GMLFeature
See Also:
getDescription()

getName

public java.lang.String getName()
returns the name of the Geometry.

Specified by:
getName in interface GMLFeature

setName

public void setName(java.lang.String name)
Specified by:
setName in interface GMLFeature
See Also:
getName()

getFeatureTypeName

public java.lang.String getFeatureTypeName()
return the name of the feature type the feature based on

Specified by:
getFeatureTypeName in interface GMLFeature

getBoundedBy

public GMLBox getBoundedBy()
returns the boundingbox of the feature

Specified by:
getBoundedBy in interface GMLFeature

getProperties

public GMLProperty[] getProperties()
returns all properties of the feature

Specified by:
getProperties in interface GMLFeature

isGeometryProperty

private boolean isGeometryProperty(org.w3c.dom.Element elem)
returns true if the submitted element contains just excatly one childelement that have to be a geometry


getGeoProperties

public GMLGeoProperty[] getGeoProperties()
returns alls properties that are a GMLGeometry

Specified by:
getGeoProperties in interface GMLFeature

getNoneGeoProperties

public GMLProperty[] getNoneGeoProperties()
returns alls properties that are not a GMLGeometry

Specified by:
getNoneGeoProperties in interface GMLFeature

getProperty

public GMLProperty getProperty(java.lang.String name)
returns a specific property identified by its name

Specified by:
getProperty in interface GMLFeature

addProperty

public void addProperty(GMLProperty property)
                 throws GMLException
adds a property to the feature.

This method should throw an exection if the submitted node doesn't belong to the underlying Feature Type definition. At the moment validiation against the feature type.

Specified by:
addProperty in interface GMLFeature
Throws:
GMLException

isProperty

protected boolean isProperty(org.w3c.dom.Node node)
returns true if the submitted node represents a property. in a future release this check has to be performed against the schema


isComplexProperty

protected boolean isComplexProperty(org.w3c.dom.Node node)
returns true if the submitted node represents a complex property. in a future release this check has to be performed against the schema


toString

public java.lang.String toString()
Returns: