sfs2x.client.entities.match
Enum LogicOperator

java.lang.Object
  extended by java.lang.Enum<LogicOperator>
      extended by sfs2x.client.entities.match.LogicOperator
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LogicOperator>

public enum LogicOperator
extends java.lang.Enum<LogicOperator>

The LogicOperator class is used to concatenate two matching expressions using the AND or OR logical operator.

See Also:
MatchExpression

Enum Constant Summary
AND
          An instance of LogicOperator representing the AND logical operator.
OR
          An instance of LogicOperator representing the OR logical operator.
 
Method Summary
 java.lang.String getId()
          Returns the id of the current LogicOperator instance.
static LogicOperator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LogicOperator[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AND

public static final LogicOperator AND
An instance of LogicOperator representing the AND logical operator.


OR

public static final LogicOperator OR
An instance of LogicOperator representing the OR logical operator.

Method Detail

values

public static LogicOperator[] 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 (LogicOperator c : LogicOperator.values())
    System.out.println(c);

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

valueOf

public static LogicOperator valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getId

public java.lang.String getId()
Returns the id of the current LogicOperator instance. It can be the string "AND" or "OR".