public class Revision
extends java.lang.Object
getRevisionType() to check the type of this revision.
To learn more, visit the Track Changes in a Document documentation article.
| Modifier and Type | Method and Description |
|---|---|
void |
accept()
Accepts this revision.
|
java.lang.String |
getAuthor()
Gets the author of this revision.
|
java.util.Date |
getDateTime()
Gets the date/time of this revision.
|
RevisionGroup |
getGroup()
Gets the revision group.
|
Node |
getParentNode()
Gets the immediate parent node (owner) of this revision.
|
Style |
getParentStyle()
Gets the immediate parent style (owner) of this revision.
|
int |
getRevisionType()
Gets the type of this revision.
|
void |
reject()
Reject this revision.
|
void |
setAuthor(java.lang.String value)
Sets the author of this revision.
|
void |
setDateTime(java.util.Date value)
Sets the date/time of this revision.
|
public void accept()
throws java.lang.Exception
java.lang.Exceptionpublic void reject()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getAuthor()
public void setAuthor(java.lang.String value)
value - The author of this revision.public java.util.Date getDateTime()
public void setDateTime(java.util.Date value)
value - The date/time of this revision.public int getRevisionType()
RevisionType constants.public Node getParentNode()
RevisionType.STYLE_DEFINITION_CHANGE.
If this revision relates to change of Style formatting, use getParentStyle() instead.public Style getParentStyle()
RevisionType.STYLE_DEFINITION_CHANGE revision type.
If this revision relates to changes on document nodes, use getParentNode() instead.public RevisionGroup getGroup()