org.deegree.model.feature
Interface FeatureCollection

All Superinterfaces:
Feature
All Known Implementing Classes:
FeatureCollection_Impl

public interface FeatureCollection
extends Feature


Method Summary
 void appendFeature(Feature feature)
          adds a feature to the collection
 void appendFeatures(Feature[] feature)
          adds a list of features to the collection
 void appendFeatures(FeatureCollection feature)
          adds a list of features to the collection
 Feature[] getAllFeatures()
          returns an array of all features
 Feature getFeature(int index)
          returns the feature at the submitted index
 Feature getFeatureById(java.lang.String id)
          returns the feature identified by it's id
 int getSize()
          returns the number of features within the collection
 Feature removeFeature(Feature feature)
          removes the submitted feature from the collection
 Feature removeFeature(int index)
          removes the feature at the submitted index from the collection
 Feature removeFeatureById(java.lang.String id)
          removes the feature that is assigned to the submitted id.
 
Methods inherited from interface org.deegree.model.feature.Feature
getDefaultGeometryProperty, getEnvelope, getFeatureType, getGeometryProperties, getId, getProperties, getProperty, getProperty, setProperty
 

Method Detail

getFeature

public Feature getFeature(int index)
returns the feature at the submitted index


getFeatureById

public Feature getFeatureById(java.lang.String id)
returns the feature identified by it's id


getAllFeatures

public Feature[] getAllFeatures()
returns an array of all features


appendFeature

public void appendFeature(Feature feature)
adds a feature to the collection


appendFeatures

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


appendFeatures

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


removeFeature

public Feature removeFeature(Feature feature)
removes the submitted feature from the collection


removeFeature

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


removeFeatureById

public Feature removeFeatureById(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


getSize

public int getSize()
returns the number of features within the collection