org.deegree_impl.gml
Class GMLFeatureProperty_Impl

java.lang.Object
  extended byorg.deegree_impl.gml.GMLProperty_Impl
      extended byorg.deegree_impl.gml.GMLFeatureProperty_Impl
All Implemented Interfaces:
GMLFeatureProperty, GMLProperty

public class GMLFeatureProperty_Impl
extends GMLProperty_Impl
implements GMLFeatureProperty

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

Version:
07.02.2001

Author:
Andreas Poth

Field Summary
 
Fields inherited from class org.deegree_impl.gml.GMLProperty_Impl
element
 
Fields inherited from interface org.deegree.gml.GMLProperty
BOX, FEATURE, FEATURECOLLECTION, GEOMETRY, LINESTRING, MULTIGEOMETRY, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, POINT, POLYGON, STRING, UNKNOWNTYPE
 
Constructor Summary
GMLFeatureProperty_Impl(org.w3c.dom.Element element)
          Creates a new GMLFeatureProperty_Impl object.
 
Method Summary
static GMLFeatureProperty createGMLFeatureProperty(org.w3c.dom.Document doc, java.lang.String propName)
          factory method to create a GMLFeatureProperty. the property that will be return doesn't contain a value.
static GMLFeatureProperty createGMLFeatureProperty(org.w3c.dom.Document doc, java.lang.String propName, GMLFeature feature)
          factory method to create a GMLFeatureProperty. the property that will be return doesn't contain a value.
 GMLFeature getFeaturePropertyValue()
          returns the value of the property
 void setFeaturePropetryValue(GMLFeature value)
           
 void setPropertyValue(java.lang.String value)
          will be overwritten by this class in a way that an exception will be thrown if the method is called.
 java.lang.String toString()
           
 
Methods inherited from class org.deegree_impl.gml.GMLProperty_Impl
createGMLProperty, createGMLProperty, getAsElement, getName, getPropertyType, getPropertyValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.gml.GMLProperty
getName, getPropertyType, getPropertyValue
 

Constructor Detail

GMLFeatureProperty_Impl

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

Parameters:
element -
Method Detail

createGMLFeatureProperty

public static GMLFeatureProperty createGMLFeatureProperty(org.w3c.dom.Document doc,
                                                          java.lang.String propName)
                                                   throws GMLException
factory method to create a GMLFeatureProperty. the property that will be return doesn't contain a value.

Throws:
GMLException

createGMLFeatureProperty

public static GMLFeatureProperty createGMLFeatureProperty(org.w3c.dom.Document doc,
                                                          java.lang.String propName,
                                                          GMLFeature feature)
                                                   throws GMLException
factory method to create a GMLFeatureProperty. the property that will be return doesn't contain a value.

Throws:
GMLException

getFeaturePropertyValue

public GMLFeature getFeaturePropertyValue()
returns the value of the property

Specified by:
getFeaturePropertyValue in interface GMLFeatureProperty

setFeaturePropetryValue

public void setFeaturePropetryValue(GMLFeature value)
                             throws GMLException
Specified by:
setFeaturePropetryValue in interface GMLFeatureProperty
Throws:
GMLException
See Also:
getFeaturePropertyValue()

setPropertyValue

public void setPropertyValue(java.lang.String value)
will be overwritten by this class in a way that an exception will be thrown if the method is called. Because it doesn't make any sense to set the value of a geo property as a String.

Specified by:
setPropertyValue in interface GMLProperty
Overrides:
setPropertyValue in class GMLProperty_Impl
See Also:
org.deegree_impl.gml.GMLProperty_Impl#getPropertyValue()

This set-method only supports text propetries. More complex property types must be inherited from this interface and define additional set-methods.

Notice: if the old value has been removed this may change the properties type. At a future release a validation against the schema of the document has to be performed.


toString

public java.lang.String toString()
Overrides:
toString in class GMLProperty_Impl
Returns: