|
||||||||
| 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.Word
public class Word
A word.
| Nested Class Summary | |
|---|---|
static class |
Word.Comparator
A multi-column word comparator. |
static class |
Word.SortOption
Word sorting options. |
| Method Summary | |
|---|---|
int |
compareTo(Word other)
Compares this instance with another. |
boolean |
equals(java.lang.Object obj)
Returns true if this object equals some other object. |
static java.util.Collection<Word> |
find(java.util.Collection<SearchCriterion> criteria)
Finds words. |
static java.util.Collection<Word> |
find(SearchCriteria criteria)
Finds words. |
static java.util.Collection<Word> |
find(SearchCriterion... criteria)
Finds words. |
static java.lang.String |
formatAsString(Word... words)
Formats a sequence of words as a string. |
static Word |
get(java.lang.String tag)
Gets a word by tag. |
long |
getColOrdinal()
Gets the collocation ordinal. |
java.lang.String |
getContext()
Gets the context. |
Corpus |
getCorpus()
Gets the corpus. |
boolean |
getEndOfSentence()
Returns true if the word is at the end of a sentence. |
Lemma |
getFirstLemma()
Gets the first lemma. |
Pos |
getFirstPos()
Gets the first part of speech. |
boolean |
getLineBreak()
Returns true if a line break follows this word. |
int |
getNumWordParts()
Gets the number of word parts. |
boolean |
getParatext()
Returns true if the word is paratext, false if it normal text. |
boolean |
getParBreak()
Returns true if a paragraph break follows this word. |
java.lang.String |
getPuncAfter()
Gets the punctuation after. |
java.lang.String |
getPuncBefore()
Gets the punctuation before. |
long |
getSentenceInWorkOrdinal()
Gets the sentence in work ordinal. |
Spelling |
getSpelling()
Gets the spelling. |
java.lang.String |
getStandardSpelling()
Gets the standard spelling. |
java.lang.String |
getToken()
Gets the token. |
boolean |
getVerse()
Returns true if the word is verse, false if it prose. |
long |
getWordInSentenceOrdinal()
Gets the word in sentence ordinal. |
WordPart[] |
getWordParts()
Gets the word parts. |
Work |
getWork()
Gets the work. |
long |
getWorkOrdinal()
Gets the work ordinal. |
WorkPart |
getWorkPart()
Gets the work part. |
int |
hashCode()
Returns a hash code for this object. |
static Word[] |
sort(java.util.Collection<Word> collection,
Word.SortOption... options)
Sorts a collection of words. |
static void |
sort(Word[] array,
Word.SortOption... options)
Sorts an array of words. |
| Methods inherited from class edu.northwestern.at.monk.model.TaggedObject |
|---|
getTag |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.Collection<Word> find(SearchCriterion... criteria)
throws ModelException
criteria - Search criteria.
sort method.
ModelException -
public static java.util.Collection<Word> find(java.util.Collection<SearchCriterion> criteria)
throws ModelException
criteria - Collection of search criteria.
sort method.
ModelException -
public static java.util.Collection<Word> find(SearchCriteria criteria)
throws ModelException
criteria - Search criteria.
sort method.
ModelException -
public static Word get(java.lang.String tag)
throws ModelException
tag - Tag.
ModelException -
public static void sort(Word[] array,
Word.SortOption... options)
array - Array of words.options - Sort options, or null to use the natural ordering.
public static Word[] sort(java.util.Collection<Word> collection,
Word.SortOption... options)
collection - Collection of words.options - Sort options, or null to use the natural ordering.
public Corpus getCorpus()
public Work getWork()
public WorkPart getWorkPart()
public WordPart[] getWordParts()
public Lemma getFirstLemma()
public Pos getFirstPos()
public Spelling getSpelling()
public java.lang.String getStandardSpelling()
public java.lang.String getContext()
public boolean getVerse()
public boolean getParatext()
public java.lang.String getPuncBefore()
public java.lang.String getToken()
public java.lang.String getPuncAfter()
public boolean getLineBreak()
public boolean getParBreak()
public int getNumWordParts()
public long getWorkOrdinal()
public long getColOrdinal()
public boolean getEndOfSentence()
public long getSentenceInWorkOrdinal()
public long getWordInSentenceOrdinal()
public static java.lang.String formatAsString(Word... words)
words - Sequence of contiguous words.
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Other object.
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(Word other)
Words are ordered first by corpus, then by work, then by work ordinal.
compareTo in interface java.lang.Comparable<Word>other - The other instance to be compared.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||