|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.swing.calculator.modelutils.CorpusUtils
public class CorpusUtils
Corpus utilities.
Constructor Summary | |
---|---|
protected |
CorpusUtils()
Don't allow instantiation but do allow overrides. |
Method Summary | |
---|---|
static Corpus[] |
getCorpora()
Get all available corpora as an array. |
static Corpus |
getCorpus(java.lang.String title)
Get a corpus by title. |
static Corpus |
getCorpusByTag(java.lang.String tag)
Get a corpus by tag. |
static WorkPart[] |
getWorkParts(Corpus corpus)
Get all available work parts in a corpus as an array. |
static Work[] |
getWorks(Corpus corpus)
Get all available works in a corpus as an array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CorpusUtils()
Method Detail |
---|
public static Corpus getCorpus(java.lang.String title)
title
- The title of the corpus to fetch.
public static Corpus getCorpusByTag(java.lang.String tag)
tag
- The tag of the corpus to fetch.
public static Corpus[] getCorpora()
public static Work[] getWorks(Corpus corpus)
corpus
- The corpus.
Returns null if corpus is null.
public static WorkPart[] getWorkParts(Corpus corpus)
corpus
- The corpus.
Returns null if corpus is null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |