org.nuiton.wikitty.search
Enum SearchOperand

java.lang.Object
  extended by java.lang.Enum<SearchOperand>
      extended by org.nuiton.wikitty.search.SearchOperand
All Implemented Interfaces:
Serializable, Comparable<SearchOperand>

public enum SearchOperand
extends Enum<SearchOperand>

Represents the possible operands for client search. The supported type of each AttributeSearchDto depends of its type.


Enum Constant Summary
BEGINS_WITH
           
BETWEEN
           
CONTAINS
           
ENDS_WITH
           
EQUALS
           
GREATER
           
GREATER_OR_EQUALS
           
LESS
           
LESS_OR_EQUALS
           
NOT_CONTAINS
           
NOT_EQUALS
           
 
Method Summary
static SearchOperand valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SearchOperand[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EQUALS

public static final SearchOperand EQUALS

NOT_EQUALS

public static final SearchOperand NOT_EQUALS

LESS

public static final SearchOperand LESS

LESS_OR_EQUALS

public static final SearchOperand LESS_OR_EQUALS

GREATER

public static final SearchOperand GREATER

GREATER_OR_EQUALS

public static final SearchOperand GREATER_OR_EQUALS

BEGINS_WITH

public static final SearchOperand BEGINS_WITH

ENDS_WITH

public static final SearchOperand ENDS_WITH

CONTAINS

public static final SearchOperand CONTAINS

NOT_CONTAINS

public static final SearchOperand NOT_CONTAINS

BETWEEN

public static final SearchOperand BETWEEN
Method Detail

values

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

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

valueOf

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


Copyright © 2009-2010 CodeLutin. All Rights Reserved.