org.nuiton.wikitty.search
Enum RestrictionName

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

public enum RestrictionName
extends java.lang.Enum<RestrictionName>

This enum contains all kind of restriction used to request content. It's used by parser to create lucene request from RestrictionDto.


Enum Constant Summary
AND
           
ASSOCIATED
           
BETWEEN
           
CONTAINS
           
ENDS_WITH
           
EQUALS
           
FALSE
           
GREATER
           
GREATER_OR_EQUAL
           
IN
           
IS_NOT_NULL
           
IS_NULL
           
KEYWORD
           
LESS
           
LESS_OR_EQUAL
           
LIKE
           
NOT
           
NOT_EQUALS
           
OR
           
STARTS_WITH
           
TRUE
           
UNLIKE
           
 
Method Summary
static RestrictionName valueOf(java.lang.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.
 
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 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
Method Detail

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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2009-2010 CodeLutin. All Rights Reserved.