public class CorrectedWord extends java.lang.Object implements java.lang.Comparable<CorrectedWord>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
correctionType
Correction type.
|
protected java.lang.String |
id
Word ID.
|
protected java.lang.String |
lemmata
Corrected lemmata.
|
protected java.lang.String |
oldSpelling
Old spelling.
|
protected java.lang.String |
partsOfSpeech
Corrected parts of speech.
|
protected java.lang.String |
spelling
Corrected spelling.
|
protected java.lang.String |
standardSpelling
Corrected standard spelling.
|
protected java.lang.String |
updatedId
Updated word ID.
|
protected java.lang.String |
workId
Work ID.
|
Constructor and Description |
---|
CorrectedWord()
Create empty CorrectedWord object.
|
CorrectedWord(java.lang.String workId,
java.lang.String id,
java.lang.String oldSpelling,
java.lang.String spelling,
java.lang.String standardSpelling,
java.lang.String lemmata,
java.lang.String partsOfSpeech,
java.lang.String correctionType)
Create populated CorrectedWord object.
|
CorrectedWord(java.lang.String workId,
java.lang.String id,
java.lang.String updatedId,
java.lang.String oldSpelling,
java.lang.String spelling,
java.lang.String standardSpelling,
java.lang.String lemmata,
java.lang.String partsOfSpeech,
java.lang.String correctionType)
Create populated CorrectedWord object.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CorrectedWord otherWord)
Compare this corrected word to another.
|
java.lang.String |
getCorrectionType()
Get correctionType.
|
java.lang.String |
getId()
Get word ID.
|
java.lang.String |
getLemmata()
Get the lemmata.
|
java.lang.String |
getOldSpelling()
Get the old spelling.
|
java.lang.String |
getPartsOfSpeech()
Get the parts of speech.
|
java.lang.String |
getSpelling()
Get the spelling.
|
java.lang.String |
getStandardSpelling()
Get the standard spelling.
|
java.lang.String |
getUpdatedId()
Get updated word ID.
|
java.lang.String |
getWorkId()
Get work ID.
|
void |
setCorrectionType(java.lang.String correctionType)
Set the correctionType.
|
void |
setId(java.lang.String id)
Set word ID.
|
void |
setLemmata(java.lang.String lemmata)
Set the lemmata.
|
void |
setOldSpelling(java.lang.String oldSpelling)
Set the old spelling.
|
void |
setPartsOfSpeech(java.lang.String partsOfSpeech)
Set the parts of speech.
|
void |
setSpelling(java.lang.String spelling)
Set the spelling.
|
void |
setStandardSpelling(java.lang.String standardSpelling)
Set the standard spelling.
|
void |
setUpdatedId(java.lang.String updatedId)
Set updated word ID.
|
void |
setWorkId(java.lang.String workId)
Set work ID.
|
java.lang.String |
toString()
Return correction as a tabbed string.
|
protected java.lang.String workId
protected java.lang.String id
protected java.lang.String updatedId
protected java.lang.String oldSpelling
protected java.lang.String spelling
protected java.lang.String standardSpelling
protected java.lang.String lemmata
protected java.lang.String partsOfSpeech
protected java.lang.String correctionType
public CorrectedWord()
public CorrectedWord(java.lang.String workId, java.lang.String id, java.lang.String oldSpelling, java.lang.String spelling, java.lang.String standardSpelling, java.lang.String lemmata, java.lang.String partsOfSpeech, java.lang.String correctionType)
public CorrectedWord(java.lang.String workId, java.lang.String id, java.lang.String updatedId, java.lang.String oldSpelling, java.lang.String spelling, java.lang.String standardSpelling, java.lang.String lemmata, java.lang.String partsOfSpeech, java.lang.String correctionType)
public java.lang.String getWorkId()
public void setWorkId(java.lang.String workId)
workId
- The work ID.public java.lang.String getId()
public void setId(java.lang.String id)
id
- The word ID.public java.lang.String getUpdatedId()
public void setUpdatedId(java.lang.String updatedId)
updatedId
- The updated word ID.public java.lang.String getSpelling()
public void setSpelling(java.lang.String spelling)
spelling
- The spelling.public java.lang.String getStandardSpelling()
public void setStandardSpelling(java.lang.String standardSpelling)
standardSpelling
- The standard spelling.public java.lang.String getOldSpelling()
public void setOldSpelling(java.lang.String oldSpelling)
oldSpelling
- The old spelling.public java.lang.String getLemmata()
Compound lemmata are separated by a separator tring.
public void setLemmata(java.lang.String lemmata)
lemmata
- The lemmata.public java.lang.String getPartsOfSpeech()
public void setPartsOfSpeech(java.lang.String partsOfSpeech)
partsOfSpeech
- The parts of speech.public java.lang.String getCorrectionType()
public void setCorrectionType(java.lang.String correctionType)
correctionType
- The correction type.public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(CorrectedWord otherWord)
compareTo
in interface java.lang.Comparable<CorrectedWord>
otherWord
- Other word to compare to this one.We only compare the word IDs.