Class RuleDescription


  • public class RuleDescription
    extends Object
    Class represent description of the rule. Each rule must be defined by applied object type and test condition or null test (to define all tests for specific object).
    Author:
    Evgeniy Muravitskiy
    • Constructor Detail

      • RuleDescription

        public RuleDescription​(String test,
                               String objectType)
        Default constructor.
        Parameters:
        test - test condition for current object type
        objectType - applied object type
    • Method Detail

      • getObjectType

        public String getObjectType()
        Returns:
        applied object type
      • getTest

        public String getTest()
        Returns:
        test condition for current object type
      • compareTo

        public boolean compareTo​(String toCompareType,
                                 String toCompareTest)
        Compare string representation of rule description with current rule description
        Parameters:
        toCompareType - passed object type of another rule description
        toCompareTest - passed test of another rule description
        Returns:
        true if objectType and test are match