org.apache.camel.language.simple
Enum SimpleLangaugeOperator

java.lang.Object
  extended by java.lang.Enum<SimpleLangaugeOperator>
      extended by org.apache.camel.language.simple.SimpleLangaugeOperator
All Implemented Interfaces:
Serializable, Comparable<SimpleLangaugeOperator>

public enum SimpleLangaugeOperator
extends Enum<SimpleLangaugeOperator>

Operators supported by simple language

The and and or operator is special as they are used as optional operator to combine two expressions. This allows you to build combiled expressions. Currently only one and/or operator is supported, but this might change in the future.
For example we can create this compound expression that has two groups that is combined with the and operator: ${in.header.action} == 'login' and ${in.header.password} != null


Enum Constant Summary
AND
           
CONTAINS
           
EQ
           
GT
           
GTE
           
IN
           
IS
           
LT
           
LTE
           
NOT
           
NOT_CONTAINS
           
NOT_IN
           
NOT_IS
           
NOT_RANGE
           
NOT_REGEX
           
OR
           
RANGE
           
REGEX
           
 
Method Summary
static SimpleLangaugeOperator asOperator(String text)
           
 String getOperatorText(SimpleLangaugeOperator operator)
           
 String toString()
           
static SimpleLangaugeOperator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SimpleLangaugeOperator[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EQ

public static final SimpleLangaugeOperator EQ

GT

public static final SimpleLangaugeOperator GT

GTE

public static final SimpleLangaugeOperator GTE

LT

public static final SimpleLangaugeOperator LT

LTE

public static final SimpleLangaugeOperator LTE

NOT

public static final SimpleLangaugeOperator NOT

CONTAINS

public static final SimpleLangaugeOperator CONTAINS

NOT_CONTAINS

public static final SimpleLangaugeOperator NOT_CONTAINS

REGEX

public static final SimpleLangaugeOperator REGEX

NOT_REGEX

public static final SimpleLangaugeOperator NOT_REGEX

IN

public static final SimpleLangaugeOperator IN

NOT_IN

public static final SimpleLangaugeOperator NOT_IN

IS

public static final SimpleLangaugeOperator IS

NOT_IS

public static final SimpleLangaugeOperator NOT_IS

RANGE

public static final SimpleLangaugeOperator RANGE

NOT_RANGE

public static final SimpleLangaugeOperator NOT_RANGE

AND

public static final SimpleLangaugeOperator AND

OR

public static final SimpleLangaugeOperator OR
Method Detail

values

public static final SimpleLangaugeOperator[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SimpleLangaugeOperator c : SimpleLangaugeOperator.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static SimpleLangaugeOperator 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

asOperator

public static SimpleLangaugeOperator asOperator(String text)

getOperatorText

public String getOperatorText(SimpleLangaugeOperator operator)

toString

public String toString()
Overrides:
toString in class Enum<SimpleLangaugeOperator>


Apache CAMEL