Enum ValueMatchOperator
- java.lang.Object
-
- java.lang.Enum<ValueMatchOperator>
-
- org.uitnet.testing.smartfwk.core.validator.ValueMatchOperator
-
- All Implemented Interfaces:
Serializable,Comparable<ValueMatchOperator>
public enum ValueMatchOperator extends Enum<ValueMatchOperator>
This operator is used to match with expected value. Expected value format could be like given below: Format-1: As a JSON. based on the operator type different parameter's value can be specified. {ev: ["ev1", "ev2"], valueType="", textMatchMechanism: "", n: 5, inOrder: "yes/no", regEx: ""} Format-2: not as a JSON. In this case you can not specify multiple values and the other parameters for data matching purpose. It will always work based on the exact text match mechanism. i.e. ev- Author:
- Madhav Krishna
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINSCONTAINS_ATLEAST_NCONTAINS_ATMOST_NENDS_WITHEQUAL_TOGREATER_THANGREATER_THAN_EQUAL_TOINLESS_THANLESS_THAN_EQUAL_TONOT_CONTAINSNOT_ENDS_WITHNOT_EQUAL_TONOT_INNOT_PRESENTNOT_STARTS_WITHPRESENTSTARTS_WITH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetOperator()StringtoString()static ValueMatchOperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static ValueMatchOperatorvalueOf2(String type)static ValueMatchOperator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUAL_TO
public static final ValueMatchOperator EQUAL_TO
-
NOT_EQUAL_TO
public static final ValueMatchOperator NOT_EQUAL_TO
-
GREATER_THAN
public static final ValueMatchOperator GREATER_THAN
-
GREATER_THAN_EQUAL_TO
public static final ValueMatchOperator GREATER_THAN_EQUAL_TO
-
LESS_THAN
public static final ValueMatchOperator LESS_THAN
-
LESS_THAN_EQUAL_TO
public static final ValueMatchOperator LESS_THAN_EQUAL_TO
-
IN
public static final ValueMatchOperator IN
-
NOT_IN
public static final ValueMatchOperator NOT_IN
-
CONTAINS
public static final ValueMatchOperator CONTAINS
-
NOT_CONTAINS
public static final ValueMatchOperator NOT_CONTAINS
-
CONTAINS_ATLEAST_N
public static final ValueMatchOperator CONTAINS_ATLEAST_N
-
CONTAINS_ATMOST_N
public static final ValueMatchOperator CONTAINS_ATMOST_N
-
STARTS_WITH
public static final ValueMatchOperator STARTS_WITH
-
NOT_STARTS_WITH
public static final ValueMatchOperator NOT_STARTS_WITH
-
ENDS_WITH
public static final ValueMatchOperator ENDS_WITH
-
NOT_ENDS_WITH
public static final ValueMatchOperator NOT_ENDS_WITH
-
PRESENT
public static final ValueMatchOperator PRESENT
-
NOT_PRESENT
public static final ValueMatchOperator NOT_PRESENT
-
-
Method Detail
-
values
public static ValueMatchOperator[] 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 (ValueMatchOperator c : ValueMatchOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValueMatchOperator 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
-
getOperator
public String getOperator()
-
valueOf2
public static ValueMatchOperator valueOf2(String type)
-
toString
public String toString()
- Overrides:
toStringin classEnum<ValueMatchOperator>
-
-