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 theListofFeatureInfoinstances describing the feature values to be processed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorMessage()Get the error message (if any).List<FeatureInfo>getInput()Gets an unmodifiableListcontaining theFeatureInfoinstances describing the input feature values.List<FeatureInfo>getResult()Gets the modifiable resultList.voidsetErrorMessage(String message)Sets the error message (if any).
-
-
-
Constructor Detail
-
ProcessingContext
public ProcessingContext(List<FeatureInfo> input)
Constructs with theListofFeatureInfoinstances describing the feature values to be processed.- Parameters:
input- TheListofFeatureInfoinstances to be processed.
-
-
Method Detail
-
getInput
public List<FeatureInfo> getInput()
Gets an unmodifiableListcontaining theFeatureInfoinstances describing the input feature values.- Returns:
- An unmodifiable
ListofFeatureInfoinstances.
-
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
nullif 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, ornullto clear an error.
-
-