org.deegree_impl.gml
Class GMLGeoProperty_Impl

java.lang.Object
  extended byorg.deegree_impl.gml.GMLProperty_Impl
      extended byorg.deegree_impl.gml.GMLGeoProperty_Impl
All Implemented Interfaces:
GMLGeoProperty, GMLProperty

public class GMLGeoProperty_Impl
extends GMLProperty_Impl
implements GMLGeoProperty

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

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
GMLGeoProperty_Impl(org.w3c.dom.Element element)
          Creates a new GMLGeoProperty_Impl object.
 
Method Summary
static GMLGeoProperty createGMLGeoProperty(org.w3c.dom.Document doc, int geoType)
          factory method to create a GMLGeoProperty. the property that will be return doesn't contain a value.
static GMLGeoProperty createGMLGeoProperty(GMLGeometry geom)
          factory method to create a GMLGeoProperty. the property that will be return doesn't contain a value.
static GMLGeoProperty createGMLGeoProperty(java.lang.String name, GMLGeometry geom)
          factory method to create a GMLGeoProperty. the property that will be return doesn't contain a value.
 GMLGeometry getGeoPropertyValue()
          returns the value of the property
 void setGeoPropetryValue(GMLGeometry 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()
           
private  void validate(GMLGeometry value)
          validate if the submitted geometry is the same type as the geometry tag
 
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

GMLGeoProperty_Impl

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

Parameters:
element -
Method Detail

createGMLGeoProperty

public static GMLGeoProperty createGMLGeoProperty(org.w3c.dom.Document doc,
                                                  int geoType)
                                           throws GMLException
factory method to create a GMLGeoProperty. the property that will be return doesn't contain a value.

Throws:
GMLException

createGMLGeoProperty

public static GMLGeoProperty createGMLGeoProperty(java.lang.String name,
                                                  GMLGeometry geom)
                                           throws GMLException
factory method to create a GMLGeoProperty. the property that will be return doesn't contain a value.

Throws:
GMLException

createGMLGeoProperty

public static GMLGeoProperty createGMLGeoProperty(GMLGeometry geom)
                                           throws GMLException
factory method to create a GMLGeoProperty. the property that will be return doesn't contain a value.

Throws:
GMLException

getGeoPropertyValue

public GMLGeometry getGeoPropertyValue()
returns the value of the property

Specified by:
getGeoPropertyValue in interface GMLGeoProperty

setGeoPropetryValue

public void setGeoPropetryValue(GMLGeometry value)
                         throws GMLException
Specified by:
setGeoPropetryValue in interface GMLGeoProperty
Throws:
GMLException
See Also:
GMLProperty_Impl.getPropertyValue()

validate

private void validate(GMLGeometry value)
               throws GMLException
validate if the submitted geometry is the same type as the geometry tag

Throws:
GMLException

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: