org.nuiton.wikitty.search
Enum RestrictionName
java.lang.Object
java.lang.Enum<RestrictionName>
org.nuiton.wikitty.search.RestrictionName
- All Implemented Interfaces:
- Serializable, Comparable<RestrictionName>
public enum RestrictionName
- extends Enum<RestrictionName>
This enum contains all kind of restriction used to request content. It's used
by parser to create lucene request from RestrictionDto.
|
Method Summary |
static RestrictionName |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RestrictionName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
EQUALS
public static final RestrictionName EQUALS
LIKE
public static final RestrictionName LIKE
UNLIKE
public static final RestrictionName UNLIKE
NOT_EQUALS
public static final RestrictionName NOT_EQUALS
LESS
public static final RestrictionName LESS
LESS_OR_EQUAL
public static final RestrictionName LESS_OR_EQUAL
GREATER
public static final RestrictionName GREATER
GREATER_OR_EQUAL
public static final RestrictionName GREATER_OR_EQUAL
CONTAINS
public static final RestrictionName CONTAINS
STARTS_WITH
public static final RestrictionName STARTS_WITH
ENDS_WITH
public static final RestrictionName ENDS_WITH
NOT
public static final RestrictionName NOT
AND
public static final RestrictionName AND
OR
public static final RestrictionName OR
BETWEEN
public static final RestrictionName BETWEEN
TRUE
public static final RestrictionName TRUE
FALSE
public static final RestrictionName FALSE
ASSOCIATED
public static final RestrictionName ASSOCIATED
IN
public static final RestrictionName IN
KEYWORD
public static final RestrictionName KEYWORD
IS_NULL
public static final RestrictionName IS_NULL
IS_NOT_NULL
public static final RestrictionName IS_NOT_NULL
values
public static RestrictionName[] 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 (RestrictionName c : RestrictionName.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static RestrictionName 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.