org.apache.camel.language.simple.types
Enum BinaryOperatorType
java.lang.Object
java.lang.Enum<BinaryOperatorType>
org.apache.camel.language.simple.types.BinaryOperatorType
- All Implemented Interfaces:
- Serializable, Comparable<BinaryOperatorType>
public enum BinaryOperatorType
- extends Enum<BinaryOperatorType>
Types of binary operators supported
EQ
public static final BinaryOperatorType EQ
GT
public static final BinaryOperatorType GT
GTE
public static final BinaryOperatorType GTE
LT
public static final BinaryOperatorType LT
LTE
public static final BinaryOperatorType LTE
NOT_EQ
public static final BinaryOperatorType NOT_EQ
CONTAINS
public static final BinaryOperatorType CONTAINS
NOT_CONTAINS
public static final BinaryOperatorType NOT_CONTAINS
REGEX
public static final BinaryOperatorType REGEX
NOT_REGEX
public static final BinaryOperatorType NOT_REGEX
IN
public static final BinaryOperatorType IN
NOT_IN
public static final BinaryOperatorType NOT_IN
IS
public static final BinaryOperatorType IS
NOT_IS
public static final BinaryOperatorType NOT_IS
RANGE
public static final BinaryOperatorType RANGE
NOT_RANGE
public static final BinaryOperatorType NOT_RANGE
values
public static BinaryOperatorType[] 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 (BinaryOperatorType c : BinaryOperatorType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static BinaryOperatorType 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 name
NullPointerException
- if the argument is null
asOperator
public static BinaryOperatorType asOperator(String text)
getOperatorText
public static String getOperatorText(BinaryOperatorType operator)
supportedParameterTypes
public static BinaryOperatorType.ParameterType[] supportedParameterTypes(BinaryOperatorType operator)
- Returns the types of right hand side parameters this operator supports.
- Parameters:
operator
- the operator
- Returns:
- null if accepting all types, otherwise the array of accepted types
toString
public String toString()
- Overrides:
toString
in class Enum<BinaryOperatorType>
Apache CAMEL