Class RuleDescription

java.lang.Object
org.verapdf.metadata.fixer.utils.model.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 Details

    • RuleDescription

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

    • 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