Class G2SuppressedFeaturePlugin.GeneralizationCheckContext

  • Enclosing interface:
    G2SuppressedFeaturePlugin

    public static class G2SuppressedFeaturePlugin.GeneralizationCheckContext
    extends Object
    Context for processing.
    • Constructor Detail

      • GeneralizationCheckContext

        public GeneralizationCheckContext​(FeatureInfo primaryFeature,
                                          FeatureInfo possibleGeneralizationFeature)
        Constructs with the features to check for generalization.
        Parameters:
        primaryFeature - The FeatureInfo describing the primary feature.
        possibleGeneralizationFeature - The FeatureInfo 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, otherwise false.
      • 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, or null to clear an error.