de.fhpotsdam.unfolding.data
Class MultiFeature

java.lang.Object
  extended by de.fhpotsdam.unfolding.data.Feature
      extended by de.fhpotsdam.unfolding.data.MultiFeature

public class MultiFeature
extends Feature

A feature consisting of multiple features. Only contains one properties list. Can be used for e.g. JSON's GeometryCollection, but also for MultiPolygons, etc.


Nested Class Summary
 
Nested classes/interfaces inherited from class de.fhpotsdam.unfolding.data.Feature
Feature.FeatureType
 
Field Summary
 
Fields inherited from class de.fhpotsdam.unfolding.data.Feature
properties
 
Constructor Summary
MultiFeature()
          Creates a new MultiFeature.
 
Method Summary
 void addFeature(Feature feature)
          Adss a feature to this multi-feature.
 java.util.List<Feature> getFeatures()
          Returns all features of this multi-feature.
 void setFeatures(java.util.List<Feature> features)
          Sets all features of this multi-feature.
 
Methods inherited from class de.fhpotsdam.unfolding.data.Feature
addProperty, getId, getProperties, getProperty, getStringProperty, getType, putProperty, setId, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiFeature

public MultiFeature()
Creates a new MultiFeature.

Method Detail

getFeatures

public java.util.List<Feature> getFeatures()
Returns all features of this multi-feature. The features can be of any type, even further MultiFeatures.

Returns:
All features.

setFeatures

public void setFeatures(java.util.List<Feature> features)
Sets all features of this multi-feature.

Parameters:
features - The features.

addFeature

public void addFeature(Feature feature)
Adss a feature to this multi-feature.

Parameters:
feature - A feature.