|
|||||||||
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.WordPart
public class WordPart
A word part.
A word part specifies the word form (lempos) of a part of a
word occurrence
. Most
word occurrences have only one part. Compound words have more than one
part. For example, the first word of Hamlet is the contraction "Who's".
This word has two parts. The first part is the pronoun "who" with part of
speech "pnq", and the second part is the verb "be" with part of speech
"vp-3sg.pr".
Word parts have the following attributes:
word
to which
this word part belongs.
work part
which contains this word part.
word form
of the part.
Benson word form
of the part (if any - for Chaucer).
Constructor Summary | |
---|---|
WordPart()
Creates a new word part. |
Method Summary | |
---|---|
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. |
BensonLemPos |
getBensonLemPos()
Gets the Benson lempos. |
void |
getGroupingObjects(java.lang.Class groupBy,
java.util.List list)
Gets grouping objects. |
java.lang.Long |
getId()
Gets the unique id. |
LemPos |
getLemPos()
Gets the lempos. |
int |
getPartIndex()
Gets the part index. |
SearchCriterion |
getSearchDefault(java.lang.Class cls)
Gets a search criterion default value. |
java.lang.String |
getTag()
Gets the tag. |
Word |
getWord()
Gets the word. |
WorkPart |
getWorkPart()
Gets the work part. |
int |
hashCode()
Returns a hash code for the object. |
void |
setBensonLemPos(BensonLemPos bensonLemPos)
Sets the Benson lempos. |
void |
setId(java.lang.Long id)
Sets the unique id. |
void |
setLemPos(LemPos lemPos)
Sets the lempos. |
void |
setPartIndex(int partIndex)
Sets the part index. |
void |
setTag(java.lang.String tag)
Sets the tag. |
void |
setWord(Word word)
Sets the word. |
void |
setWorkPart(WorkPart workPart)
Sets the work part. |
java.lang.String |
toString()
Gets a string representation of the word part. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WordPart()
Method Detail |
---|
public java.lang.Long getId()
getId
in interface PersistentObject
public void setId(java.lang.Long id)
id
- The unique id. public java.lang.String getTag()
public void setTag(java.lang.String tag)
tag
- The tag. public int getPartIndex()
public void setPartIndex(int partIndex)
partIndex
- The part index. public Word getWord()
public void setWord(Word word)
word
- The word. public WorkPart getWorkPart()
public void setWorkPart(WorkPart workPart)
workPart
- The work part. public LemPos getLemPos()
public void setLemPos(LemPos lemPos)
lemPos
- The lempos. public BensonLemPos getBensonLemPos()
public void setBensonLemPos(BensonLemPos bensonLemPos)
bensonLemPos
- The Benson lempos. public SearchCriterion getSearchDefault(java.lang.Class cls)
getSearchDefault
in interface SearchDefaults
cls
- Model class of search criterion.
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 word parts are equal if their words and part indexes are equal.
equals
in class java.lang.Object
obj
- The other object.
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |