|
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
org.deegree.feature.GenericSimpleFeature
public class GenericSimpleFeature
Feature implementation that allows the representation of arbitrary SimpleFeatures.
GenericFeature| Field Summary |
|---|
| Fields inherited from class org.deegree.feature.AbstractFeature |
|---|
standardProps |
| Constructor Summary | |
|---|---|
GenericSimpleFeature()
|
|
| Method Summary | |
|---|---|
Envelope |
getEnvelope()
Returns the envelope of the feature. |
Property<Geometry>[] |
getGeometryProperties()
Returns all geometry-valued properties in order. |
Geometry |
getGeometryPropertyValue(QName propName)
Returns the value of the geometry property. |
String |
getId()
Returns the id of the feature. |
QName |
getName()
Returns the name of the feature. |
Property<?>[] |
getProperties()
Returns all properties in order, excluding standard GML properties such as gml:name. |
Property<?>[] |
getProperties(QName propName)
Returns the properties with the given name, in order. |
Property<?> |
getProperty(QName propName)
Returns the property with the given name. |
Object |
getPropertyValue(QName propName)
Returns the value of the specified property. |
Object[] |
getPropertyValues(QName propName)
Returns the values of the properties with the given name, in order. |
FeatureType |
getType()
Returns the type information for this feature. |
void |
setId(String fid)
Sets the id of the feature. |
void |
setProperties(List<Property<?>> props)
Called during construction to initialize the properties of the feature. |
void |
setPropertyValue(QName propName,
int occurence,
Object value)
Sets the value of a specific occurence of a property with a given name (or removes the property feature). |
void |
setPropertyValue(QName propName,
Object value)
Sets the value of the specified property. |
| Methods inherited from class org.deegree.feature.AbstractFeature |
|---|
calcEnvelope, getGMLProperties, getProperties, getProperties, getProperty, getPropertyValue, getPropertyValues, getPropertyValues, setProperties, setPropertyValue |
| 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 |
|---|
getProperties, getProperties, getProperty, getPropertyValue, getPropertyValues, setProperties, setPropertyValue |
| Methods inherited from interface org.deegree.filter.MatchableObject |
|---|
getPropertyValues |
| Methods inherited from interface org.deegree.gml.GMLObject |
|---|
getGMLProperties |
| Constructor Detail |
|---|
public GenericSimpleFeature()
| Method Detail |
|---|
public String getId()
Feature
In an GML representation of the feature, this corresponds to the gml:id (GML 3 and later) or
fid (GML 2) attribute of the feature element.
getId in interface FeaturegetId in interface MatchableObjectgetId in interface GMLObjectpublic void setId(String fid)
Feature
In an GML representation of the feature, this corresponds to the gml:id (GML 3 and later) or
fid (GML 2) attribute of the feature element.
setId in interface Featurefid - the id of the feature instancepublic QName getName()
FeatureIn an GML representation of the feature, this corresponds to the feature element's name.
getName in interface Featurepublic FeatureType getType()
Feature
getType in interface Featurepublic Property<?>[] getProperties()
Featuregml:name.
getProperties in interface Featurepublic Object getPropertyValue(QName propName)
SimpleFeature
getPropertyValue in interface FeaturegetPropertyValue in interface SimpleFeaturepropName - name of the property
public Geometry getGeometryPropertyValue(QName propName)
SimpleFeatureNOTE: A simple feature may contain only one geometry property.
getGeometryPropertyValue in interface SimpleFeaturepropName - name of the property
public void setPropertyValue(QName propName,
int occurence,
Object value)
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)
public void setPropertyValue(QName propName,
Object value)
SimpleFeature
setPropertyValue in interface SimpleFeaturepropName - name of the property to setvalue - new value of the property
public void setProperties(List<Property<?>> props)
throws IllegalArgumentException
Feature
setProperties in interface FeatureIllegalArgumentException - if the property names or values are not compatible with the feature typepublic Property<?>[] getProperties(QName propName)
Feature
getProperties in interface FeaturepropName - name of the requested properties
public Property<?> getProperty(QName propName)
Feature
getProperty in interface FeaturepropName - name of the requested property
public Object[] getPropertyValues(QName propName)
Feature
getPropertyValues in interface FeaturepropName - name of the requested property
public Envelope getEnvelope()
Feature
getEnvelope in interface FeaturegetEnvelope in class AbstractFeaturepublic Property<Geometry>[] getGeometryProperties()
Feature
getGeometryProperties in interface Feature
|
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 | |||||||||