|
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.Object org.deegree.feature.AbstractFeature org.deegree.feature.GenericSimpleFeature
public class GenericSimpleFeature
Feature
implementation that allows the representation of arbitrary SimpleFeature
s.
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 Feature
getId
in interface MatchableObject
getId
in interface GMLObject
public 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 Feature
fid
- the id of the feature instancepublic QName getName()
Feature
In an GML representation of the feature, this corresponds to the feature element's name.
getName
in interface Feature
public FeatureType getType()
Feature
getType
in interface Feature
public Property<?>[] getProperties()
Feature
gml:name
.
getProperties
in interface Feature
public Object getPropertyValue(QName propName)
SimpleFeature
getPropertyValue
in interface Feature
getPropertyValue
in interface SimpleFeature
propName
- name of the property
public Geometry getGeometryPropertyValue(QName propName)
SimpleFeature
NOTE: A simple feature may contain only one geometry property.
getGeometryPropertyValue
in interface SimpleFeature
propName
- name of the property
public void setPropertyValue(QName propName, int occurence, Object value)
Feature
setPropertyValue
in interface Feature
propName
- 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 SimpleFeature
propName
- name of the property to setvalue
- new value of the propertypublic void setProperties(List<Property<?>> props) throws IllegalArgumentException
Feature
setProperties
in interface Feature
IllegalArgumentException
- if the property names or values are not compatible with the feature typepublic Property<?>[] getProperties(QName propName)
Feature
getProperties
in interface Feature
propName
- name of the requested properties
public Property<?> getProperty(QName propName)
Feature
getProperty
in interface Feature
propName
- name of the requested property
public Object[] getPropertyValues(QName propName)
Feature
getPropertyValues
in interface Feature
propName
- name of the requested property
public Envelope getEnvelope()
Feature
getEnvelope
in interface Feature
getEnvelope
in class AbstractFeature
public 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 |