org.deegree_impl.gml
Class GMLComplexProperty_Impl

java.lang.Object
  extended byorg.deegree_impl.gml.GMLProperty_Impl
      extended byorg.deegree_impl.gml.GMLComplexProperty_Impl
All Implemented Interfaces:
GMLComplexProperty, GMLProperty

public class GMLComplexProperty_Impl
extends GMLProperty_Impl
implements GMLComplexProperty

The class represents a complex feature property. A complex property may be a GMLFeature (that may has complex properties too) or a GMLFeatureCollection. A GMLGeometry isn't taken as complex.

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

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
GMLComplexProperty_Impl(org.w3c.dom.Element element)
          Creates a new GMLComplexProperty_Impl object.
 
Method Summary
static GMLComplexProperty createGMLComplexProperty(org.w3c.dom.Document doc, java.lang.String propName)
          factory method to create a GMLGeoProperty. the property that will be return doesn't contain a value.
static GMLComplexProperty createGMLComplexProperty(org.w3c.dom.Document doc, java.lang.String propertyName, GMLFeature complex)
          factory method to create a GMLGeoProperty. the property that will be return doesn't contain a value.
 GMLFeature getComplexPropertyValue()
          returns the value of the property
 void setComplexPropetryValue(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

GMLComplexProperty_Impl

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

Parameters:
element -
Method Detail

createGMLComplexProperty

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

Throws:
GMLException

createGMLComplexProperty

public static GMLComplexProperty createGMLComplexProperty(org.w3c.dom.Document doc,
                                                          java.lang.String propertyName,
                                                          GMLFeature complex)
                                                   throws GMLException
factory method to create a GMLGeoProperty. the property that will be return doesn't contain a value.

Throws:
GMLException

getComplexPropertyValue

public GMLFeature getComplexPropertyValue()
returns the value of the property

Specified by:
getComplexPropertyValue in interface GMLComplexProperty

setComplexPropetryValue

public void setComplexPropetryValue(GMLFeature value)
                             throws GMLException
Specified by:
setComplexPropetryValue in interface GMLComplexProperty
Throws:
GMLException
See Also:
GMLProperty_Impl.getPropertyValue()

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: