|
|||||||||
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.CountableWordData
public class CountableWordData
Countable word data.
A countable word data object holds the data values retrieved
using a WordHoard CQL word query. These values are used to construct
tables of counts for further analysis. Most of the values come from
the Word
entry except
as noted below.
The fields are:
Speech
.
Speech
.
Field Summary | |
---|---|
protected Gender |
gender
The gender of the speaker(s). |
protected Spelling |
lemmaTagInsensitive
The case insensitive lemma tag for the specified word part. |
protected MetricalShape |
metricalShape
The metrical shape of the word. |
protected Mortality |
mortality
The mortality of the speaker(s). |
protected Prosodic |
prosodic
Is this word in prose or poetry. |
protected Spelling |
spellingInsensitive
The case insensitive spelling. |
protected java.lang.String |
wordClassTag
The word class tag for the specified word part. |
protected java.lang.Long |
wordId
Unique persistence id of the word to which this data pertains. |
protected int |
wordPartIndex
The word part index for the lemma and word class. |
protected java.lang.Long |
wordPartOrdinal
The word part ordinal. |
protected java.lang.String |
wordTag
The unique tag of the word. |
protected java.lang.Long |
workId
The ID of the work in which this word appears. |
protected java.lang.Long |
workPartId
The work part in which this word appears. |
Constructor Summary | |
---|---|
CountableWordData()
Create empty countable word object. |
|
CountableWordData(java.lang.Long wordId,
java.lang.String wordTag,
java.lang.Long workId,
java.lang.Long workPartId,
Spelling spellingInsensitive,
MetricalShape metricalShape,
Gender gender,
Mortality mortality,
Prosodic prosodic,
java.lang.Integer wordPartIndex,
Spelling lemmaTagInsensitive)
Create countable word data object. |
|
CountableWordData(java.lang.Object[] countableDataValues)
Create countable word data object. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
Implement Comparable interface. |
boolean |
equals(java.lang.Object obj)
Returns true if this object is equal to some other object. |
static java.lang.Long |
generateWordPartOrdinal(java.lang.Long wordId,
int wordPartIndex)
Generates a word part ordinal given a word ID and word part index. |
java.lang.String |
getGender()
Gets the speaker gender. |
Spelling |
getLemmaTag()
Gets the case and accent insensitive lemma tag. |
java.lang.String |
getMetricalShape()
Gets the metrical shape. |
java.lang.String |
getMortality()
Gets the speaker mortality. |
java.lang.String |
getProsodic()
Gets the prosody flag. |
Spelling |
getSpelling()
Gets the spelling for this word. |
java.lang.String |
getWordClassTag()
Gets the word class tag. |
java.lang.Long |
getWordId()
Gets the Word ID to which this data pertains. |
int |
getWordPartIndex()
Gets the word part index. |
java.lang.Long |
getWordPartOrdinal()
Gets the word part ordinal. |
java.lang.String |
getWordTag()
Gets the permanent tag of the word to which this data pertains. |
java.lang.Long |
getWorkId()
Gets the Work ID to which this data pertains. |
java.lang.Long |
getWorkPartId()
Gets the Work part ID to which this data pertains. |
int |
hashCode()
Returns a hash code for the object. |
java.lang.String |
toString()
Return insensitive spelling for display purposes. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Long wordId
protected java.lang.String wordTag
protected Spelling spellingInsensitive
protected MetricalShape metricalShape
protected Gender gender
protected Mortality mortality
protected Prosodic prosodic
protected java.lang.Long workId
protected java.lang.Long workPartId
protected int wordPartIndex
protected Spelling lemmaTagInsensitive
protected java.lang.String wordClassTag
protected java.lang.Long wordPartOrdinal
Constructor Detail |
---|
public CountableWordData()
public CountableWordData(java.lang.Long wordId, java.lang.String wordTag, java.lang.Long workId, java.lang.Long workPartId, Spelling spellingInsensitive, MetricalShape metricalShape, Gender gender, Mortality mortality, Prosodic prosodic, java.lang.Integer wordPartIndex, Spelling lemmaTagInsensitive)
wordId
- The persistence ID for
the word whose data
this is.wordTag
- The tag of word.workId
- The persistence ID of the work in
which this word appears.workPartId
- The persistence ID of the work part
in which this word appears.spellingInsensitive
- The case and accent insensitive
word spelling.metricalShape
- The metrical shape of the word.gender
- The combined speaker gender.mortality
- The combined speaker mortality.prosodic
- Indivates if this word appears in
poetry or prose.wordPartIndex
- Indicates the part of the word
to which this data pertains.lemmaTagInsensitive
- The lemma tag for the part of the
word part specified by wordPartIndex. public CountableWordData(java.lang.Object[] countableDataValues)
countableDataValues
- Array of objects whose values
match in type and order the
countable word data objects
as listed in the primary
constructor above.
This version of the constructor is convenient for converting query results to countable data objects.
Method Detail |
---|
public java.lang.Long getWordId()
public java.lang.String getWordTag()
public java.lang.Long getWorkId()
public java.lang.Long getWorkPartId()
public Spelling getSpelling()
public java.lang.String getMetricalShape()
public java.lang.String getGender()
public java.lang.String getMortality()
public java.lang.String getProsodic()
public Spelling getLemmaTag()
public java.lang.String getWordClassTag()
public int getWordPartIndex()
public java.lang.Long getWordPartOrdinal()
public static java.lang.Long generateWordPartOrdinal(java.lang.Long wordId, int wordPartIndex)
wordId
- The word ID.wordPartIndex
- The word part index. 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
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
obj
- Other spelling object to which to compare this object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |