|
deegree 2.3 (2010/04/09 10:10 build-4-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.AbstractFeatureCollection
org.deegree.model.feature.FeatureTupleCollection
public class FeatureTupleCollection
Represents a FeatureCollection that only contains wfs:featureTuple elements (as introduced by
the draft WFS 1.2 spec).
NOTE: Some concepts of ordinary feature collections (like adding and removing of features) do not match well to this
special kind of feature collection, mostly because it uses a FeatureArrayPropertyType for the
wfs:featureTuple element. Thus, many methods inherited from AbstractFeatureCollection have no
clear semantic and are not available.
!!!Please note that most methods are not implemented yet!!!
| Field Summary |
|---|
| Fields inherited from class org.deegree.model.feature.AbstractFeature |
|---|
description, envelopeCalculated, featureType, owner |
| Constructor Summary | |
|---|---|
FeatureTupleCollection(String id,
List<Feature[]> tuples,
int tupleLength)
|
|
| Method Summary | |
|---|---|
void |
add(Feature feature)
adds a feature to the collection |
void |
addProperty(FeatureProperty property)
Adds the given property to the feature's properties. |
void |
clear()
removes all features from a collection |
Feature |
cloneDeep()
|
Envelope |
getBoundedBy()
Returns the envelope / boundingbox of the feature. |
FeatureProperty |
getDefaultProperty(PropertyPath path)
Returns the property of the feature identified by the given PropertyPath. |
Feature |
getFeature(int index)
|
Feature |
getFeature(String id)
|
Feature[] |
getTuple(int index)
Returns the feature tuple at the given index. |
Iterator<Feature> |
iterator()
returns an Iterator on the feature contained in a collection |
int |
numTuples()
Returns the number of feature tuples contained in this collection. |
Feature |
remove(Feature feature)
removes the submitted feature from the collection |
Feature |
remove(int index)
removes the feature at the submitted index from the collection |
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. |
int |
size()
|
Feature[] |
toArray()
|
int |
tupleLength()
Returns the length (number of features) of each tuple. |
| Methods inherited from class org.deegree.model.feature.AbstractFeatureCollection |
|---|
addAll, addAll, addAllUncontained, addAllUncontained, getDefaultGeometryPropertyValue, getDefaultProperty, getGeometryPropertyValues, getProperties, getProperties, getProperties, remove, setProperty |
| Methods inherited from class org.deegree.model.feature.AbstractFeature |
|---|
clone, getAttribute, getAttributes, getDescription, getFeatureType, getId, getName, getOwner, resetBounds, setAttribute, setEnvelopesUpdated, setFeatureType, setId |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.deegree.model.feature.Feature |
|---|
clone, getAttribute, getAttributes, getDescription, getFeatureType, getId, getName, getOwner, setAttribute, setEnvelopesUpdated, setFeatureType, setId |
| Constructor Detail |
|---|
FeatureTupleCollection(String id,
List<Feature[]> tuples,
int tupleLength)
| Method Detail |
|---|
public void clear()
FeatureCollection
clear in interface FeatureCollectionpublic Feature[] getTuple(int index)
index -
public int numTuples()
public int tupleLength()
public Envelope getBoundedBy()
throws GeometryException
AbstractFeaturenull will be returned.
getBoundedBy in interface FeaturegetBoundedBy in class AbstractFeatureGeometryExceptionpublic int size()
size in interface FeatureCollectionpublic void add(Feature feature)
FeatureCollection
add in interface FeatureCollectionfeature - to add.public Feature getFeature(int index)
getFeature in interface FeatureCollectionindex - of the feature.
public Feature getFeature(String id)
getFeature in interface FeatureCollectionid - of the feature
null
will be returned.public Iterator<Feature> iterator()
FeatureCollection
iterator in interface FeatureCollectionpublic Feature remove(Feature feature)
FeatureCollection
remove in interface FeatureCollectionfeature - to remove
public Feature remove(int index)
FeatureCollection
remove in interface FeatureCollectionindex - of the feature to remove.
public Feature[] toArray()
toArray in interface FeatureCollectionpublic void addProperty(FeatureProperty property)
Feature
addProperty in interface Featureproperty - property to insert
public FeatureProperty getDefaultProperty(PropertyPath path)
throws PropertyPathResolvingException
FeaturePropertyPath.
NOTE: Current implementation does not handle multiple properties (on the path) or index
addressing in the path.
getDefaultProperty in interface Featurepath - the path of the property to look up
PropertyPathResolvingExceptionPropertyPathpublic void removeProperty(QualifiedName propertyName)
Feature
removeProperty in interface FeaturepropertyName - name of the properties to remove
public void replaceProperty(FeatureProperty oldProperty,
FeatureProperty newProperty)
Feature
replaceProperty in interface FeatureoldProperty - property to be replacednewProperty - new property
public void setProperty(FeatureProperty property,
int index)
Feature
setProperty in interface Featureproperty - property name and the property's new valueindex - position of the property that is to be replaced
public Feature cloneDeep()
throws CloneNotSupportedException
cloneDeep in interface FeatureCloneNotSupportedException
|
deegree 2.3 (2010/04/09 10:10 build-4-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