com.waveset.object
Class AttributeCondition.Operator

java.lang.Object
  extended bycom.waveset.object.AttributeCondition.Operator
Enclosing class:
AttributeCondition

public static class AttributeCondition.Operator
extends java.lang.Object

A static instance represents each operator supported by the AttributeCondition class.


Field Summary
static AttributeCondition.Operator CONTAINS
          Object has at least one value for the specified attribute that is a substring (ignoring case) of the operand.
static AttributeCondition.Operator CONTAINS_ALL
          Used only for conditions on pseudo-attributes supported by certain LighthouseContxt implementations (such as InternalSession).
static AttributeCondition.Operator ENDS_WITH
          Object has at least one value for the specified attribute that is a final substring (ignoring case) of the operand.
static AttributeCondition.Operator EQ
          Object has at least one value for the specified attribute that is lexically (ignoring case) equal to the operand.
static AttributeCondition.Operator EQUALS
           
static AttributeCondition.Operator GE
          Object has at least one value for the specified attribute that is lexically (ignoring case) greater than or equal to the specified operand.
static AttributeCondition.Operator GREATER_THAN
           
static AttributeCondition.Operator GT
          Object has at least one value for the specified attribute that is is lexically (ignoring case) greater than the operand.
static AttributeCondition.Operator IN
          Object has at least one value for the specified attribute that equals (ignoring case) one of those in the (list) operand.
static AttributeCondition.Operator IS_ONE_OF
           
static AttributeCondition.Operator IS_PRESENT
          Object has at least one value for the specified attribute.
static AttributeCondition.Operator LE
          Object has at least one value for the specified attribute that is lexically (ignoring case) less than or equal to the operand.
static AttributeCondition.Operator LESS_THAN
           
static AttributeCondition.Operator LT
          Object has at least one value for the specified attribute that is lexically (ignoring case) less than attribute value.
static AttributeCondition.Operator NE
          Object has no value for the specified attribute that is lexically equal (ignoring case) to the operand.
static AttributeCondition.Operator NEQ
           
static AttributeCondition.Operator NOT_EQUALS
           
static AttributeCondition.Operator NOT_PRESENT
          Object has no value for the specified attribute.
static AttributeCondition.Operator STARTS_WITH
          Object has at least one value for the specified attribute that is an initial substring (ignoring case) of the operand.
 
Method Summary
 boolean equals(java.lang.Object o)
           
static AttributeCondition.Operator findOperator(java.lang.String opName)
           
static AttributeCondition.Operator findOperatorByDisplayName(java.lang.String opName)
           
 java.lang.String getDisplayName()
           
 java.lang.String getDisplayNameKey()
           
 java.lang.String getName()
           
 java.lang.String getSymbol()
           
 boolean isNegative()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EQ

public static final AttributeCondition.Operator EQ
Object has at least one value for the specified attribute that is lexically (ignoring case) equal to the operand.


EQUALS

public static final AttributeCondition.Operator EQUALS

NE

public static final AttributeCondition.Operator NE
Object has no value for the specified attribute that is lexically equal (ignoring case) to the operand.


NOT_EQUALS

public static final AttributeCondition.Operator NOT_EQUALS

NEQ

public static final AttributeCondition.Operator NEQ

GT

public static final AttributeCondition.Operator GT
Object has at least one value for the specified attribute that is is lexically (ignoring case) greater than the operand.


GREATER_THAN

public static final AttributeCondition.Operator GREATER_THAN

GE

public static final AttributeCondition.Operator GE
Object has at least one value for the specified attribute that is lexically (ignoring case) greater than or equal to the specified operand.


LE

public static final AttributeCondition.Operator LE
Object has at least one value for the specified attribute that is lexically (ignoring case) less than or equal to the operand.


LT

public static final AttributeCondition.Operator LT
Object has at least one value for the specified attribute that is lexically (ignoring case) less than attribute value.


LESS_THAN

public static final AttributeCondition.Operator LESS_THAN

STARTS_WITH

public static final AttributeCondition.Operator STARTS_WITH
Object has at least one value for the specified attribute that is an initial substring (ignoring case) of the operand.


ENDS_WITH

public static final AttributeCondition.Operator ENDS_WITH
Object has at least one value for the specified attribute that is a final substring (ignoring case) of the operand.


CONTAINS

public static final AttributeCondition.Operator CONTAINS
Object has at least one value for the specified attribute that is a substring (ignoring case) of the operand.


IS_PRESENT

public static final AttributeCondition.Operator IS_PRESENT
Object has at least one value for the specified attribute.


NOT_PRESENT

public static final AttributeCondition.Operator NOT_PRESENT
Object has no value for the specified attribute.


IN

public static final AttributeCondition.Operator IN
Object has at least one value for the specified attribute that equals (ignoring case) one of those in the (list) operand.


IS_ONE_OF

public static final AttributeCondition.Operator IS_ONE_OF

CONTAINS_ALL

public static final AttributeCondition.Operator CONTAINS_ALL
Used only for conditions on pseudo-attributes supported by certain LighthouseContxt implementations (such as InternalSession). Similar to Java's List.containsAll, the condition is true if the object's attribute value includes all of the values specified in the operand. The operand values may be any object. // I tried to overload some of the other operators for this, // but they've all got consistency checkers that throw if // the operand isn't a string.

Method Detail

getName

public java.lang.String getName()

getDisplayName

public java.lang.String getDisplayName()

getDisplayNameKey

public java.lang.String getDisplayNameKey()

getSymbol

public java.lang.String getSymbol()

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object o)

isNegative

public boolean isNegative()

findOperator

public static AttributeCondition.Operator findOperator(java.lang.String opName)

findOperatorByDisplayName

public static AttributeCondition.Operator findOperatorByDisplayName(java.lang.String opName)