Package com.senzing.g2.engine.plugin
Class G2StandardizationPlugin.ProcessingContext
- java.lang.Object
-
- com.senzing.g2.engine.plugin.G2StandardizationPlugin.ProcessingContext
-
- Enclosing interface:
- G2StandardizationPlugin
public static class G2StandardizationPlugin.ProcessingContext extends Object
Context for processing.
-
-
Constructor Summary
Constructors Constructor Description ProcessingContext(FeatureInfo input)
Constructs an instance based on an input feature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorMessage()
Get the error message (if any).FeatureInfo
getInput()
Gets theFeatureInfo
describing the input feature.FeatureInfo
getResult()
Gets theFeatureInfo
describing the result feature.void
setErrorMessage(String message)
Sets the error message (if any).void
setResult(FeatureInfo result)
Sets the result feature
-
-
-
Constructor Detail
-
ProcessingContext
public ProcessingContext(FeatureInfo input)
Constructs an instance based on an input feature.- Parameters:
input
- The input feature.
-
-
Method Detail
-
getInput
public FeatureInfo getInput()
Gets theFeatureInfo
describing the input feature.- Returns:
- The input feature.
-
getResult
public FeatureInfo getResult()
Gets theFeatureInfo
describing the result feature.- Returns:
- The result feature.
-
setResult
public void setResult(FeatureInfo result)
Sets the result feature- Parameters:
result
- The result feature
-
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.
-
-