deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.model.feature
Interface FeatureCollection

All Superinterfaces:
Feature
All Known Implementing Classes:
AbstractFeatureCollection, DefaultFeatureCollection, FeatureTupleCollection

public interface FeatureCollection
extends Feature

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $

Method Summary
 void add(Feature feature)
          adds a feature to the collection
 void addAll(Feature[] features)
          Deprecated. use addAllUncontained(org.deegree.model.feature.Feature[]) instead, and note that the method behaves slightly different
 void addAll(FeatureCollection featureCollection)
          Deprecated. use addAllUncontained(org.deegree.model.feature.Feature[]) instead, and note that the method behaves slightly different
 void addAllUncontained(Feature[] features)
          adds a list of features to the collection
 void addAllUncontained(FeatureCollection featureCollection)
          Adds the features to the collection, if they're not already contained.
 void clear()
          removes all features from a collection
 Feature getFeature(int index)
           
 Feature getFeature(java.lang.String id)
           
 java.util.Iterator<Feature> iterator()
          returns an Iterator on the feature contained in a 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
 Feature remove(java.lang.String id)
          removes the feature that is assigned to the submitted id.
 int size()
           
 Feature[] toArray()
           
 
Methods inherited from interface org.deegree.model.feature.Feature
addProperty, clone, cloneDeep, getAttribute, getAttributes, getBoundedBy, getDefaultGeometryPropertyValue, getDefaultProperty, getDefaultProperty, getDescription, getFeatureType, getGeometryPropertyValues, getId, getName, getOwner, getProperties, getProperties, getProperties, removeProperty, replaceProperty, setAttribute, setEnvelopesUpdated, setFeatureType, setId, setProperty
 

Method Detail

clear

void clear()
removes all features from a collection


getFeature

Feature getFeature(int index)
Parameters:
index - of the feature.
Returns:
the feature at the submitted index

getFeature

Feature getFeature(java.lang.String id)
Parameters:
id - of the feature
Returns:
the feature that is assigned to the submitted id. If no valid feature could be found null will be returned.

toArray

Feature[] toArray()
Returns:
an array of all features

iterator

java.util.Iterator<Feature> iterator()
returns an Iterator on the feature contained in a collection

Returns:
an Iterator on the feature contained in a collection

add

void add(Feature feature)
adds a feature to the collection

Parameters:
feature - to add.

addAll

@Deprecated
void addAll(Feature[] features)
Deprecated. use addAllUncontained(org.deegree.model.feature.Feature[]) instead, and note that the method behaves slightly different

adds a list of features to the collection

Parameters:
features - to add.
See Also:
addAllUncontained(org.deegree.model.feature.Feature[])

addAllUncontained

void addAllUncontained(Feature[] features)
adds a list of features to the collection

Parameters:
features - to add.

addAll

@Deprecated
void addAll(FeatureCollection featureCollection)
Deprecated. use addAllUncontained(org.deegree.model.feature.Feature[]) instead, and note that the method behaves slightly different

adds a list of features to the collection

Parameters:
featureCollection - to add.
See Also:
addAllUncontained(org.deegree.model.feature.Feature[])

addAllUncontained

void addAllUncontained(FeatureCollection featureCollection)
Adds the features to the collection, if they're not already contained.

Parameters:
featureCollection -

remove

Feature remove(Feature feature)
removes the submitted feature from the collection

Parameters:
feature - to remove
Returns:
removed feature

remove

Feature remove(int index)
removes the feature at the submitted index from the collection

Parameters:
index - of the feature to remove.
Returns:
removed feature

remove

Feature remove(java.lang.String id)
removes the feature that is assigned to the submitted id. The removed feature will be returned. If no valid feature could be found null will be returned

Parameters:
id - of the feature to remove.
Returns:
removed feature

size

int size()
Returns:
the number of features within the collection

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org