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 StringgetErrorMessage()Get the error message (if any).FeatureInfogetPossibleGeneralizationComponents()Gets the possibly generalized feature.FeatureInfogetPrimaryComponents()Gets the primary feature.booleanisGeneralized()Returns whether or not the feature in question was determined to be a generalization of the primary feature.voidsetErrorMessage(String message)Sets the error message (if any).voidsetGeneralized(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- TheFeatureInfodescribing the primary feature.possibleGeneralizationFeature- TheFeatureInfodescribing 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:
trueif 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
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.
-
-