|
deegree 2.2 (2008/12/22 11:33 build-3038-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.
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 |
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)
returns the feature at the submitted index |
Feature |
getFeature(String id)
returns the feature identified by it's id |
Feature[] |
getTuple(int index)
Returns the feature tuple at the given index. |
Iterator |
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()
returns the number of features within the collection |
Feature[] |
toArray()
returns an array of all features |
int |
tupleLength()
Returns the length (number of features) of each tuple. |
Methods inherited from class org.deegree.model.feature.AbstractFeatureCollection |
---|
addAll, addAll, getDefaultGeometryPropertyValue, getDefaultProperty, getGeometryPropertyValues, getProperties, getProperties, getProperties, remove, setProperty |
Methods inherited from class org.deegree.model.feature.AbstractFeature |
---|
getAttribute, getAttributes, getDescription, getFeatureType, getId, getName, getOwner, resetBounds, setAttribute, setEnvelopesUpdated, setFeatureType, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.deegree.model.feature.Feature |
---|
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 FeatureCollection
public Feature[] getTuple(int index)
index
-
public int numTuples()
public int tupleLength()
public Envelope getBoundedBy() throws GeometryException
AbstractFeature
null
will be returned.
getBoundedBy
in interface Feature
getBoundedBy
in class AbstractFeature
GeometryException
public int size()
FeatureCollection
size
in interface FeatureCollection
public void add(Feature feature)
FeatureCollection
add
in interface FeatureCollection
public Feature getFeature(int index)
FeatureCollection
getFeature
in interface FeatureCollection
public Feature getFeature(String id)
FeatureCollection
getFeature
in interface FeatureCollection
public Iterator iterator()
FeatureCollection
iterator
in interface FeatureCollection
public Feature remove(Feature feature)
FeatureCollection
remove
in interface FeatureCollection
public Feature remove(int index)
FeatureCollection
remove
in interface FeatureCollection
public Feature[] toArray()
FeatureCollection
toArray
in interface FeatureCollection
public void addProperty(FeatureProperty property)
Feature
addProperty
in interface Feature
property
- property to insertpublic FeatureProperty getDefaultProperty(PropertyPath path) throws PropertyPathResolvingException
Feature
PropertyPath
.
NOTE: Current implementation does not handle multiple properties (on the path) or index
addressing in the path.
getDefaultProperty
in interface Feature
path
- the path of the property to look up
PropertyPathResolvingException
PropertyPath
public void removeProperty(QualifiedName propertyName)
Feature
removeProperty
in interface Feature
propertyName
- name of the properties to removepublic void replaceProperty(FeatureProperty oldProperty, FeatureProperty newProperty)
Feature
replaceProperty
in interface Feature
oldProperty
- property to be replacednewProperty
- new propertypublic void setProperty(FeatureProperty property, int index)
Feature
setProperty
in interface Feature
property
- property name and the property's new valueindex
- position of the property that is to be replaced
|
deegree 2.2 (2008/12/22 11:33 build-3038-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