deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.model.feature
Interface FeatureCollection

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

public interface FeatureCollection
extends Feature

Version:
$Revision: 9343 $, $Date: 2007-12-27 14:30:32 +0100 (Do, 27 Dez 2007) $
Author:
Andreas Poth, last edited by: $Author: apoth $

Method Summary
 void add(Feature feature)
          adds a feature to the collection
 void addAll(Feature[] feature)
          adds a list of features to the collection
 void addAll(FeatureCollection feature)
          adds a list of features to the collection
 void clear()
          removes all features from a collection
 Feature getFeature(int index)
          returns the feature at the submitted index
 Feature getFeature(String id)
          returns the feature identified by it's id
 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(String id)
          removes the feature that is assigned to the submitted id.
 int size()
          returns the number of features within the collection
 Feature[] toArray()
          returns an array of all features
 
Methods inherited from interface org.deegree.model.feature.Feature
addProperty, 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)
returns the feature at the submitted index


getFeature

Feature getFeature(String id)
returns the feature identified by it's id


toArray

Feature[] toArray()
returns an array of all features


iterator

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


addAll

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


addAll

void addAll(FeatureCollection feature)
adds a list of features to the collection


remove

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


remove

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


remove

Feature remove(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


size

int size()
returns the number of features within the collection


deegree 2.2 (2008/12/22 11:33 build-3038-official)

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