|
|||||||||
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.Pos
public class Pos
A part of speech.
Parts of speech have the following attributes:
word class
of the part of speech. This attribute is optional - it may
be null.
Field Summary | |
---|---|
static byte |
ENGLISH
English part of speech taxonomy. |
static byte |
GREEK
Greek part of speech taxonomy. |
Constructor Summary | |
---|---|
Pos()
Creates a new part of speech. |
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. |
java.lang.String |
getDegree()
Gets the degree. |
java.lang.String |
getDescription()
Gets the description. |
java.lang.String |
getGender()
Gets the gender. |
Spelling |
getGroupingSpelling(int numHits)
Gets the spelling of the grouping object. |
java.lang.Long |
getId()
Gets the unique id. |
java.lang.Class |
getJoinClass()
Gets the join class. |
java.lang.String |
getLanguage()
Gets the language. |
java.lang.String |
getMood()
Gets the mood. |
java.lang.String |
getNegative()
Gets the negative attribute. |
java.lang.String |
getNumber()
Gets the number. |
java.lang.String |
getPerson()
Gets the person. |
java.lang.String |
getReportPhrase()
Gets the report phrase. |
SearchCriterion |
getSearchDefault(java.lang.Class cls)
Gets a search criterion default value. |
java.lang.String |
getSyntax()
Gets the syntax. |
java.lang.String |
getTag()
Gets the tag. |
java.lang.String |
getTagWithDescription()
Gets the tag with the description (if available). |
java.lang.String |
getTense()
Gets the tense. |
java.lang.String |
getVoice()
Gets the voice. |
java.lang.String |
getWhereClause()
Gets the Hibernate where clause. |
WordClass |
getWordClass()
Gets the word class. |
java.lang.String |
getXcase()
Gets the case. |
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 |
setCase(java.lang.String xcase)
Sets the case. |
void |
setDegree(java.lang.String degree)
Sets the degree. |
void |
setDescription(java.lang.String description)
Sets the description. |
void |
setGender(java.lang.String gender)
Sets the gender. |
void |
setLanguage(java.lang.String language)
Sets the language. |
void |
setMood(java.lang.String mood)
Sets the mood. |
void |
setNegative(java.lang.String negative)
Sets the negative attribute. |
void |
setNumber(java.lang.String number)
Sets the number. |
void |
setPerson(java.lang.String person)
Sets the person. |
void |
setSyntax(java.lang.String syntax)
Sets the syntax. |
void |
setTag(java.lang.String tag)
Sets the tag. |
void |
setTense(java.lang.String tense)
Sets the tense. |
void |
setVoice(java.lang.String voice)
Sets the voice. |
void |
setWordClass(WordClass wordClass)
Sets the word class. |
java.lang.String |
toString()
Gets a string representation of the part of speech. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte ENGLISH
public static final byte GREEK
Constructor Detail |
---|
public Pos()
Method Detail |
---|
public java.lang.Long getId()
getId
in interface PersistentObject
public java.lang.String getTag()
public void setTag(java.lang.String tag)
tag
- The tag. public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- Description. public WordClass getWordClass()
public void setWordClass(WordClass wordClass)
wordClass
- Word class. public java.lang.String getSyntax()
public void setSyntax(java.lang.String syntax)
syntax
- Syntax. public java.lang.String getTense()
public void setTense(java.lang.String tense)
tense
- The tense. public java.lang.String getMood()
public void setMood(java.lang.String mood)
mood
- The mood. public java.lang.String getVoice()
public void setVoice(java.lang.String voice)
voice
- The voice. public java.lang.String getXcase()
public void setCase(java.lang.String xcase)
xcase
- The case. public java.lang.String getGender()
public void setGender(java.lang.String gender)
gender
- The gender. public java.lang.String getPerson()
public void setPerson(java.lang.String person)
person
- The person. public java.lang.String getNumber()
public void setNumber(java.lang.String number)
number
- The number. public java.lang.String getDegree()
public void setDegree(java.lang.String degree)
degree
- The degree. public java.lang.String getNegative()
public void setNegative(java.lang.String negative)
negative
- The negative attribute. public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
language
- The language. public SearchCriterion getSearchDefault(java.lang.Class cls)
getSearchDefault
in interface SearchDefaults
cls
- Model class of search criterion.
public java.lang.String getTagWithDescription()
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 java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
The two parts of speech are equal if their classes and 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 |