org.geotools.process.feature
Class AbstractFeatureCollectionProcessFactory

Object
  extended by SingleProcessFactory
      extended by AbstractFeatureCollectionProcessFactory
All Implemented Interfaces:
Factory, OptionalFactory, ProcessFactory
Direct Known Subclasses:
FeatureToFeatureProcessFactory

public abstract class AbstractFeatureCollectionProcessFactory
extends SingleProcessFactory

Base class for process factories which perform an operation on each feature in a feature collection.

Subclasses must implement:

Since:
2.6
Author:
Justin Deoliveira, OpenGEO

Field Summary
static Parameter<FeatureCollection> FEATURES
          Features for operation
 
Constructor Summary
AbstractFeatureCollectionProcessFactory()
           
 
Method Summary
protected abstract  void addParameters(Map<String,Parameter<?>> parameters)
          Method for subclasses to add parameter descriptors for the process.
 Map<String,Parameter<?>> getParameterInfo()
          Adds the FEATURES parameter and then delegates to addParameters(Map).
 
Methods inherited from class SingleProcessFactory
create, create, getDescription, getDescription, getImplementationHints, getNames, getParameterInfo, getResultInfo, getResultInfo, getTitle, getTitle, getVersion, getVersion, isAvailable, supportsProgress, supportsProgress
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FEATURES

public static final Parameter<FeatureCollection> FEATURES
Features for operation

Constructor Detail

AbstractFeatureCollectionProcessFactory

public AbstractFeatureCollectionProcessFactory()
Method Detail

getParameterInfo

public final Map<String,Parameter<?>> getParameterInfo()
Adds the FEATURES parameter and then delegates to addParameters(Map).

Specified by:
getParameterInfo in class SingleProcessFactory

addParameters

protected abstract void addParameters(Map<String,Parameter<?>> parameters)
Method for subclasses to add parameter descriptors for the process.

Subclasses should not add a parameter for the input feature collection as this is done by the case class. Example implementation for a simple buffer example:

 protected void addParameters(Map> parameters) {
    parameters.put(BUFFER.key, BUFFER);
 }
 



Copyright © 1996-2014 Geotools. All Rights Reserved.