|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Feature
Features are, according to the Abstract Specification, digital representations of real world entities. Feature Identity thus refers to mechanisms to identify such representations: not to identify the real world entities that are the subject of a representation. Thus two different representations of a real world entity (say the Mississippi River) will be two different features with distinct identities. Real world identification systems, such as title numbers, while possibly forming a sound basis for an implementation of a feature identity mechanism, are not of themselves such a mechanism.
Method Summary | |
---|---|
void |
addProperty(FeatureProperty property)
Adds the given property to the feature's properties. |
java.lang.Object |
clone()
|
Feature |
cloneDeep()
|
java.lang.String |
getAttribute(java.lang.String name)
Returns the attribute value of the attribute with the specified name. |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Returns all attributes of the feature. |
Envelope |
getBoundedBy()
Returns the envelope / bounding box of the feature. |
Geometry |
getDefaultGeometryPropertyValue()
Returns the value of the default geometry property of the feature. |
FeatureProperty |
getDefaultProperty(PropertyPath path)
Returns the property of the feature identified by the given PropertyPath . |
FeatureProperty |
getDefaultProperty(QualifiedName name)
Returns the first property of the feature with the given name. |
java.lang.String |
getDescription()
Returns the description of the feature. |
FeatureType |
getFeatureType()
Returns the feature type of this feature. |
Geometry[] |
getGeometryPropertyValues()
Returns the values of all geometry properties of the feature. |
java.lang.String |
getId()
Returns the id of the feature. |
QualifiedName |
getName()
Returns the qualified name of the feature. |
FeatureProperty |
getOwner()
Returns the owner of the feature. |
FeatureProperty[] |
getProperties()
Returns all properties of the feature in their original order. |
FeatureProperty[] |
getProperties(int index)
Deprecated. |
FeatureProperty[] |
getProperties(QualifiedName name)
Returns the properties of the feature with the given name in their original order. |
void |
removeProperty(QualifiedName propertyName)
Removes the properties with the given name. |
void |
replaceProperty(FeatureProperty oldProperty,
FeatureProperty newProperty)
Replaces the given property with a new one. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Sets the value of the attribute with the given name. |
void |
setEnvelopesUpdated()
Signals that the envelopes of the geometry properties have been updated. |
void |
setFeatureType(FeatureType ft)
Sets the feature type of this feature. |
void |
setId(java.lang.String fid)
Sets the id of the feature. |
void |
setProperty(FeatureProperty property,
int index)
Sets the value for the given property. |
Method Detail |
---|
QualifiedName getName()
java.lang.String getDescription()
java.lang.String getId()
void setId(java.lang.String fid)
fid
- the id of the feature to be setFeatureType getFeatureType()
void setFeatureType(FeatureType ft)
ft
- feature type to setFeatureProperty[] getProperties()
FeatureProperty getDefaultProperty(QualifiedName name)
name
- name of the property to look up
FeatureProperty getDefaultProperty(PropertyPath path) throws PropertyPathResolvingException
PropertyPath
.
NOTE: Current implementation does not handle multiple properties (on the path) or index
addressing in the path.
path
- the path of the property to look up
PropertyPathResolvingException
PropertyPath
FeatureProperty[] getProperties(QualifiedName name)
name
- name of the properties to look up
@Deprecated FeatureProperty[] getProperties(int index)
index
- index of the properties to look up
Geometry[] getGeometryPropertyValues()
Geometry getDefaultGeometryPropertyValue()
void setProperty(FeatureProperty property, int index)
property
- property name and the property's new valueindex
- position of the property that is to be replacedvoid addProperty(FeatureProperty property)
property
- property to insertvoid removeProperty(QualifiedName propertyName)
propertyName
- name of the properties to removevoid replaceProperty(FeatureProperty oldProperty, FeatureProperty newProperty)
oldProperty
- property to be replacednewProperty
- new propertyEnvelope getBoundedBy() throws GeometryException
GeometryException
FeatureProperty getOwner()
java.lang.String getAttribute(java.lang.String name)
name
- name of the attribute
java.util.Map<java.lang.String,java.lang.String> getAttributes()
void setAttribute(java.lang.String name, java.lang.String value)
name
- name of the attributevalue
- value to setvoid setEnvelopesUpdated()
java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
Feature cloneDeep() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org