| java.lang.Object org.deegree.model.feature.AbstractFeature org.deegree.model.feature.AbstractFeatureCollection org.deegree.model.feature.DefaultFeatureCollection
DefaultFeatureCollection | class DefaultFeatureCollection extends AbstractFeatureCollection implements Serializable(Code) | | This interface provides services for the management of groups of features. These groups can come into being for a
number of reasons: e.g. a project as a whole, for the scope of a query, as the result of a query or arbitrarily
selected by a user for some common manipulation. A feature's membership of a particular FeatureCollection does not
necessarily imply any relationship with other member features. Composite or compound features which own constituent
member Features (e.g. an Airport composed of Terminals, Runways, Aprons, Hangars, etc) may also support the
FeatureCollection interface to provide a generic means for clients to access constituent members without needing to
be aware of the internal implementation details of the compound feature.
-----------------------------------------------------------------------
author: Andreas Poth version: $Revision: 10533 $ $Date: 2008-03-10 02:31:08 -0700 (Mon, 10 Mar 2008) $ |
DefaultFeatureCollection | DefaultFeatureCollection(String id, int initialCapacity)(Code) | | |
DefaultFeatureCollection | DefaultFeatureCollection(String id, Feature[] feature)(Code) | | constructor for initializing a feature collection with an id and an array of features.
|
DefaultFeatureCollection | DefaultFeatureCollection(String id, Feature[] features, QualifiedName qName)(Code) | | Constructor for initializing a feature collection with an id and an array of features. It's name will be taken
from the given name.
Parameters: id - of the feature collection Parameters: features - to be added Parameters: qName - of the feature collection, if null the default name of wfs:FeatureCollection will begiven. |
add | public void add(Feature feature)(Code) | | Appends a feature to the collection. If the submitted feature doesn't matches the feature type defined for all
features within the collection an exception will be thrown.
|
clear | public void clear()(Code) | | |
clone | public Object clone()(Code) | | a shallow clone of a feature collection. Property values of contained features will not be cloned except for properties that are features (DefaultFeature) or feature collections (DefaultFeatureCollection). |
getFeature | public Feature getFeature(int index)(Code) | | returns the feature that is assigned to the submitted index. If the submitted value for index is
smaller 0 and larger then the number features within the featurecollection-1 an exeption will be thrown.
|
getFeature | public Feature getFeature(String id)(Code) | | returns the feature that is assigned to the submitted id. If no valid feature could be found an Object[]
with zero length will be returned.
|
getFeatureType | public FeatureType getFeatureType()(Code) | | the FeatureType of this Feature(Collection) |
iterator | public Iterator<Feature> iterator()(Code) | | returns an Iterator on the feature contained in a collection
an Iterator on the feature contained in a collection |
remove | public Feature remove(Feature feature)(Code) | | removes the submitted feature from the collection
|
remove | public Feature remove(int index)(Code) | | removes a feature identified by its index from the feature collection. The removed feature will be returned. If
the submitted value for index is smaller 0 and larger then the number features within the
featurecollection-1 an ArrayIndexOutOfBoundsExcpetion will raise
|
size | public int size()(Code) | | returns the number of features within the collection
|
toArray | public Feature[] toArray()(Code) | | returns an array of all features
|
|
|