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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BinaryOperatorType.ParameterType
Parameter types a binary operator supports on the right hand side.
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINS
CONTAINS_IGNORECASE
ENDS_WITH
EQ
EQ_IGNORE
GT
GTE
IN
IS
LT
LTE
NOT_CONTAINS
NOT_CONTAINS_IGNORECASE
NOT_EQ
NOT_EQ_IGNORE
NOT_IN
NOT_IS
NOT_RANGE
NOT_REGEX
RANGE
REGEX
STARTS_WITH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BinaryOperatorType
asOperator(String text)
static String
getOperatorText(BinaryOperatorType operator)
static BinaryOperatorType.ParameterType[]
supportedParameterTypes(BinaryOperatorType operator)
Returns the types of right hand side parameters this operator supports.String
toString()
static BinaryOperatorType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BinaryOperatorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQ
public static final BinaryOperatorType EQ
-
EQ_IGNORE
public static final BinaryOperatorType EQ_IGNORE
-
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
-
NOT_EQ_IGNORE
public static final BinaryOperatorType NOT_EQ_IGNORE
-
CONTAINS
public static final BinaryOperatorType CONTAINS
-
NOT_CONTAINS
public static final BinaryOperatorType NOT_CONTAINS
-
CONTAINS_IGNORECASE
public static final BinaryOperatorType CONTAINS_IGNORECASE
-
NOT_CONTAINS_IGNORECASE
public static final BinaryOperatorType NOT_CONTAINS_IGNORECASE
-
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
-
STARTS_WITH
public static final BinaryOperatorType STARTS_WITH
-
ENDS_WITH
public static final BinaryOperatorType ENDS_WITH
-
-
Method Detail
-
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 nameNullPointerException
- 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 classEnum<BinaryOperatorType>
-
-