public class WordChangeLog
extends java.lang.Object
The changes are recorded on a token basis in the following format.
<ChangeLog> <changeTime>The time the change file was created.</changeTime> <changeDescription>A description of the changes.</changeDescription> <changes> <change> <id>xml:id of token to be changed.</id> <changeType>addition, modification, or deletion.</changeType> <fieldType>Type of field to change: text or attribute.</fieldType> <oldValue>Old field value.</oldValue> <newValue>New field value.</newValue> <siblingID>xml:id of sibling word for a word being added.</siblingID> <blankPrecedes>true if blank precedes the token, else false.</blankPrecedes> <blankFollows>true if blank follows the token, else false.</blankFollows> </change> ... (more <change> entries) ... </changes> </ChangeLog>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
changeDescription
Description of change.
|
protected java.util.List<WordChange> |
changes
List of changes.
|
protected java.util.Date |
changeTime
Time/date of change.
|
Constructor and Description |
---|
WordChangeLog()
Create empty change log.
|
WordChangeLog(java.lang.String changeDescription)
Create change log with a description.
|
Modifier and Type | Method and Description |
---|---|
void |
addChange(WordChange wordChange)
Add entry to change log.
|
java.lang.String |
getChangeDescription()
Get description of change.
|
java.util.List<WordChange> |
getChanges()
Get list of changes.
|
java.util.Date |
getChangeTime()
Get time of change.
|
int |
getNumberOfChanges()
Get number of changes.
|
void |
SetChangeDescription(java.lang.String changeDescription)
Set description of change.
|
void |
SetChangeTime(java.util.Date changeTime)
Set time of change.
|
protected java.util.Date changeTime
protected java.lang.String changeDescription
protected java.util.List<WordChange> changes
public WordChangeLog()
public WordChangeLog(java.lang.String changeDescription)
public java.util.Date getChangeTime()
public void SetChangeTime(java.util.Date changeTime)
changeTime
- Time of change.public java.lang.String getChangeDescription()
public void SetChangeDescription(java.lang.String changeDescription)
changeDescription
- Description of change.public void addChange(WordChange wordChange)
wordChange
- The change to add.public java.util.List<WordChange> getChanges()
public int getNumberOfChanges()