|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.swing.calculator.modelutils.WordPartData
public class WordPartData
Word part data.
A word part data object holds the data values for a word and its words parts. It is intended primarily for use in WordHoard scripts.
The fields are:
Speech
.
Speech
.
Field Summary | |
---|---|
protected Gender |
gender
The gender of the speaker(s). |
protected java.util.ArrayList |
lemmata
The lemmata. |
protected java.util.ArrayList |
lemPos
The lempos entries. |
protected Mortality |
mortality
The mortality of the speaker(s). |
protected java.util.ArrayList |
pos
The parts of speech. |
protected Speech |
speech
The speech in which this word appears. |
protected Word |
word
The word to which this data pertains. |
protected java.util.ArrayList |
wordClasses
The word classes. |
protected int |
wordPartCount
The number of word parts. |
Constructor Summary | |
---|---|
WordPartData()
Create empty word part data object. |
|
WordPartData(Word word,
Gender gender,
Mortality mortality,
LemPos[] lemPos,
Lemma[] lemmata,
Pos[] pos,
WordClass[] wordClasses)
Create word part data object. |
|
WordPartData(Word word,
Gender gender,
Mortality mortality,
LemPos lemPos,
Lemma lemma,
Pos pos,
WordClass wordClass)
Create word part data object. |
Method Summary | |
---|---|
void |
append(LemPos lemPos,
Lemma lemma,
Pos pos,
WordClass wordClass)
Append data to the existing word part data. |
boolean |
equals(java.lang.Object obj)
Returns true if this object is equal to some other object. |
java.lang.String |
getGender()
Gets the speaker gender. |
Lemma[] |
getLemmata()
Gets the lemmata. |
LemPos[] |
getLemPos()
Gets the lemPos entries. |
java.lang.String |
getMortality()
Gets the speaker mortality. |
Pos[] |
getPos()
Gets the parts of speech. |
Word |
getWord()
Gets the Word to which this data pertains. |
WordClass[] |
getWordClasses()
Gets the word classes. |
int |
getWordPartCount()
Gets the word part count. |
int |
hashCode()
Returns a hash code for the object. |
java.lang.String |
toString()
Return word tag for display purposes. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Word word
protected int wordPartCount
protected Speech speech
protected Gender gender
protected Mortality mortality
protected java.util.ArrayList lemPos
protected java.util.ArrayList lemmata
protected java.util.ArrayList pos
protected java.util.ArrayList wordClasses
Constructor Detail |
---|
public WordPartData()
public WordPartData(Word word, Gender gender, Mortality mortality, LemPos[] lemPos, Lemma[] lemmata, Pos[] pos, WordClass[] wordClasses)
word
- The word whose data this is.gender
- The combined speaker gender.mortality
- The combined speaker mortality.lemPos
- The lemPos entries.lemmata
- The lemmata.pos
- The parts of speech.wordClasses
- The word classes. public WordPartData(Word word, Gender gender, Mortality mortality, LemPos lemPos, Lemma lemma, Pos pos, WordClass wordClass)
word
- The word whose data this is.gender
- The combined speaker gender.mortality
- The combined speaker mortality.lemPos
- The lempos.lemma
- The lemma.pos
- The part of speech.wordClass
- The word class. Method Detail |
---|
public Word getWord()
public int getWordPartCount()
public java.lang.String getGender()
public java.lang.String getMortality()
public LemPos[] getLemPos()
public Lemma[] getLemmata()
public Pos[] getPos()
public WordClass[] getWordClasses()
public void append(LemPos lemPos, Lemma lemma, Pos pos, WordClass wordClass)
lemPos
- The new lemPos.lemma
- The new lemma.pos
- The new part of speech.wordClass
- The new word class.
Note: the updated data is appended to the end of existing entries. The calling method must ensure the data is appended in the proper order.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
The objects are equal if their word part ordinals 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 |