org.deegree.feature.property
Interface Property

All Superinterfaces:
ElementNode, TypedObjectNode
All Known Implementing Classes:
GenericProperty, SimpleProperty

public interface Property
extends ElementNode

A spatial or non-spatial property of a Feature.

Encapsulates a (qualified) name, type information and a value of a certain type.

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

Method Summary
 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.
 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 interface org.deegree.commons.tom.ElementNode
getAttributes, getChildren, getXSType
 

Method Detail

getName

QName getName()
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
Returns:
the name of the property, never null

getType

PropertyType getType()
Returns the type information for this property.

Returns:
the type information, never null

getValue

TypedObjectNode getValue()
Returns the value of this property.

Returns:
the value of this property, can be null

setValue

void setValue(TypedObjectNode value)
Sets the value of this property.

NOTE: This also changes the children of the property.

Parameters:
value - the value of this property, can be null

setChildren

void setChildren(List<TypedObjectNode> children)
Sets the children of this property.

NOTE: This also changes the value of the property.

Parameters:
children - the children of this property, can be null

toString

String toString()
Returns the text value of this property.

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


Copyright © 2011. All Rights Reserved.