public class WordChange
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
attributeName
Name of field for attribute (empty if word text).
|
boolean |
blankPrecedes
If word is preceded by a blank element.
|
WordChangeType |
changeType
Type of change: addition, deletion, or modification.
|
FieldType |
fieldType
Field to which change is applied: text or attribute.
|
java.lang.String |
id
ID for word changed.
|
java.lang.String |
newValue
New field value.
|
java.lang.String |
oldValue
Old field value.
|
java.lang.String |
siblingID
Sibling to determine parent element when adding a word.
|
Constructor and Description |
---|
WordChange()
Create empty word change.
|
WordChange(java.lang.String id,
WordChangeType changeType,
FieldType fieldType,
java.lang.String attributeName,
java.lang.String oldValue,
java.lang.String newValue,
java.lang.String siblingID,
boolean blankPrecedes)
Create fully populated word change.
|
public java.lang.String id
The ID is usually provided by the xml:id attribute. A "*" means the change applies to all words.
public WordChangeType changeType
public FieldType fieldType
public java.lang.String attributeName
public java.lang.String oldValue
public java.lang.String newValue
public java.lang.String siblingID
public boolean blankPrecedes
public WordChange()
public WordChange(java.lang.String id, WordChangeType changeType, FieldType fieldType, java.lang.String attributeName, java.lang.String oldValue, java.lang.String newValue, java.lang.String siblingID, boolean blankPrecedes)
id
- ID (usually xml:id) of word to change.changeType
- Type of change (addition, deletion,
modification).fieldType
- Type of field to change (text or attribute).attributeName
- Name of attribute (empty if not attribute).oldValue
- Old value of field.newValue
- New value of field.siblingID
- Word ID of sibling when adding new word.blankPrecedes
- Word is preceded by a blank element.