public class RevisionInfo extends Object
A revision encapsulates information about revision change made to the document. This class provides methods to retrieve information about the revision, such as its type, content, author, and so on.
Example usage:
try (RevisionHandler revisionHandler = new RevisionHandler(sourceFile)) {
List<RevisionInfo> revisionList = revisionHandler.getRevisions();
for (RevisionInfo revisionInfo : revisionList) {
System.out.println("Revision Type: " + revisionInfo.getType());
System.out.println("Text: " + revisionInfo.getText());
System.out.println("Author: " + revisionInfo.getAuthor());
}
}
RevisionHandler| Constructor and Description |
|---|
RevisionInfo() |
| Modifier and Type | Method and Description |
|---|---|
RevisionAction |
getAction()
Gets the action associated with the revision (accept or reject).
|
String |
getAuthor()
Gets the author of the revision.
|
String |
getText()
Gets the text content of the revision.
|
RevisionType |
getType()
Gets the type of the revision, depending on the type the Action (accept or reject) logic changes.
|
void |
setAction(RevisionAction value)
Sets the value associated with the revision (accept or reject).
|
void |
setAuthor(String value)
Sets the value of the revision.
|
void |
setText(String value)
Sets the value content of the revision.
|
void |
setType(RevisionType value)
Sets the value of the revision, depending on the value the Action (accept or reject) logic changes.
|
public RevisionAction getAction()
public String getAuthor()
public String getText()
public RevisionType getType()
public void setAction(RevisionAction value)
value - The value associated with the revision.public void setAuthor(String value)
value - The value of the revision.public void setText(String value)
value - The value content of the revision.public void setType(RevisionType value)
value - The value of the revision.Copyright © 2024. All rights reserved.