deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.feature
Class GenericProperty<T>

java.lang.Object
  extended by org.deegree.feature.GenericProperty<T>
Type Parameters:
T -
All Implemented Interfaces:
Property<T>

public class GenericProperty<T>
extends Object
implements Property<T>

TODO add documentation here

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$

Constructor Summary
GenericProperty(PropertyType<T> declaration, QName name, T value)
          Creates a new GenericProperty instance that is of type SimplePropertyType.
GenericProperty(PropertyType<T> declaration, T value)
          Creates a new GenericProperty instance that is of type SimplePropertyType.
 
Method Summary
 QName getName()
          Returns the name of the property.
 PropertyType<T> getType()
          Returns the type information for this property.
 T getValue()
          Returns the value of this property.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericProperty

public GenericProperty(PropertyType<T> declaration,
                       T value)
Creates a new GenericProperty instance that is of type SimplePropertyType.

Parameters:
declaration - type information
value - property value

GenericProperty

public GenericProperty(PropertyType<T> declaration,
                       QName name,
                       T value)
Creates a new GenericProperty instance that is of type SimplePropertyType.

Parameters:
declaration - type information
name - name of the property (does not necessarily match the name in the type information)
value - property value
Method Detail

getName

public QName getName()
Description copied from interface: Property
Returns the name of the property.

In a canonical GML representation, this corresponds to the property's element name in the declaration. However, there are some GML application schemas (e.g. CityGML) that define properties using abstract element declarations and provide multiple concrete substitutable elements. In these cases, the name of a property is not equal to the name of the property type.

Specified by:
getName in interface Property<T>
Returns:
the name of the property, never null

getValue

public T getValue()
Description copied from interface: Property
Returns the value of this property.

Specified by:
getValue in interface Property<T>
Returns:
the value of this property, or null if it is nilled

getType

public PropertyType<T> getType()
Description copied from interface: Property
Returns the type information for this property.

Specified by:
getType in interface Property<T>
Returns:
the type information, never null

toString

public String toString()
Overrides:
toString in class Object

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>