edu.northwestern.at.wordhoard.swing
Class CachedCollections

java.lang.Object
  extended by edu.northwestern.at.wordhoard.swing.CachedCollections

public class CachedCollections
extends java.lang.Object

Cached collections.


Method Summary
static Author[] getAuthors()
          Gets the authors.
static Author[] getAuthors(Corpus corpus)
          Gets the authors for a corpus.
static Corpus[] getCorpora()
          Gets the corpora.
static LemmaCorpusCounts[] getLexicon(Corpus corpus)
          Gets the lexicon for a corpus.
static MajorWordClass[] getMajorWordClasses()
          Gets all the major word classes.
static MetricalShape[] getMetricalShapes()
          Gets the metrical shapes.
static Pos[] getPos()
          Gets the parts of speech.
static WordClass[] getWordClasses()
          Gets the word classes.
static Work[] getWorks()
          Gets the works.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCorpora

public static Corpus[] getCorpora()
                           throws PersistenceException
Gets the corpora.

In addition to loading and returning all the corpora, all the works, table of contents views, authors, and work child parts are preloaded.

Returns:
All the corpora, in increasing order by ordinal.
Throws:
PersistenceException

getAuthors

public static Author[] getAuthors()
                           throws PersistenceException
Gets the authors.

Returns:
All the authors, in increasing case-insensitive alphabetical order by name.
Throws:
PersistenceException

getAuthors

public static Author[] getAuthors(Corpus corpus)
                           throws PersistenceException
Gets the authors for a corpus.

Parameters:
corpus - Corpus.
Returns:
All the authors for the corpus, in increasing case-insensitive alphabetical order by name.
Throws:
PersistenceException

getPos

public static Pos[] getPos()
                    throws PersistenceException
Gets the parts of speech.

Returns:
All the parts of speech, in increasing case-insensitive alphabetical order by tag.
Throws:
PersistenceException

getWordClasses

public static WordClass[] getWordClasses()
                                  throws PersistenceException
Gets the word classes.

Returns:
All the word classes, in increasing case-insensitive order by tag.
Throws:
PersistenceException

getMajorWordClasses

public static MajorWordClass[] getMajorWordClasses()
                                            throws PersistenceException
Gets all the major word classes.

Returns:
All the major word classes, in increasing case-insensitive alphabetical order.
Throws:
PersistenceException

getMetricalShapes

public static MetricalShape[] getMetricalShapes()
                                         throws PersistenceException
Gets the metrical shapes.

Returns:
All the metrical shapes, in increasing case-insensitive alphabetical order.
Throws:
PersistenceException

getLexicon

public static LemmaCorpusCounts[] getLexicon(Corpus corpus)
                                      throws PersistenceException
Gets the lexicon for a corpus.

Parameters:
corpus - Corpus.
Returns:
The lexicon: an array of all the lemma/corpus counts objects for the corpus, in no particular order.
Throws:
PersistenceException

getWorks

public static Work[] getWorks()
                       throws PersistenceException
Gets the works.

Returns:
All the works.
Throws:
PersistenceException