|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.model.morphology.Lemma
public class Lemma
A lemma.
A lemma is a "head word". Each lemma has the following attributes:
word class
of the lemma.
Constructor Summary | |
---|---|
Lemma()
Creates a new lemma. |
Method Summary | |
---|---|
void |
appendDescription(TextLine line,
FontInfo romanFontInfo,
FontInfo[] fontInfo)
Appends a description to a text line. |
boolean |
equals(java.lang.Object obj)
Returns true if some other object is equal to this one. |
void |
export(TableExporterImporter exporterImporter)
Exports the object to a MySQL table exporter/importer. |
void |
getGroupingObjects(java.lang.Class groupBy,
java.util.List list)
Gets grouping objects. |
Spelling |
getGroupingSpelling(int numHits)
Gets the spelling of the grouping object. |
int |
getHomonym()
Gets the homonym. |
java.lang.Long |
getId()
Gets the unique id. |
java.lang.Class |
getJoinClass()
Gets the join class. |
java.lang.String |
getReportPhrase()
Gets the report phrase. |
SearchCriterion |
getSearchDefault(java.lang.Class cls)
Gets a search criterion default value. |
Spelling |
getSpelling()
Gets the spelling. |
Spelling |
getTag()
Gets the tag. |
Spelling |
getTagInsensitive()
Gets the insensitive tag. |
java.lang.String |
getWhereClause()
Gets the Hibernate where clause. |
WordClass |
getWordClass()
Gets the word class. |
int |
hashCode()
Returns a hash code for the object. |
void |
setArg(org.hibernate.Query q,
org.hibernate.Session session)
Sets the Hibernate query argument. |
void |
setHomonym(int homonym)
Sets the homonym. |
void |
setId(java.lang.Long id)
Sets the unique id. |
void |
setSpelling(Spelling spelling)
Sets the spelling. |
void |
setTag(Spelling tag)
Sets the tag. |
void |
setTagInsensitive(Spelling tagInsensitive)
Sets the insensitive tag. |
void |
setWordClass(WordClass wordClass)
Sets the word class. |
java.lang.String |
toString()
Gets a string representation of the lemma. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Lemma()
Method Detail |
---|
public java.lang.Long getId()
getId
in interface PersistentObject
public void setId(java.lang.Long id)
id
- The unique id. public Spelling getTag()
public void setTag(Spelling tag)
tag
- The tag. public Spelling getTagInsensitive()
public void setTagInsensitive(Spelling tagInsensitive)
tagInsensitive
- The insensitive tag. public Spelling getSpelling()
public void setSpelling(Spelling spelling)
spelling
- The spelling of the lemma. public int getHomonym()
public void setHomonym(int homonym)
homonym
- The homonym. public WordClass getWordClass()
public void setWordClass(WordClass wordClass)
wordClass
- Word class. public SearchCriterion getSearchDefault(java.lang.Class cls)
getSearchDefault
in interface SearchDefaults
cls
- Model class of search criterion.
public java.lang.String getReportPhrase()
getReportPhrase
in interface GroupingObject
public Spelling getGroupingSpelling(int numHits)
getGroupingSpelling
in interface GroupingObject
numHits
- Number of hits.
public java.lang.Class getJoinClass()
getJoinClass
in interface SearchCriterion
public java.lang.String getWhereClause()
getWhereClause
in interface SearchCriterion
public void setArg(org.hibernate.Query q, org.hibernate.Session session)
setArg
in interface SearchCriterion
q
- Hibernate query.session
- Hibernate session. public void appendDescription(TextLine line, FontInfo romanFontInfo, FontInfo[] fontInfo)
appendDescription
in interface SearchCriterion
line
- Text line.romanFontInfo
- Roman font info.fontInfo
- Array of font info indexed by character
set. public void getGroupingObjects(java.lang.Class groupBy, java.util.List list)
groupBy
- Grouping class.list
- A list. The grouping objects are appended
to this list. public java.lang.String toString()
toString
in class java.lang.Object
public void export(TableExporterImporter exporterImporter)
exporterImporter
- MySQL table exporter/importer. public boolean equals(java.lang.Object obj)
The two lemmas are equal if their tags are equal.
equals
in interface GroupingObject
equals
in class java.lang.Object
obj
- The other object.
public int hashCode()
hashCode
in interface GroupingObject
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |