Package com.senzing.g2.engine.plugin
Class G2ExpressedFeaturePlugin.ProcessingContext
- java.lang.Object
-
- com.senzing.g2.engine.plugin.G2ExpressedFeaturePlugin.ProcessingContext
-
- Enclosing interface:
- G2ExpressedFeaturePlugin
public static class G2ExpressedFeaturePlugin.ProcessingContext extends Object
Context for processing.
-
-
Constructor Summary
Constructors Constructor Description ProcessingContext(List<FeatureInfo> input)
Constructs with theList
ofFeatureInfo
instances describing the feature values to be processed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorMessage()
Get the error message (if any).List<FeatureInfo>
getInput()
Gets an unmodifiableList
containing theFeatureInfo
instances describing the input feature values.List<FeatureInfo>
getResult()
Gets the modifiable resultList
.void
setErrorMessage(String message)
Sets the error message (if any).
-
-
-
Constructor Detail
-
ProcessingContext
public ProcessingContext(List<FeatureInfo> input)
Constructs with theList
ofFeatureInfo
instances describing the feature values to be processed.- Parameters:
input
- TheList
ofFeatureInfo
instances to be processed.
-
-
Method Detail
-
getInput
public List<FeatureInfo> getInput()
Gets an unmodifiableList
containing theFeatureInfo
instances describing the input feature values.- Returns:
- An unmodifiable
List
ofFeatureInfo
instances.
-
getResult
public List<FeatureInfo> getResult()
Gets the modifiable resultList
. The caller is expected to callList.add(Object)
one or more times to add results.- Returns:
- The modifiable result
List
.
-
getErrorMessage
public String getErrorMessage()
Get the error message (if any).- Returns:
- The error message that was set or
null
if no error.
-
setErrorMessage
public void setErrorMessage(String message)
Sets the error message (if any).- Parameters:
message
- The error message to set if an error occurs, ornull
to clear an error.
-
-