edu.northwestern.at.monk.model
Enum Corpus.SortOption

java.lang.Object
  extended by java.lang.Enum<Corpus.SortOption>
      extended by edu.northwestern.at.monk.model.Corpus.SortOption
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Corpus.SortOption>
Enclosing class:
Corpus

public static enum Corpus.SortOption
extends java.lang.Enum<Corpus.SortOption>

Corpus sorting options.


Enum Constant Summary
NATURAL
          The natural sorting order - by stripped title ascending.
NUM_AUTHORS_ASCENDING
          Number of authors ascending.
NUM_AUTHORS_DESCENDING
          Number of authors descending.
NUM_SENTENCES_ASCENDING
          Number of sentences ascending.
NUM_SENTENCES_DESCENDING
          Number of sentences descending.
NUM_SENTENCES_MAIN_ASCENDING
          Number of sentences in main text (non-paratext) ascending.
NUM_SENTENCES_MAIN_DESCENDING
          Number of sentences in main text (non-paratext) descending.
NUM_WORD_PARTS_ASCENDING
          Number of word parts ascending.
NUM_WORD_PARTS_DESCENDING
          Number of word parts descending.
NUM_WORD_PARTS_MAIN_ASCENDING
          Number of word parts in main text (non-paratext) ascending.
NUM_WORD_PARTS_MAIN_DESCENDING
          Number of word parts in main text (non-paratext) descending.
NUM_WORDS_ASCENDING
          Number of words ascending.
NUM_WORDS_DESCENDING
          Number of words descending.
NUM_WORDS_MAIN_ASCENDING
          Number of words in main text (non-paratext) ascending.
NUM_WORDS_MAIN_DESCENDING
          Number of words in main text (non-paratext) descending.
NUM_WORKS_ASCENDING
          Number of works ascending.
NUM_WORKS_DESCENDING
          Number of works descending.
TAG_ASCENDING
          Tag ascending.
TAG_DESCENDING
          Tag descending.
TITLE_ASCENDING
          Stripped title ascending.
TITLE_DESCENDING
          Stripped title descending.
 
Method Summary
static Corpus.SortOption valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Corpus.SortOption[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NATURAL

public static final Corpus.SortOption NATURAL
The natural sorting order - by stripped title ascending.


TAG_ASCENDING

public static final Corpus.SortOption TAG_ASCENDING
Tag ascending.


TAG_DESCENDING

public static final Corpus.SortOption TAG_DESCENDING
Tag descending.


TITLE_ASCENDING

public static final Corpus.SortOption TITLE_ASCENDING
Stripped title ascending.


TITLE_DESCENDING

public static final Corpus.SortOption TITLE_DESCENDING
Stripped title descending.


NUM_WORKS_ASCENDING

public static final Corpus.SortOption NUM_WORKS_ASCENDING
Number of works ascending.


NUM_WORKS_DESCENDING

public static final Corpus.SortOption NUM_WORKS_DESCENDING
Number of works descending.


NUM_AUTHORS_ASCENDING

public static final Corpus.SortOption NUM_AUTHORS_ASCENDING
Number of authors ascending.


NUM_AUTHORS_DESCENDING

public static final Corpus.SortOption NUM_AUTHORS_DESCENDING
Number of authors descending.


NUM_WORDS_ASCENDING

public static final Corpus.SortOption NUM_WORDS_ASCENDING
Number of words ascending.


NUM_WORDS_DESCENDING

public static final Corpus.SortOption NUM_WORDS_DESCENDING
Number of words descending.


NUM_WORD_PARTS_ASCENDING

public static final Corpus.SortOption NUM_WORD_PARTS_ASCENDING
Number of word parts ascending.


NUM_WORD_PARTS_DESCENDING

public static final Corpus.SortOption NUM_WORD_PARTS_DESCENDING
Number of word parts descending.


NUM_SENTENCES_ASCENDING

public static final Corpus.SortOption NUM_SENTENCES_ASCENDING
Number of sentences ascending.


NUM_SENTENCES_DESCENDING

public static final Corpus.SortOption NUM_SENTENCES_DESCENDING
Number of sentences descending.


NUM_WORDS_MAIN_ASCENDING

public static final Corpus.SortOption NUM_WORDS_MAIN_ASCENDING
Number of words in main text (non-paratext) ascending.


NUM_WORDS_MAIN_DESCENDING

public static final Corpus.SortOption NUM_WORDS_MAIN_DESCENDING
Number of words in main text (non-paratext) descending.


NUM_WORD_PARTS_MAIN_ASCENDING

public static final Corpus.SortOption NUM_WORD_PARTS_MAIN_ASCENDING
Number of word parts in main text (non-paratext) ascending.


NUM_WORD_PARTS_MAIN_DESCENDING

public static final Corpus.SortOption NUM_WORD_PARTS_MAIN_DESCENDING
Number of word parts in main text (non-paratext) descending.


NUM_SENTENCES_MAIN_ASCENDING

public static final Corpus.SortOption NUM_SENTENCES_MAIN_ASCENDING
Number of sentences in main text (non-paratext) ascending.


NUM_SENTENCES_MAIN_DESCENDING

public static final Corpus.SortOption NUM_SENTENCES_MAIN_DESCENDING
Number of sentences in main text (non-paratext) descending.

Method Detail

values

public static final Corpus.SortOption[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Corpus.SortOption c : Corpus.SortOption.values())
        System.out.println(c);

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

valueOf

public static Corpus.SortOption 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