org.deegree.feature.property
Class GenericProperty

java.lang.Object
  extended by org.deegree.feature.property.GenericProperty
All Implemented Interfaces:
TypedObjectNode, Property

public class GenericProperty
extends java.lang.Object
implements Property

TODO add documentation here

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

Constructor Summary
GenericProperty(PropertyType declaration, javax.xml.namespace.QName name, TypedObjectNode value)
          Creates a new GenericProperty instance.
GenericProperty(PropertyType declaration, javax.xml.namespace.QName name, TypedObjectNode value, boolean isNilled)
          Creates a new GenericProperty instance.
GenericProperty(PropertyType declaration, TypedObjectNode value)
          Creates a new GenericProperty instance.
 
Method Summary
 javax.xml.namespace.QName getName()
          Returns the name of the property.
 PropertyType getType()
          Returns the type information for this property.
 TypedObjectNode getValue()
          Returns the value of this property.
 boolean isNilled()
          Returns whether the property is nilled (corresponds to xsi:nil in an XML representation of the property element).
 void setValue(TypedObjectNode value)
          Sets the value of this property.
 java.lang.String toString()
          Returns the text value of this property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericProperty

public GenericProperty(PropertyType declaration,
                       TypedObjectNode value)
Creates a new GenericProperty instance.

Parameters:
declaration - type information
value - property value, can be null

GenericProperty

public GenericProperty(PropertyType declaration,
                       javax.xml.namespace.QName name,
                       TypedObjectNode value)
Creates a new GenericProperty instance.

Parameters:
declaration - type information
name - name of the property (does not necessarily match the name in the type information)
value - property value, can be null

GenericProperty

public GenericProperty(PropertyType declaration,
                       javax.xml.namespace.QName name,
                       TypedObjectNode value,
                       boolean isNilled)
Creates a new GenericProperty instance.

Parameters:
declaration - type information
name - name of the property (does not necessarily match the name in the type information)
value - property value, can be null
isNilled - true, if the property is explicitly nilled, false otherwise
Method Detail

getName

public javax.xml.namespace.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
Returns:
the name of the property, never null

isNilled

public boolean isNilled()
Description copied from interface: Property
Returns whether the property is nilled (corresponds to xsi:nil in an XML representation of the property element).

Specified by:
isNilled in interface Property
Returns:
true, if the property is nilled, false otherwise

getValue

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

Specified by:
getValue in interface Property
Returns:
the value of this property, can be null

setValue

public void setValue(TypedObjectNode value)
Description copied from interface: Property
Sets the value of this property.

Specified by:
setValue in interface Property
Parameters:
value - the value of this property, can be null

getType

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

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

toString

public java.lang.String toString()
Description copied from interface: Property
Returns the text value of this property.

Specified by:
toString in interface Property
Overrides:
toString in class java.lang.Object
Returns:
the text value of this property, never null


Copyright © 2011. All Rights Reserved.