com.sun.labs.minion.query
Enum Term.Modifier

java.lang.Object
  extended by java.lang.Enum<Term.Modifier>
      extended by com.sun.labs.minion.query.Term.Modifier
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Term.Modifier>
Enclosing class:
Term

public static enum Term.Modifier
extends java.lang.Enum<Term.Modifier>

The modifiers that affect which terms will be pulled from the index for the given query term.


Enum Constant Summary
CASE
          Indicates that only terms with the exact case provided should be returned.
EXPAND
          Indicates that semantic or other term variations may be returned.
MORPH
          Indicates that terms that are morphological variations may be returned.
STEM
          Indicates that stem matches may be returned.
WILDCARD
          Indicates that wildcard matches may be returned.
 
Method Summary
static Term.Modifier valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Term.Modifier[] 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

CASE

public static final Term.Modifier CASE
Indicates that only terms with the exact case provided should be returned.


MORPH

public static final Term.Modifier MORPH
Indicates that terms that are morphological variations may be returned.


EXPAND

public static final Term.Modifier EXPAND
Indicates that semantic or other term variations may be returned.


STEM

public static final Term.Modifier STEM
Indicates that stem matches may be returned.


WILDCARD

public static final Term.Modifier WILDCARD
Indicates that wildcard matches may be returned.

Method Detail

values

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

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

valueOf

public static Term.Modifier 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