Enum LexStatus

java.lang.Object
  extended by java.lang.Enum<LexStatus>
      extended by LexStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LexStatus>

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

Enum values for querying a lexicon and determining if a string is a word, is a prefix of a word, or is not a word (and not a prefix of a word).

If PREFIX is returned, then the string is not a word, but is the prefix of at least one word in the lexicon.

If WORD is returned, then the string is a word in the dictionary (it could be a prefix too, e.g., MOM is a word, but is a prefix of MOMENT).

If NOT_WORD is returned, the string is not a word, and it's not the prefix of any word in the lexicon.


Enum Constant Summary
NOT_WORD
           
PREFIX
           
WORD
           
 
Method Summary
static LexStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LexStatus[] 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

WORD

public static final LexStatus WORD

PREFIX

public static final LexStatus PREFIX

NOT_WORD

public static final LexStatus NOT_WORD
Method Detail

values

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

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

valueOf

public static LexStatus 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