org.deegree.feature.property
Class ExtraProps

java.lang.Object
  extended by org.deegree.feature.property.ExtraProps

public class ExtraProps
extends Object

Encapsulates additional Property instances that can be associated with a Feature, but which don't actually belong to the set of properties defined by the FeatureType (e.g. for storing rendering hints along with the feature).

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

Field Summary
static String EXTRA_PROP_NS
           
static String EXTRA_PROP_NS_GEOMETRY
          Namespace for geometry-valued extra properties
static String EXTRA_PROP_NS_STRING
          Namespace for string-valued extra properties
 
Constructor Summary
ExtraProps(Property[] props)
           
 
Method Summary
 Property[] getProperties()
          Returns all properties in order.
 Property[] getProperties(String propName)
          Returns the properties with the given name, in order.
 Property getProperty(String propName)
          Returns the property with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTRA_PROP_NS

public static final String EXTRA_PROP_NS
See Also:
Constant Field Values

EXTRA_PROP_NS_STRING

public static final String EXTRA_PROP_NS_STRING
Namespace for string-valued extra properties

See Also:
Constant Field Values

EXTRA_PROP_NS_GEOMETRY

public static final String EXTRA_PROP_NS_GEOMETRY
Namespace for geometry-valued extra properties

See Also:
Constant Field Values
Constructor Detail

ExtraProps

public ExtraProps(Property[] props)
Method Detail

getProperties

public Property[] getProperties()
Returns all properties in order.

Returns:
all properties

getProperties

public Property[] getProperties(String propName)
Returns the properties with the given name, in order.

Parameters:
propName - name of the requested properties
Returns:
the properties with the given name, in order, may be empty, but never null

getProperty

public Property getProperty(String propName)
Returns the property with the given name.

Parameters:
propName - name of the requested property
Returns:
the property with the given name
Throws:
IllegalArgumentException - if the feature has more than one property with the given name


Copyright © 2011. All Rights Reserved.