|
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.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(java.lang.String id,
java.util.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(java.lang.String id)
|
Feature[] |
getTuple(int index)
Returns the feature tuple at the given index. |
java.util.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(java.lang.String id, java.util.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()
size
in interface FeatureCollection
public void add(Feature feature)
FeatureCollection
add
in interface FeatureCollection
feature
- to add.public Feature getFeature(int index)
getFeature
in interface FeatureCollection
index
- of the feature.
public Feature getFeature(java.lang.String id)
getFeature
in interface FeatureCollection
id
- of the feature
null
will be returned.public java.util.Iterator<Feature> iterator()
FeatureCollection
iterator
in interface FeatureCollection
public Feature remove(Feature feature)
FeatureCollection
remove
in interface FeatureCollection
feature
- to remove
public Feature remove(int index)
FeatureCollection
remove
in interface FeatureCollection
index
- of the feature to remove.
public Feature[] toArray()
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 replacedpublic Feature cloneDeep() throws java.lang.CloneNotSupportedException
cloneDeep
in interface Feature
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