|
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 |
public interface Feature
A feature is a structured object with named properties, an identifier and type information. Properties may have geometric and non-geometric values and may be (nested) features.
The Feature
interface and related types are designed to be compatible with the following specifications:
The interface supports two modes of operation: GML-agnostic and GML (and version) specific. Blabla...
Method Summary | |
---|---|
Envelope |
getEnvelope()
Returns the envelope of the feature. |
Property<Geometry>[] |
getGeometryProperties()
Returns all geometry-valued properties in order. |
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(GMLVersion version)
Returns all properties in order, including standard GML properties. |
Property<?>[] |
getProperties(QName propName)
Returns the properties with the given name, in order. |
Property<?>[] |
getProperties(QName propName,
GMLVersion version)
Returns the properties with the given name, in order. |
Property<?> |
getProperty(QName propName)
Returns the property with the given name. |
Property<?> |
getProperty(QName propName,
GMLVersion version)
Returns the property with the given name. |
Object |
getPropertyValue(QName propName)
Returns the values of the property with the given name. |
Object |
getPropertyValue(QName propName,
GMLVersion version)
Returns the values of the property with the given name. |
Object[] |
getPropertyValues(QName propName)
Returns the values of the properties with the given name, in order. |
Object[] |
getPropertyValues(QName propName,
GMLVersion version)
Returns the values of the properties with the given name, in order. |
FeatureType |
getType()
Returns the type information for this feature. |
void |
setId(String id)
Sets the id of the feature. |
void |
setProperties(List<Property<?>> props)
Called during construction to initialize the properties of the feature. |
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)
Sets the value of a specific occurence of a property with a given name (or removes the property 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 interface org.deegree.filter.MatchableObject |
---|
getPropertyValues |
Methods inherited from interface org.deegree.gml.GMLObject |
---|
getGMLProperties |
Method Detail |
---|
String getId()
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 GMLObject
getId
in interface MatchableObject
void setId(String id)
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.
id
- the id of the feature instanceQName getName()
In an GML representation of the feature, this corresponds to the feature element's name.
FeatureType getType()
Property<?>[] getProperties()
gml:name
.
Property<?>[] getProperties(GMLVersion version)
version
- determines the names and types of the standard GML properties, must not be null
Object[] getPropertyValues(QName propName)
propName
- name of the requested property
Object[] getPropertyValues(QName propName, GMLVersion version)
propName
- name of the requested propertyversion
- determines the names and types of the standard GML properties, must not be null
Object getPropertyValue(QName propName)
propName
- name of the requested property
IllegalArgumentException
- if the feature has more than one property with the given nameObject getPropertyValue(QName propName, GMLVersion version)
propName
- name of the requested propertyversion
- determines the names and types of the standard GML properties, must not be null
IllegalArgumentException
- if the feature has more than one property with the given nameProperty<?>[] getProperties(QName propName)
propName
- name of the requested properties
Property<?>[] getProperties(QName propName, GMLVersion version)
propName
- name of the requested propertiesversion
- determines the names and types of the standard GML properties, must not be null
Property<?> getProperty(QName propName)
propName
- name of the requested property
IllegalArgumentException
- if the feature has more than one property with the given nameProperty<?> getProperty(QName propName, GMLVersion version)
propName
- name of the requested propertyversion
- determines the names and types of the standard GML properties, must not be null
IllegalArgumentException
- if the feature has more than one property with the given nameProperty<Geometry>[] getGeometryProperties()
Envelope getEnvelope()
void setPropertyValue(QName propName, int occurence, Object value)
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)
IllegalArgumentException
- if the property names or values are not compatible with the feature typevoid setPropertyValue(QName propName, int occurence, Object value, GMLVersion version)
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)version
- 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 typevoid setProperties(List<Property<?>> props) throws IllegalArgumentException
props
-
IllegalArgumentException
- if the property names or values are not compatible with the feature typevoid setProperties(List<Property<?>> props, GMLVersion version) throws IllegalArgumentException
props
- version
- 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
|
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 |