Package com.adobe.xmp.schema.model
Enum TypeRule.ComparisonOperator
- java.lang.Object
-
- java.lang.Enum<TypeRule.ComparisonOperator>
-
- com.adobe.xmp.schema.model.TypeRule.ComparisonOperator
-
- All Implemented Interfaces:
Serializable
,Comparable<TypeRule.ComparisonOperator>
- Enclosing interface:
- TypeRule
public static enum TypeRule.ComparisonOperator extends Enum<TypeRule.ComparisonOperator>
Comparison operators, used for Integer, Real, as well as array and string length
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUALS
Equals works also for TextGREATER
compare greaterGREATER_EQUALS
compare equalsLESS
compare lessLESS_EQUALS
compare less or equals
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeRule.ComparisonOperator
valueOf(String name)
Returns the enum constant of this type with the specified name.static TypeRule.ComparisonOperator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUALS
public static final TypeRule.ComparisonOperator EQUALS
Equals works also for Text
-
LESS
public static final TypeRule.ComparisonOperator LESS
compare less
-
LESS_EQUALS
public static final TypeRule.ComparisonOperator LESS_EQUALS
compare less or equals
-
GREATER
public static final TypeRule.ComparisonOperator GREATER
compare greater
-
GREATER_EQUALS
public static final TypeRule.ComparisonOperator GREATER_EQUALS
compare equals
-
-
Method Detail
-
values
public static TypeRule.ComparisonOperator[] 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 (TypeRule.ComparisonOperator c : TypeRule.ComparisonOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeRule.ComparisonOperator 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
-
-