|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.feature.AbstractFeature
org.deegree.feature.GenericFeature
public class GenericFeature
Allows the representation of arbitrary Features.
| Field Summary |
|---|
| Fields inherited from class org.deegree.feature.AbstractFeature |
|---|
fid, ft, standardProps |
| Constructor Summary | |
|---|---|
GenericFeature(GenericFeatureType ft,
java.lang.String fid,
java.util.List<Property> props,
GMLVersion version)
Creates a new GenericFeature instance. |
|
| Method Summary | |
|---|---|
Property[] |
getGeometryProperties()
Returns all geometry-valued properties in order. |
Property[] |
getProperties()
Returns all properties in order, excluding standard GML properties such as gml:name. |
Property[] |
getProperties(javax.xml.namespace.QName propName)
Returns the properties with the given name, in order. |
Property |
getProperty(javax.xml.namespace.QName propName)
Returns the property with the given name. |
void |
setProperties(java.util.List<Property> props)
Called during construction to initialize the properties of the feature. |
void |
setPropertyValue(javax.xml.namespace.QName propName,
int occurrence,
TypedObjectNode value)
Sets the value of a specific occurrence of a property with a given name (or removes the property feature). |
| Methods inherited from class org.deegree.feature.AbstractFeature |
|---|
calcEnvelope, getEnvelope, getGMLProperties, getId, getName, getProperties, getProperties, getProperty, getType, setId, setProperties, setPropertyValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericFeature(GenericFeatureType ft,
java.lang.String fid,
java.util.List<Property> props,
GMLVersion version)
GenericFeature instance.
ft - feature type, must not be nullfid - feature id or null if the feature is anonymous (discouraged for most use cases)props - properties of the featureversion - GML version (determines the names/types of the standard properties), or null (then no
standard GML properties are allowed)| Method Detail |
|---|
public Property[] getProperties()
Featuregml:name.
null
public void setProperties(java.util.List<Property> props)
throws java.lang.IllegalArgumentException
Feature
java.lang.IllegalArgumentException - if the property names or values are not compatible with the feature type
public void setPropertyValue(javax.xml.namespace.QName propName,
int occurrence,
TypedObjectNode value)
Feature
propName - property nameoccurrence - 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)public Property[] getProperties(javax.xml.namespace.QName propName)
Feature
propName - name of the requested properties
nullpublic Property getProperty(javax.xml.namespace.QName propName)
Feature
propName - name of the requested property
public Property[] getGeometryProperties()
Feature
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||