public class AdornedWordData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
attributeMap
Attribute map.
|
boolean |
blankPrecedes
If word is preceded by a blank element.
|
protected java.lang.String |
siblingID
Word ID of sibling (same parent element) word.
|
protected java.lang.String |
wordText
Word text.
|
Constructor and Description |
---|
AdornedWordData()
Create empty adorned word data.
|
AdornedWordData(java.lang.String wordText,
java.util.Map<java.lang.String,java.lang.String> attributeMap,
java.lang.String siblingID,
boolean blankPrecedes)
Create populated adorned word data.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAttributeMap()
Get attribute map.
|
boolean |
getBlankPrecedes()
Get blank precedes word flag.
|
java.lang.String |
getSiblingID()
Get sibling word ID.
|
java.lang.String |
getWordText()
Get word text.
|
void |
setAttributeMap(java.util.Map<java.lang.String,java.lang.String> attributeMap)
Set attribute map.
|
void |
setBlankPrecedes(boolean blankPrecedes)
Set blank precedes word flag.
|
void |
setSiblingID(java.lang.String siblingID)
Set sibling word ID.
|
void |
setWordText(java.lang.String wordText)
Set word text.
|
protected java.lang.String wordText
protected java.util.Map<java.lang.String,java.lang.String> attributeMap
protected java.lang.String siblingID
public boolean blankPrecedes
public AdornedWordData()
public AdornedWordData(java.lang.String wordText, java.util.Map<java.lang.String,java.lang.String> attributeMap, java.lang.String siblingID, boolean blankPrecedes)
wordText
- Word text.attributeMap
- Map of attribute names to attribute values.siblingID
- Sibling word ID (has same parent element).blankPrecedes
- true if blank precedes word.public java.lang.String getWordText()
public void setWordText(java.lang.String wordText)
wordText
- The word text.public java.util.Map<java.lang.String,java.lang.String> getAttributeMap()
public void setAttributeMap(java.util.Map<java.lang.String,java.lang.String> attributeMap)
attributeMap
- The attribute map.public java.lang.String getSiblingID()
public void setSiblingID(java.lang.String siblingID)
siblingID
- The sibling word ID.public boolean getBlankPrecedes()
public void setBlankPrecedes(boolean blankPrecedes)
blankPrecedes
- true if blank precedes word.