org.springmodules.validation.valang.predicates
Enum Operator

java.lang.Object
  extended by java.lang.Enum<Operator>
      extended by org.springmodules.validation.valang.predicates.Operator
All Implemented Interfaces:
Serializable, Comparable<Operator>

public enum Operator
extends Enum<Operator>

Enumeration of different operator types.

Author:
Steven Devijver, David Winterfeldt

Enum Constant Summary
BETWEEN
           
EQUAL
           
GREATER_THAN
           
GREATER_THAN_OR_EQUAL
           
HAS_LENGTH
           
HAS_NO_LENGTH
           
HAS_NO_TEXT
           
HAS_TEXT
           
IN
           
IS_BLANK
           
IS_LOWERCASE
           
IS_NOT_BLANK
           
IS_NOT_LOWERCASE
           
IS_NOT_UPPERCASE
           
IS_NOT_WORD
           
IS_UPPERCASE
           
IS_WORD
           
LESS_THAN
           
LESS_THAN_OR_EQUAL
           
NOT_BETWEEN
           
NOT_EQUAL
           
NOT_IN
           
NOT_NULL
           
NULL
           
 
Method Summary
static Operator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Operator[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EQUAL

public static final Operator EQUAL

NOT_EQUAL

public static final Operator NOT_EQUAL

LESS_THAN

public static final Operator LESS_THAN

LESS_THAN_OR_EQUAL

public static final Operator LESS_THAN_OR_EQUAL

GREATER_THAN

public static final Operator GREATER_THAN

GREATER_THAN_OR_EQUAL

public static final Operator GREATER_THAN_OR_EQUAL

IN

public static final Operator IN

NOT_IN

public static final Operator NOT_IN

BETWEEN

public static final Operator BETWEEN

NOT_BETWEEN

public static final Operator NOT_BETWEEN

NULL

public static final Operator NULL

NOT_NULL

public static final Operator NOT_NULL

HAS_TEXT

public static final Operator HAS_TEXT

HAS_NO_TEXT

public static final Operator HAS_NO_TEXT

HAS_LENGTH

public static final Operator HAS_LENGTH

HAS_NO_LENGTH

public static final Operator HAS_NO_LENGTH

IS_BLANK

public static final Operator IS_BLANK

IS_NOT_BLANK

public static final Operator IS_NOT_BLANK

IS_WORD

public static final Operator IS_WORD

IS_NOT_WORD

public static final Operator IS_NOT_WORD

IS_UPPERCASE

public static final Operator IS_UPPERCASE

IS_NOT_UPPERCASE

public static final Operator IS_NOT_UPPERCASE

IS_LOWERCASE

public static final Operator IS_LOWERCASE

IS_NOT_LOWERCASE

public static final Operator IS_NOT_LOWERCASE
Method Detail

values

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

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

valueOf

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


Copyright © 2009. All Rights Reserved.