|
||||||||||
| 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 views on the features' properties: GML-agnostic and GML (and version) specific. Blabla...
| Method Summary | |
|---|---|
Envelope |
getEnvelope()
Returns the envelope of the feature. |
Property[] |
getGeometryProperties()
Returns all geometry-valued properties in order. |
StandardGMLFeatureProps |
getGMLProperties()
Returns the standard GML properties (e.g. |
java.lang.String |
getId()
Returns the id of the feature. |
javax.xml.namespace.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(javax.xml.namespace.QName propName)
Returns the properties with the given name, in order. |
Property[] |
getProperties(javax.xml.namespace.QName propName,
GMLVersion version)
Returns the properties with the given name, in order. |
Property |
getProperty(javax.xml.namespace.QName propName)
Returns the property with the given name. |
Property |
getProperty(javax.xml.namespace.QName propName,
GMLVersion version)
Returns the property with the given name. |
FeatureType |
getType()
Returns the type information for this feature. |
void |
setId(java.lang.String id)
Sets the id of the feature. |
void |
setProperties(java.util.List<Property> props)
Called during construction to initialize the properties of the feature. |
void |
setProperties(java.util.List<Property> props,
GMLVersion version)
Called during construction to initialize the properties of the feature. |
void |
setPropertyValue(javax.xml.namespace.QName propName,
int occurence,
TypedObjectNode value)
Sets the value of a specific occurrence of a property with a given name (or removes the property feature). |
void |
setPropertyValue(javax.xml.namespace.QName propName,
int occurence,
TypedObjectNode value,
GMLVersion version)
Sets the value of a specific occurrence of a property with a given name (or removes the property from the feature). |
| Method Detail |
|---|
java.lang.String getId()
In a 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 GMLObjectnullvoid setId(java.lang.String id)
In a 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 instance, may be nulljavax.xml.namespace.QName getName()
In a GML representation of the feature, this corresponds to the feature element's name.
nullFeatureType getType()
nullProperty[] getProperties()
gml:name.
nullProperty[] getProperties(GMLVersion version)
version - determines the names and types of the standard GML properties, must not be null
nullProperty[] getProperties(javax.xml.namespace.QName propName)
propName - name of the requested properties
null
Property[] getProperties(javax.xml.namespace.QName propName,
GMLVersion version)
propName - name of the requested propertiesversion - determines the names and types of the standard GML properties, must not be null
nullProperty getProperty(javax.xml.namespace.QName propName)
propName - name of the requested property
java.lang.IllegalArgumentException - if the feature has more than one property with the given name
Property getProperty(javax.xml.namespace.QName propName,
GMLVersion version)
propName - name of the requested propertyversion - determines the names and types of the standard GML properties, must not be null
java.lang.IllegalArgumentException - if the feature has more than one property with the given nameProperty[] getGeometryProperties()
Envelope getEnvelope()
null if the feature has no envelope information / geometry
properties
void setPropertyValue(javax.xml.namespace.QName propName,
int occurence,
TypedObjectNode 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)
java.lang.IllegalArgumentException - if the property names or values are not compatible with the feature type
void setPropertyValue(javax.xml.namespace.QName propName,
int occurence,
TypedObjectNode 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
java.lang.IllegalArgumentException - if the property names or values are not compatible with the feature type
void setProperties(java.util.List<Property> props)
throws java.lang.IllegalArgumentException
props -
java.lang.IllegalArgumentException - if the property names or values are not compatible with the feature type
void setProperties(java.util.List<Property> props,
GMLVersion version)
throws java.lang.IllegalArgumentException
props - version - determines the names and types of the standard GML properties, must not be null
java.lang.IllegalArgumentException - if the property names or values are not compatible with the feature typeStandardGMLFeatureProps getGMLProperties()
GMLObjectgml:name).
getGMLProperties in interface GMLObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||