| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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  Map | 
propertyMap
 | 
protected  Object[] | 
propertyValues
 | 
| Fields inherited from class org.deegree.model.feature.AbstractFeature | 
|---|
description, envelope, envelopeCalculated, featureType, owner | 
| Constructor Summary | |
|---|---|
protected  | 
DefaultFeature(String id,
                             FeatureType featureType,
                             FeatureProperty[] properties)
Creates a new instance of DefaultFeature from the given parameters. | 
protected  | 
DefaultFeature(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.  | 
 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.  | 
 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 | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected Map propertyMap
protected FeatureProperty[] properties
protected Object[] propertyValues
protected Geometry[] geometryPropertyValues
| Constructor Detail | 
|---|
protected DefaultFeature(String id,
                         FeatureType featureType,
                         FeatureProperty[] properties)
DefaultFeature from the given parameters.
id - featureType - properties - properties of the new feature, given in their intended order
protected DefaultFeature(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
FeatureExceptionpublic FeatureProperty[] getProperties()
getProperties in interface Featurepublic FeatureProperty[] getProperties(QualifiedName name)
getProperties in interface Featurename - name of the properties to look up
public FeatureProperty getDefaultProperty(PropertyPath path)
                                   throws PropertyPathResolvingException
getDefaultProperty in interface Featurepath - the path of the property to look up
PropertyPathResolvingExceptionPropertyPathpublic FeatureProperty getDefaultProperty(QualifiedName name)
getDefaultProperty in interface Featurename - name of the property to look up
public FeatureProperty[] getProperties(int index)
getProperties in interface Featureindex - index of the properties to look up
public Geometry[] getGeometryPropertyValues()
getGeometryPropertyValues in interface Featurepublic Geometry getDefaultGeometryPropertyValue()
getDefaultGeometryPropertyValue in interface Feature
public void setProperty(FeatureProperty property,
                        int index)
setProperty in interface Featureproperty - property name and the property's new valueindex - position of the property that is to be replacedpublic void addProperty(FeatureProperty property)
addProperty in interface Featureproperty - property to insertpublic void removeProperty(QualifiedName propertyName)
removeProperty in interface FeaturepropertyName - name of the (possibly multiple) property to remove
public void replaceProperty(FeatureProperty oldProperty,
                            FeatureProperty newProperty)
replaceProperty in interface FeatureoldProperty - property to be replacednewProperty - new propertypublic String toString()
toString in class Object
  | 
deegree 2.1 (2007/11/08 09:57 build-328-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://deegree.sourceforge.net