Enum SearchOperation
- java.lang.Object
-
- java.lang.Enum<SearchOperation>
-
- de.knightsoftnet.gwtp.spring.shared.search.SearchOperation
-
- All Implemented Interfaces:
Serializable,Comparable<SearchOperation>
public enum SearchOperation extends Enum<SearchOperation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINSENDS_WITHEQUALITYGREATER_OR_EQUAL_THENGREATER_THENLESS_OR_EQUAL_THENLESS_THENLIKENEGATIONSTARTS_WITH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetAllOperationsAsRegExString()chargetSimpleOperation()static SearchOperationgetSimpleOperation(char pinput)get simple search operation from representing character.static SearchOperationvalueOf(String name)Returns the enum constant of this type with the specified name.static SearchOperation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUALITY
public static final SearchOperation EQUALITY
-
NEGATION
public static final SearchOperation NEGATION
-
GREATER_THEN
public static final SearchOperation GREATER_THEN
-
GREATER_OR_EQUAL_THEN
public static final SearchOperation GREATER_OR_EQUAL_THEN
-
LESS_THEN
public static final SearchOperation LESS_THEN
-
LESS_OR_EQUAL_THEN
public static final SearchOperation LESS_OR_EQUAL_THEN
-
LIKE
public static final SearchOperation LIKE
-
STARTS_WITH
public static final SearchOperation STARTS_WITH
-
ENDS_WITH
public static final SearchOperation ENDS_WITH
-
CONTAINS
public static final SearchOperation CONTAINS
-
-
Method Detail
-
values
public static SearchOperation[] 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 (SearchOperation c : SearchOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SearchOperation 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 nameNullPointerException- if the argument is null
-
getSimpleOperation
public char getSimpleOperation()
-
getSimpleOperation
public static SearchOperation getSimpleOperation(char pinput)
get simple search operation from representing character.- Parameters:
pinput- character- Returns:
- SearchOperation enum or null if non matches
-
getAllOperationsAsRegExString
public static String getAllOperationsAsRegExString()
-
-