|
||||||||
| 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.Lemma
public class Lemma
A lemma.
| Nested Class Summary | |
|---|---|
static class |
Lemma.Comparator
A multi-column lemma comparator. |
static class |
Lemma.SortOption
Lemma sorting options. |
| Method Summary | |
|---|---|
int |
compareTo(Lemma other)
Compares this instance with another. |
static java.util.Collection<Lemma> |
find(java.util.Collection<SearchCriterion> criteria)
Finds lemmas. |
static java.util.Collection<Lemma> |
find(SearchCriteria criteria)
Finds lemmas. |
static java.util.Collection<Lemma> |
find(SearchCriterion... criteria)
Finds lemmas. |
static Lemma |
get(java.lang.String tag)
Gets a lemma by tag. |
static java.util.Collection<Lemma> |
getAll()
Gets all the lemmas. |
java.lang.String |
getHeadWord()
Gets the headword. |
int |
getHomonym()
Gets the homonym number. |
WordClass |
getWordClass()
Gets the word class. |
static Lemma[] |
sort(java.util.Collection<Lemma> collection,
Lemma.SortOption... options)
Sorts a collection of lemmas. |
static void |
sort(Lemma[] array,
Lemma.SortOption... options)
Sorts an array of lemmas. |
| 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 Lemma get(java.lang.String tag)
tag - Tag.
public static java.util.Collection<Lemma> getAll()
public static java.util.Collection<Lemma> find(SearchCriterion... criteria)
throws ModelException
criteria - Search criteria.
sort method.
ModelException -
public static java.util.Collection<Lemma> find(java.util.Collection<SearchCriterion> criteria)
throws ModelException
criteria - Collection of search criteria.
sort method.
ModelException -
public static java.util.Collection<Lemma> find(SearchCriteria criteria)
throws ModelException
criteria - Search criteria.
sort method.
ModelException -
public static void sort(Lemma[] array,
Lemma.SortOption... options)
array - Array of lemmas.options - Sort options, or null to use the natural ordering.
public static Lemma[] sort(java.util.Collection<Lemma> collection,
Lemma.SortOption... options)
collection - Collection of lemmas.options - Sort options, or null to use the natural ordering.
public java.lang.String getHeadWord()
public int getHomonym()
public WordClass getWordClass()
public int compareTo(Lemma other)
Lemmas are ordered in case and diacritical-insensitve increasing alphabetical order by tag.
compareTo in interface java.lang.Comparable<Lemma>other - The other instance to be compared.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||