|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.northwestern.at.monk.model.TaggedObject
edu.northwestern.at.monk.model.CoreObject
edu.northwestern.at.monk.model.WorkPart
edu.northwestern.at.monk.model.Work
public class Work
A work.
| Nested Class Summary | |
|---|---|
static class |
Work.Comparator
A multi-column work comparator. |
static class |
Work.SortOption
Work sorting options. |
| Method Summary | |
|---|---|
static java.util.Collection<Work> |
find(java.util.Collection criteria)
Finds works. |
static java.util.Collection<Work> |
find(SearchCriteria criteria)
Finds works. |
static java.util.Collection<Work> |
find(SearchCriterion... criteria)
Finds works. |
static Work |
get(java.lang.String tag)
Gets a work by tag. |
static java.util.Collection<Work> |
getAll()
Gets all the works. |
java.util.List<Author> |
getAuthors()
Gets the authors. |
java.lang.String |
getAvailability()
Gets the availability. |
java.lang.Integer |
getCirculationYear()
Gets the circulation year. |
Corpus |
getCorpus()
Gets the corpus. |
java.lang.String |
getGenre()
Gets the genre. |
int |
getNumAuthors()
Gets the number of authors. |
long |
getNumSentences()
Gets the number of sentences. |
long |
getNumSentencesMain()
Gets the number of sentences in main text. |
long |
getNumWordBigrams()
Gets the number of word bigrams. |
long |
getNumWordBigramsMain()
Gets the number of word bigrams in main text. |
long |
getNumWordPartBigrams()
Gets the number of word part bigrams. |
long |
getNumWordPartBigramsMain()
Gets the number of word part bigrams in main text. |
long |
getNumWordParts()
Gets the number of word parts. |
long |
getNumWordPartsMain()
Gets the number of word parts in main text. |
long |
getNumWordPartTrigrams()
Gets the number of word part trigrams. |
long |
getNumWordPartTrigramsMain()
Gets the number of word part trigrams in main text. |
long |
getNumWords()
Gets the number of words. |
long |
getNumWordsMain()
Gets the number of words in main text. |
long |
getNumWordTrigrams()
Gets the number of word trigrams. |
long |
getNumWordTrigramsMain()
Gets the number of word trigrams in main text. |
java.lang.String |
getSubgenre()
Gets the subgenre. |
SummaryCounts |
getSummaryCounts()
Gets the summary counts. |
java.lang.String |
getTeiHeader()
Gets the teiHeader for the work part. |
static Work[] |
sort(java.util.Collection<Work> works,
Work.SortOption... options)
Sorts a collection of works. |
static void |
sort(Work[] works,
Work.SortOption... options)
Sorts an array of works. |
| Methods inherited from class edu.northwestern.at.monk.model.TaggedObject |
|---|
getTag |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Work get(java.lang.String tag)
tag - Tag.
public static java.util.Collection<Work> getAll()
public static java.util.Collection<Work> find(SearchCriterion... criteria)
throws ModelException
criteria - Search criteria.
sort method.
ModelException -
public static java.util.Collection<Work> find(java.util.Collection criteria)
throws ModelException
criteria - Collection of search criteria.
Note: This parameter should be declared with the type
Collection<SearchCriterion>.
We have declared it with the type Collection to work
around what we think is a bug in Apple's Java compiler version
1.5.0_13. With that compiler, without this change, we get a
compile time error message that the reference to the find method
is ambiguous, both the find method here and the corresponding find
method in the WorkPart class match.
sort method.
ModelException -
public static java.util.Collection<Work> find(SearchCriteria criteria)
throws ModelException
criteria - Search criteria.
sort method.
ModelException -
public static void sort(Work[] works,
Work.SortOption... options)
works - Array of works.options - Sort options, or null to use the natural ordering.
public static Work[] sort(java.util.Collection<Work> works,
Work.SortOption... options)
works - Collection of works.options - Sort options, or null to use the natural ordering.
public Corpus getCorpus()
public java.lang.Integer getCirculationYear()
public java.lang.String getGenre()
public java.lang.String getSubgenre()
public java.lang.String getAvailability()
public int getNumAuthors()
public java.util.List<Author> getAuthors()
public SummaryCounts getSummaryCounts()
public long getNumWords()
public long getNumWordsMain()
public long getNumWordBigrams()
public long getNumWordBigramsMain()
public long getNumWordTrigrams()
public long getNumWordTrigramsMain()
public long getNumWordParts()
public long getNumWordPartsMain()
public long getNumWordPartBigrams()
public long getNumWordPartBigramsMain()
public long getNumWordPartTrigrams()
public long getNumWordPartTrigramsMain()
public long getNumSentences()
public long getNumSentencesMain()
public java.lang.String getTeiHeader()
throws ModelException
ModelException -
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||