Package org.geotools.process.feature
Class AbstractFeatureCollectionProcessFactory
Object
SingleProcessFactory
AbstractFeatureCollectionProcessFactory
- All Implemented Interfaces:
ProcessFactory
,Factory
,OptionalFactory
- Direct Known Subclasses:
FeatureToFeatureProcessFactory
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
FieldsModifier and TypeFieldDescriptionstatic final Parameter<FeatureCollection>
Features for operation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addParameters
(Map<String, Parameter<?>> parameters) Method for subclasses to add parameter descriptors for the process.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 Details
-
FEATURES
Features for operation
-
-
Constructor Details
-
AbstractFeatureCollectionProcessFactory
public AbstractFeatureCollectionProcessFactory()
-
-
Method Details
-
getParameterInfo
Adds theFEATURES
parameter and then delegates toaddParameters(Map)
.- Specified by:
getParameterInfo
in classSingleProcessFactory
-
addParameters
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); }
-