org.deegree.feature.property
Class SimpleProperty

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

public class SimpleProperty
extends java.lang.Object
implements Property

TODO add documentation here

Version:
$Revision: 26897 $, $Date: 2010-09-21 15:54:03 +0200 (Di, 21. Sep 2010) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Constructor Summary
SimpleProperty(SimplePropertyType pt, java.lang.String value, PrimitiveType type)
           
SimpleProperty(SimplePropertyType pt, java.lang.String value, org.apache.xerces.xs.XSSimpleTypeDefinition xsdType)
           
 
Method Summary
 javax.xml.namespace.QName getName()
          Returns the name of the property.
 SimplePropertyType getType()
          Returns the type information for this property.
 PrimitiveValue 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

SimpleProperty

public SimpleProperty(SimplePropertyType pt,
                      java.lang.String value,
                      PrimitiveType type)

SimpleProperty

public SimpleProperty(SimplePropertyType pt,
                      java.lang.String value,
                      org.apache.xerces.xs.XSSimpleTypeDefinition xsdType)
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 PrimitiveValue 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 SimplePropertyType 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.