|
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 |
java.lang.Object org.deegree.model.feature.AbstractFeature org.deegree.model.feature.DefaultFeature
public class DefaultFeature
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.
Field Summary | |
---|---|
protected Geometry[] |
geometryPropertyValues
|
protected FeatureProperty[] |
properties
|
protected java.util.Map<QualifiedName,java.lang.Object> |
propertyMap
|
protected java.lang.Object[] |
propertyValues
|
Fields inherited from class org.deegree.model.feature.AbstractFeature |
---|
description, envelope, envelopeCalculated, featureType, owner |
Constructor Summary | |
---|---|
protected |
DefaultFeature(java.lang.String id,
FeatureType featureType,
FeatureProperty[] properties)
Creates a new instance of DefaultFeature from the given parameters. |
protected |
DefaultFeature(java.lang.String id,
FeatureType featureType,
FeatureProperty[] properties,
FeatureProperty owner)
Creates a new instance of DefaultFeature from the given parameters. |
Method Summary | |
---|---|
void |
addProperty(FeatureProperty property)
Adds the given property to the feature's properties. |
java.lang.Object |
clone()
|
Feature |
cloneDeep()
|
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 in their original order. |
FeatureProperty |
getDefaultProperty(QualifiedName name)
Returns the first property of the feature with the given name. |
Geometry[] |
getGeometryPropertyValues()
Returns the values of all geometry properties 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 |
setProperty(FeatureProperty property,
int index)
Sets the value for the given property. |
java.lang.String |
toString()
|
void |
validate()
TODO type checks! |
Methods inherited from class org.deegree.model.feature.AbstractFeature |
---|
getAttribute, getAttributes, getBoundedBy, getDescription, getFeatureType, getId, getName, getOwner, resetBounds, setAttribute, setEnvelopesUpdated, setFeatureType, setId |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<QualifiedName,java.lang.Object> propertyMap
protected FeatureProperty[] properties
protected java.lang.Object[] propertyValues
protected Geometry[] geometryPropertyValues
Constructor Detail |
---|
protected DefaultFeature(java.lang.String id, FeatureType featureType, FeatureProperty[] properties)
DefaultFeature
from the given parameters.
id
- featureType
- properties
- properties of the new feature, given in their intended orderprotected DefaultFeature(java.lang.String id, FeatureType featureType, FeatureProperty[] properties, FeatureProperty owner)
DefaultFeature
from the given parameters.
id
- featureType
- properties
- properties of the new feature, given in their intended orderowner
- Method Detail |
---|
public void validate() throws FeatureException
FeatureException
public FeatureProperty[] getProperties()
getProperties
in interface Feature
public FeatureProperty[] getProperties(QualifiedName name)
getProperties
in interface Feature
name
- name of the properties to look up
public FeatureProperty getDefaultProperty(PropertyPath path) throws PropertyPathResolvingException
getDefaultProperty
in interface Feature
path
- the path of the property to look up
PropertyPathResolvingException
PropertyPath
public FeatureProperty getDefaultProperty(QualifiedName name)
getDefaultProperty
in interface Feature
name
- name of the property to look up
@Deprecated public FeatureProperty[] getProperties(int index)
getProperties
in interface Feature
index
- index of the properties to look up
public Geometry[] getGeometryPropertyValues()
getGeometryPropertyValues
in interface Feature
public Geometry getDefaultGeometryPropertyValue()
getDefaultGeometryPropertyValue
in interface Feature
public void setProperty(FeatureProperty property, int index)
setProperty
in interface Feature
property
- property name and the property's new valueindex
- position of the property that is to be replacedpublic void addProperty(FeatureProperty property)
addProperty
in interface Feature
property
- property to insertpublic void removeProperty(QualifiedName propertyName)
removeProperty
in interface Feature
propertyName
- name of the (possibly multiple) property to removepublic void replaceProperty(FeatureProperty oldProperty, FeatureProperty newProperty)
replaceProperty
in interface Feature
oldProperty
- property to be replacednewProperty
- new propertypublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface Feature
clone
in class AbstractFeature
java.lang.CloneNotSupportedException
public Feature cloneDeep() throws java.lang.CloneNotSupportedException
cloneDeep
in interface Feature
java.lang.CloneNotSupportedException
public java.lang.String toString()
toString
in class java.lang.Object
|
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