RevisionInfo
Leave feedback
On this page
Inheritance: java.lang.Object
public class RevisionInfo
Represents a revision in the document.
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 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());
}
}
| Constructor | Description |
|---|---|
| RevisionInfo() |
| Method | Description |
|---|---|
| getAction() | Gets the action associated with the revision (accept or reject). |
| setAction(RevisionAction value) | Sets the value associated with the revision (accept or reject). |
| getText() | Gets the text content of the revision. |
| setText(String value) | Sets the value content of the revision. |
| getAuthor() | Gets the author of the revision. |
| setAuthor(String value) | Sets the value of the revision. |
| getType() | Gets the type of the revision, depending on the type the Action (accept or reject) logic changes. |
| setType(RevisionType value) | Sets the value of the revision, depending on the value the Action (accept or reject) logic changes. |
public RevisionInfo()
public RevisionAction getAction()
Gets the action associated with the revision (accept or reject). This field allows you to influence the display of the revision.
Returns: RevisionAction - the action associated with the revision.
public void setAction(RevisionAction value)
Sets the value associated with the revision (accept or reject). This field allows you to influence the display of the revision.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | RevisionAction | The value associated with the revision. |
public String getText()
Gets the text content of the revision.
Returns: java.lang.String - the text content of the revision.
public void setText(String value)
Sets the value content of the revision.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The value content of the revision. |
public String getAuthor()
Gets the author of the revision.
Returns: java.lang.String - the author of the revision.
public void setAuthor(String value)
Sets the value of the revision.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The value of the revision. |
public RevisionType getType()
Gets the type of the revision, depending on the type the Action (accept or reject) logic changes.
Returns: RevisionType - the type of the revision.
public void setType(RevisionType value)
Sets the value of the revision, depending on the value the Action (accept or reject) logic changes.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | RevisionType | The value of the revision. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.