org.deegree.feature.property
Class SimpleProperty

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

public class SimpleProperty
extends Object
implements Property

TODO add documentation here

Version:
$Revision: 30611 $, $Date: 2011-05-02 15:13:56 +0200 (Mon, 02 May 2011) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Constructor Summary
SimpleProperty(SimplePropertyType pt, String value)
           
 
Method Summary
 Map<QName,PrimitiveValue> getAttributes()
          Returns the attributes of the node.
 List<TypedObjectNode> getChildren()
          Returns the children of the node.
 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.
 org.apache.xerces.xs.XSElementDeclaration getXSType()
          Returns the XML schema declaration of the element.
 void setChildren(List<TypedObjectNode> children)
          Sets the children of this property.
 void setValue(TypedObjectNode value)
          Sets the value of this property.
 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,
                      String 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 ElementNode
Specified by:
getName in interface Property
Returns:
the name of the property, never null

getXSType

public org.apache.xerces.xs.XSElementDeclaration getXSType()
Description copied from interface: ElementNode
Returns the XML schema declaration of the element.

Specified by:
getXSType in interface ElementNode
Returns:
XML schema element declaration, can be null

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.

NOTE: This also changes the children of the 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 String toString()
Description copied from interface: Property
Returns the text value of this property.

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

getAttributes

public Map<QName,PrimitiveValue> getAttributes()
Description copied from interface: ElementNode
Returns the attributes of the node.

Specified by:
getAttributes in interface ElementNode
Returns:
attributes of the node, never null

getChildren

public List<TypedObjectNode> getChildren()
Description copied from interface: ElementNode
Returns the children of the node.

Specified by:
getChildren in interface ElementNode
Returns:
children of the node, never null

setChildren

public void setChildren(List<TypedObjectNode> children)
Description copied from interface: Property
Sets the children of this property.

NOTE: This also changes the value of the property.

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


Copyright © 2011. All Rights Reserved.