org.apache.camel.language.simple.types
Enum BinaryOperatorType

java.lang.Object
  extended by java.lang.Enum<BinaryOperatorType>
      extended by 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
static class BinaryOperatorType.ParameterType
          Parameter types a binary operator supports on the right hand side.
 
Enum Constant Summary
CONTAINS
           
EQ
           
GT
           
GTE
           
IN
           
IS
           
LT
           
LTE
           
NOT_CONTAINS
           
NOT_EQ
           
NOT_IN
           
NOT_IS
           
NOT_RANGE
           
NOT_REGEX
           
RANGE
           
REGEX
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
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 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