com.jurismarches.vradi.services.search
Enum FilterList.Operator

java.lang.Object
  extended by java.lang.Enum<FilterList.Operator>
      extended by com.jurismarches.vradi.services.search.FilterList.Operator
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FilterList.Operator>
Enclosing class:
FilterList

public static enum FilterList.Operator
extends java.lang.Enum<FilterList.Operator>


Enum Constant Summary
FILTER_AND
          And.
FILTER_NOT
          Not.
FILTER_OR
          Or.
 
Method Summary
static FilterList.Operator getOperator(org.apache.lucene.search.BooleanClause booleanClause)
          Find operator corresponding to lucene BooleanClause definition.
 java.lang.String getValue()
          Return lucene operator String value used to recompose decomposed query.
static FilterList.Operator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FilterList.Operator[] 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

FILTER_AND

public static final FilterList.Operator FILTER_AND
And.


FILTER_OR

public static final FilterList.Operator FILTER_OR
Or.


FILTER_NOT

public static final FilterList.Operator FILTER_NOT
Not.

Method Detail

values

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

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

valueOf

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

getOperator

public static FilterList.Operator getOperator(org.apache.lucene.search.BooleanClause booleanClause)
Find operator corresponding to lucene BooleanClause definition.

Parameters:
booleanClause - boolean clause to inspect
Returns:
operator to use

getValue

public java.lang.String getValue()
Return lucene operator String value used to recompose decomposed query.

Returns:
lucene operator value


Copyright © 2009-2010 JurisMarches. All Rights Reserved.