Package com.senzing.g2.engine.plugin
Class G2SuppressedFeaturePlugin.GeneralizationCheckContext
- java.lang.Object
-
- com.senzing.g2.engine.plugin.G2SuppressedFeaturePlugin.GeneralizationCheckContext
-
- Enclosing interface:
- G2SuppressedFeaturePlugin
public static class G2SuppressedFeaturePlugin.GeneralizationCheckContext extends Object
Context for processing.
-
-
Constructor Summary
Constructors Constructor Description GeneralizationCheckContext(FeatureInfo primaryFeature, FeatureInfo possibleGeneralizationFeature)
Constructs with the features to check for generalization.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorMessage()
Get the error message (if any).FeatureInfo
getPossibleGeneralizationComponents()
Gets the possibly generalized feature.FeatureInfo
getPrimaryComponents()
Gets the primary feature.boolean
isGeneralized()
Returns whether or not the feature in question was determined to be a generalization of the primary feature.void
setErrorMessage(String message)
Sets the error message (if any).void
setGeneralized(boolean gen)
Set the flag indicating whether the feature in question was determined to be a generalization of the primary feature
-
-
-
Constructor Detail
-
GeneralizationCheckContext
public GeneralizationCheckContext(FeatureInfo primaryFeature, FeatureInfo possibleGeneralizationFeature)
Constructs with the features to check for generalization.- Parameters:
primaryFeature
- TheFeatureInfo
describing the primary feature.possibleGeneralizationFeature
- TheFeatureInfo
describing the possible generalization feature.
-
-
Method Detail
-
getPrimaryComponents
public FeatureInfo getPrimaryComponents()
Gets the primary feature.- Returns:
- The primary feature.
-
getPossibleGeneralizationComponents
public FeatureInfo getPossibleGeneralizationComponents()
Gets the possibly generalized feature.- Returns:
- The possibly generalized feature.
-
isGeneralized
public boolean isGeneralized()
Returns whether or not the feature in question was determined to be a generalization of the primary feature.- Returns:
true
if the feature in question is a generalization, otherwisefalse
.
-
setGeneralized
public void setGeneralized(boolean gen)
Set the flag indicating whether the feature in question was determined to be a generalization of the primary feature- Parameters:
gen
- A flag indicating whether the feature is a generalization.
-
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.
-
-