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

org.deegree.model.feature
Class XLinkedFeatureProperty

java.lang.Object
  extended by org.deegree.model.feature.XLinkedFeatureProperty
All Implemented Interfaces:
FeatureProperty

public class XLinkedFeatureProperty
extends java.lang.Object
implements FeatureProperty

Feature property instance that does not specify it's content inline, but references a feature instance via an XLink.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Constructor Summary
XLinkedFeatureProperty(QualifiedName name, java.lang.String targetFeatureId)
          Creates a new instance of XLinkedFeatureProperty from the given parameters.
 
Method Summary
 QualifiedName getName()
          Returns the name of the property.
 Feature getOwner()
          Returns the instance of the Feature a Feature property is assigned to.
 java.lang.String getTargetFeatureId()
          Returns the feature id of the target feature.
 java.lang.Object getValue()
          Returns the value of the property.
 java.lang.Object getValue(java.lang.Object defaultValue)
          Returns the value of the property.
 void setValue(java.lang.Object value)
          Sets the target feature instance that this feature property refers to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XLinkedFeatureProperty

public XLinkedFeatureProperty(QualifiedName name,
                              java.lang.String targetFeatureId)
Creates a new instance of XLinkedFeatureProperty from the given parameters.

NOTE: After creating, this property has no value. The reference to the target feature has to be resolved first by calling #setValue(java.lang.Object).

Parameters:
name - feature name
targetFeatureId - id of the feature that this property contains
See Also:
setValue(java.lang.Object)
Method Detail

getName

public QualifiedName getName()
Returns the name of the property.

Specified by:
getName in interface FeatureProperty
Returns:
the 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.

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

setValue

public void setValue(java.lang.Object value)
Sets the target feature instance that this feature property refers to.

Specified by:
setValue in interface FeatureProperty
Parameters:
value - feature instance that this feature property refers to
Throws:
java.lang.RuntimeException - if the reference has already been resolved

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.

getTargetFeatureId

public java.lang.String getTargetFeatureId()
Returns the feature id of the target feature.

Returns:
the feature id of the target feature.

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