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 Summary
Constructors Constructor Description RuleDescription(String test, String objectType)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
compareTo(String toCompareType, String toCompareTest)
Compare string representation of rule description with current rule descriptionString
getObjectType()
String
getTest()
-
-
-
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 descriptiontoCompareTest
- passed test of another rule description- Returns:
- true if
objectType
andtest
are match
-
-