sk.sav.ui.ikt.nlp.gazetteer.character
Enum CharacterGazetteer.Representation

java.lang.Object
  extended by java.lang.Enum<CharacterGazetteer.Representation>
      extended by sk.sav.ui.ikt.nlp.gazetteer.character.CharacterGazetteer.Representation
All Implemented Interfaces:
Serializable, Comparable<CharacterGazetteer.Representation>
Enclosing class:
CharacterGazetteer

public static enum CharacterGazetteer.Representation
extends Enum<CharacterGazetteer.Representation>

Gazetteer tree representations


Enum Constant Summary
CHILDSIBLING
          Child sibling representation of the gazetteer's tree structure.
HASHMAP
          Gazetteer's tree represented by hash maps.
 
Method Summary
static CharacterGazetteer.Representation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CharacterGazetteer.Representation[] 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

CHILDSIBLING

public static final CharacterGazetteer.Representation CHILDSIBLING
Child sibling representation of the gazetteer's tree structure. This representation is also known as a first child-next sibling binary tree. This representation consumes less memory than HASHMAP representation, but is slightly slower.


HASHMAP

public static final CharacterGazetteer.Representation HASHMAP
Gazetteer's tree represented by hash maps. This representation is faster than CHILDSIBLING representation, but consumes more memory.

Method Detail

values

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

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

valueOf

public static CharacterGazetteer.Representation 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