public class AdornedWordCountInfo extends BaseAdornedWord
An AdornedWordCountInfo adds the following to a BaseAAdornedWord.
Modifier and Type | Field and Description |
---|---|
protected int |
count
Count.
|
protected java.lang.String |
divType
Div type of nearest ancestral div.
|
protected java.lang.String |
nearestAncestor
Nearest ancestral element which is not a soft tag.
|
protected java.lang.String |
textSection
Text section (front, middle, back).
|
protected java.lang.String |
workID
Work ID.
|
lemmata, partsOfSpeech, spelling, standardSpelling, token
Constructor and Description |
---|
AdornedWordCountInfo()
Create empty adorned word info object.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object object)
Compare this key with another.
|
boolean |
equals(java.lang.Object object)
Check if another object is equal to this one.
|
int |
getCount()
Get the count.
|
java.lang.String |
getDivType()
Get the div type.
|
java.lang.String |
getNearestAncestor()
Get the nearest ancestor.
|
java.lang.String |
getTextSection()
Get the text section.
|
java.lang.String |
getWorkID()
Get the work ID.
|
int |
hashCode()
Get the hash code of the keys.
|
void |
setCount(int count)
Set the count.
|
void |
setDivType(java.lang.String divType)
Set the div type.
|
void |
setNearestAncestor(java.lang.String nearestAncestor)
Set the nearest ancestor.
|
void |
setTextSection(java.lang.String textSection)
Set the text section.
|
void |
setWorkID(java.lang.String workID)
Set the work ID.
|
java.lang.String |
toString()
Return a string representation of this object.
|
java.lang.String |
toString2()
Return a string representation of this object.
|
clone, getLemmata, getPartsOfSpeech, getSpelling, getStandardSpelling, getToken, setLemmata, setPartsOfSpeech, setSpelling, setStandardSpelling, setToken
protected int count
protected java.lang.String workID
protected java.lang.String divType
protected java.lang.String nearestAncestor
protected java.lang.String textSection
public AdornedWordCountInfo()
public int getCount()
public void setCount(int count)
count
- The count.public java.lang.String getWorkID()
public void setWorkID(java.lang.String workID)
workID
- The workID.public java.lang.String getDivType()
public void setDivType(java.lang.String divType)
divType
- The div type.public java.lang.String getNearestAncestor()
public void setNearestAncestor(java.lang.String nearestAncestor)
nearestAncestor
- The nearest ancestral element.public java.lang.String getTextSection()
public void setTextSection(java.lang.String textSection)
textSection
- The text section.public boolean equals(java.lang.Object object)
equals
in class BaseAdornedWord
object
- Other object to test for equality.Two word objects are equal if their spellings, lemmata, and parts of speech are equal.
public int compareTo(java.lang.Object object)
compareTo
in interface java.lang.Comparable
compareTo
in class BaseAdornedWord
object
- The other CompoundKey.Two word objects are compared first on their spellings, then their lemmata, and finally their parts of speech.
public java.lang.String toString()
toString
in class BaseAdornedWord
Return a tab separated string of the fields in the following order.
public java.lang.String toString2()
Return a tab separated string of the fields in the following order.
public int hashCode()
hashCode
in class BaseAdornedWord