Package org.geotools.process.feature
Class AbstractFeatureCollectionProcessFactory
- Object
-
- SingleProcessFactory
-
- AbstractFeatureCollectionProcessFactory
-
- All Implemented Interfaces:
ProcessFactory
,Factory
,OptionalFactory
- 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
Fields Modifier and Type Field Description static Parameter<FeatureCollection>
FEATURES
Features for operation
-
Constructor Summary
Constructors Constructor Description AbstractFeatureCollectionProcessFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
addParameters(Map<String,Parameter<?>> parameters)
Method for subclasses to add parameter descriptors for the process.Map<String,Parameter<?>>
getParameterInfo()
Adds theFEATURES
parameter and then delegates toaddParameters(Map)
.-
Methods inherited from class SingleProcessFactory
create, create, getDescription, getDescription, getImplementationHints, getNames, getParameterInfo, getResultInfo, getResultInfo, getTitle, getTitle, getVersion, getVersion, isAvailable, supportsProgress, supportsProgress
-
-
-
-
Field Detail
-
FEATURES
public static final Parameter<FeatureCollection> FEATURES
Features for operation
-
-
Method Detail
-
getParameterInfo
public final Map<String,Parameter<?>> getParameterInfo()
Adds theFEATURES
parameter and then delegates toaddParameters(Map)
.- Specified by:
getParameterInfo
in classSingleProcessFactory
-
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<String, Parameter<?>> parameters) { parameters.put(BUFFER.key, BUFFER); }
-
-