deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.model.feature
Class DefaultFeatureProperty

java.lang.Object
  extended by org.deegree.model.feature.DefaultFeatureProperty
All Implemented Interfaces:
java.io.Serializable, FeatureProperty
Direct Known Subclasses:
GeneratedValueFeatureProperty

 class DefaultFeatureProperty
extends java.lang.Object
implements FeatureProperty, java.io.Serializable

the interface describes a property entry of a feature. It is made of a name and a value associated to it.

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

Version:
$Revision: 18195 $ $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Poth

Constructor Summary
DefaultFeatureProperty(QualifiedName name, java.lang.Object value)
          constructor for complete initializing the FeatureProperty
 
Method Summary
 QualifiedName getName()
          returns the qualified name of the property
 Feature getOwner()
          Returns the instance of the Feature a Feature property is assigned to.
 java.lang.Object getValue()
          returns the value of the property
 java.lang.Object getValue(java.lang.Object defaultValue)
          returns the value of the property; if the value is null the passed defaultValuewill be returned
 void setValue(java.lang.Object value)
          sets the value of the property
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultFeatureProperty

DefaultFeatureProperty(QualifiedName name,
                       java.lang.Object value)
constructor for complete initializing the FeatureProperty

Parameters:
name - qualified name of the property
value - the properties value
Method Detail

getName

public QualifiedName getName()
returns the qualified name of the property

Specified by:
getName in interface FeatureProperty
Returns:
the qualified name of the property

getValue

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

Specified by:
getValue in interface FeatureProperty
Returns:
the value of the property

getValue

public java.lang.Object getValue(java.lang.Object defaultValue)
returns the value of the property; if the value is null the passed defaultValuewill be returned

Specified by:
getValue in interface FeatureProperty
Parameters:
defaultValue -
Returns:
the value of the property; if the value is null the passed defaultValuewill be returned

setValue

public void setValue(java.lang.Object value)
sets the value of the property

Specified by:
setValue in interface FeatureProperty

toString

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

getOwner

public Feature getOwner()
Description copied from interface: FeatureProperty
Returns the instance of the Feature a Feature property is assigned to.

Specified by:
getOwner in interface FeatureProperty
Returns:
the instance of the Feature a Feature property is assigned to.

deegree 2.5 (2011/06/29 09:44 build-8-official)

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