Package org.verapdf.policy
Enum SchematronOperation
- java.lang.Object
-
- java.lang.Enum<SchematronOperation>
-
- org.verapdf.policy.SchematronOperation
-
- All Implemented Interfaces:
Serializable,Comparable<SchematronOperation>
public enum SchematronOperation extends Enum<SchematronOperation>
Enum with operations on elements of Feature.FeatureType that can be used in policy configuration file.- Author:
- Sergey Shemyakov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchematronOperation.AssertionInformation
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINSIS_EQUALIS_FALSEIS_GREATERIS_GREATER_OR_EQUALIS_LESSIS_LESS_OR_EQUALIS_TRUENOT_EQUALNOT_PRESENTPRESENTSTARTS_WITH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SchematronOperation.AssertionInformationgetAssertionInfo(Feature feature, String argument)StringgetDescription()booleanhasArguments()static SchematronOperationvalueOf(String name)Returns the enum constant of this type with the specified name.static SchematronOperation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRESENT
public static final SchematronOperation PRESENT
-
NOT_PRESENT
public static final SchematronOperation NOT_PRESENT
-
IS_EQUAL
public static final SchematronOperation IS_EQUAL
-
NOT_EQUAL
public static final SchematronOperation NOT_EQUAL
-
IS_TRUE
public static final SchematronOperation IS_TRUE
-
IS_FALSE
public static final SchematronOperation IS_FALSE
-
IS_GREATER
public static final SchematronOperation IS_GREATER
-
IS_GREATER_OR_EQUAL
public static final SchematronOperation IS_GREATER_OR_EQUAL
-
IS_LESS
public static final SchematronOperation IS_LESS
-
IS_LESS_OR_EQUAL
public static final SchematronOperation IS_LESS_OR_EQUAL
-
STARTS_WITH
public static final SchematronOperation STARTS_WITH
-
CONTAINS
public static final SchematronOperation CONTAINS
-
-
Method Detail
-
values
public static SchematronOperation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SchematronOperation c : SchematronOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SchematronOperation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
hasArguments
public boolean hasArguments()
-
getDescription
public String getDescription()
-
getAssertionInfo
public SchematronOperation.AssertionInformation getAssertionInfo(Feature feature, String argument)
-
-