org.deegree_impl.gml
Class GMLProperty_Impl

java.lang.Object
  extended byorg.deegree_impl.gml.GMLProperty_Impl
All Implemented Interfaces:
GMLProperty
Direct Known Subclasses:
GMLComplexProperty_Impl, GMLFeatureProperty_Impl, GMLGeoProperty_Impl

public class GMLProperty_Impl
extends java.lang.Object
implements GMLProperty

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

Version:
07.02.2001

Author:
Andreas Poth

Field Summary
protected  org.w3c.dom.Element element
           
 
Fields inherited from interface org.deegree.gml.GMLProperty
BOX, FEATURE, FEATURECOLLECTION, GEOMETRY, LINESTRING, MULTIGEOMETRY, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, POINT, POLYGON, STRING, UNKNOWNTYPE
 
Constructor Summary
GMLProperty_Impl(org.w3c.dom.Element element)
          Creates a new GMLProperty_Impl object.
 
Method Summary
static GMLProperty createGMLProperty(org.w3c.dom.Document doc, java.lang.String propName)
          factory method to create a GMLProperty. the property that will be return doesn't contain a value.
static GMLProperty createGMLProperty(org.w3c.dom.Document doc, java.lang.String propertyName, java.lang.String propertyValue)
          factory method to create a GMLProperty.
 org.w3c.dom.Element getAsElement()
           
private  int getGeoType()
          performs the mapping of the gml geoType (String) to its int representation for more simple handling.
 java.lang.String getName()
          returns the name of the property
 int getPropertyType()
          returns the type of a property.
 java.lang.Object getPropertyValue()
          returns the value of the property
private  boolean isGeometryProperty()
          returns true if the submitted element contains just excatly one childelement that have to be a geometry
 void setPropertyValue(java.lang.String value)
           
 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

GMLProperty_Impl

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

Parameters:
element -
Method Detail

createGMLProperty

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


createGMLProperty

public static GMLProperty createGMLProperty(org.w3c.dom.Document doc,
                                            java.lang.String propertyName,
                                            java.lang.String propertyValue)
factory method to create a GMLProperty.


getAsElement

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

getName

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

Specified by:
getName in interface GMLProperty

isGeometryProperty

private boolean isGeometryProperty()
returns true if the submitted element contains just excatly one childelement that have to be a geometry


getPropertyType

public int getPropertyType()
returns the type of a property.

this method may be removed in future definitions of this interface because this can be determined by validiating the property name against the describing schema.

At the moment only String-type and geometry types are supported. Complex types like feature or feature collections aren't supported yet.

Specified by:
getPropertyType in interface GMLProperty

getGeoType

private int getGeoType()
performs the mapping of the gml geoType (String) to its int representation for more simple handling.


getPropertyValue

public java.lang.Object getPropertyValue()
returns the value of the property

Specified by:
getPropertyValue in interface GMLProperty

setPropertyValue

public void setPropertyValue(java.lang.String value)
Specified by:
setPropertyValue in interface GMLProperty
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()
Returns: