|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.feature.AbstractFeature
abstract class AbstractFeature
Abstract base class for common Feature implementations.
| Field Summary | |
|---|---|
protected StandardGMLFeatureProps |
standardProps
Stores the default GML properties that every GML feature allows for (gml:name, gml:description, ...). |
| Constructor Summary | |
|---|---|
AbstractFeature()
|
|
| Method Summary | |
|---|---|
protected Envelope |
calcEnvelope()
Helper method for calculating the envelope of a feature. |
Envelope |
getEnvelope()
Returns the envelope of the feature. |
GMLStdProps |
getGMLProperties()
Returns the standard GML properties (e.g. |
Property<?>[] |
getProperties(GMLVersion version)
Returns all properties in order, including standard GML properties. |
Property<?>[] |
getProperties(QName propName,
GMLVersion version)
Returns the properties with the given name, in order. |
Property<?> |
getProperty(QName propName,
GMLVersion version)
Returns the property with the given name. |
Object |
getPropertyValue(QName propName,
GMLVersion version)
Returns the values of the property with the given name. |
Object[] |
getPropertyValues(PropertyName propName,
GMLVersion version)
Returns the values that are selected by the given PropertyName expression. |
Object[] |
getPropertyValues(QName propName,
GMLVersion version)
Returns the values of the properties with the given name, in order. |
void |
setProperties(List<Property<?>> props,
GMLVersion version)
Called during construction to initialize the properties of the feature. |
void |
setPropertyValue(QName propName,
int occurence,
Object value,
GMLVersion version)
Sets the value of a specific occurence of a property with a given name (or removes the property from the feature). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.deegree.feature.Feature |
|---|
getGeometryProperties, getId, getName, getProperties, getProperties, getProperty, getPropertyValue, getPropertyValues, getType, setId, setProperties, setPropertyValue |
| Field Detail |
|---|
protected StandardGMLFeatureProps standardProps
| Constructor Detail |
|---|
AbstractFeature()
| Method Detail |
|---|
public GMLStdProps getGMLProperties()
GMLObjectgml:name).
getGMLProperties in interface GMLObject
public Object[] getPropertyValues(PropertyName propName,
GMLVersion version)
throws org.jaxen.JaxenException
MatchableObjectPropertyName expression.
getPropertyValues in interface MatchableObjectpropName - XPath expression that usually selects a property
org.jaxen.JaxenException - if an exception occurs during the evaluation of the XPath expressionpublic Envelope getEnvelope()
Feature
getEnvelope in interface Featureprotected Envelope calcEnvelope()
public Property<?>[] getProperties(GMLVersion version)
Feature
getProperties in interface Featureversion - determines the names and types of the standard GML properties, must not be null
public Property<?>[] getProperties(QName propName,
GMLVersion version)
Feature
getProperties in interface FeaturepropName - name of the requested propertiesversion - determines the names and types of the standard GML properties, must not be null
public Property<?> getProperty(QName propName,
GMLVersion version)
Feature
getProperty in interface FeaturepropName - name of the requested propertyversion - determines the names and types of the standard GML properties, must not be null
public Object getPropertyValue(QName propName,
GMLVersion version)
Feature
getPropertyValue in interface FeaturepropName - name of the requested propertyversion - determines the names and types of the standard GML properties, must not be null
public Object[] getPropertyValues(QName propName,
GMLVersion version)
Feature
getPropertyValues in interface FeaturepropName - name of the requested propertyversion - determines the names and types of the standard GML properties, must not be null
public void setProperties(List<Property<?>> props,
GMLVersion version)
throws IllegalArgumentException
Feature
setProperties in interface Featureversion - determines the names and types of the standard GML properties, must not be null
IllegalArgumentException - if the property names or values are not compatible with the feature type
public void setPropertyValue(QName propName,
int occurence,
Object value,
GMLVersion version)
Feature
setPropertyValue in interface FeaturepropName - property nameoccurence - index of the property, starting with zero. If the property is not a multi-property (i.e. maxOccurs=1),
this is always zero.value - new value of the property or null (removes the property)version - determines the names and types of the standard GML properties, must not be null
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||