Revision
Inheritance: java.lang.Object
public class Revision
Represents a revision (tracked change) in a document node or style. Use getRevisionType() to check the type of this revision.
To learn more, visit the Track Changes in a Document documentation article.
Methods
Method | Description |
---|---|
accept() | Accepts this revision. |
equals(Object arg0) | |
getAuthor() | Gets the author of this revision. |
getClass() | |
getDateTime() | Gets the date/time of this revision. |
getGroup() | Gets the revision group. |
getParentNode() | Gets the immediate parent node (owner) of this revision. |
getParentStyle() | Gets the immediate parent style (owner) of this revision. |
getRevisionType() | Gets the type of this revision. |
hashCode() | |
notify() | |
notifyAll() | |
reject() | Reject this revision. |
setAuthor(String value) | Sets the author of this revision. |
setDateTime(Date value) | Sets the date/time of this revision. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
accept()
public void accept()
Accepts this revision.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getAuthor()
public String getAuthor()
Gets the author of this revision. Can not be empty string or null .
Returns: java.lang.String - The author of this revision.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class>
getDateTime()
public Date getDateTime()
Gets the date/time of this revision.
Returns: java.util.Date - The date/time of this revision.
getGroup()
public RevisionGroup getGroup()
Gets the revision group. Returns null if the revision does not belong to any group. Revision has no group if revision type is RevisionType.STYLE_DEFINITION_CHANGE or if the revision is not longer exist in document context (accepted/rejected).
Returns: RevisionGroup - The revision group.
getParentNode()
public Node getParentNode()
Gets the immediate parent node (owner) of this revision. This property will work for any revision type other than RevisionType.STYLE_DEFINITION_CHANGE. If this revision relates to change of Style formatting, use getParentStyle() instead.
Returns: Node - The immediate parent node (owner) of this revision.
getParentStyle()
public Style getParentStyle()
Gets the immediate parent style (owner) of this revision. This property will work for only for the RevisionType.STYLE_DEFINITION_CHANGE revision type. If this revision relates to changes on document nodes, use getParentNode() instead.
Returns: Style - The immediate parent style (owner) of this revision.
getRevisionType()
public int getRevisionType()
Gets the type of this revision.
Returns: int - The type of this revision. The returned value is one of RevisionType constants.
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
reject()
public void reject()
Reject this revision.
setAuthor(String value)
public void setAuthor(String value)
Sets the author of this revision. Can not be empty string or null .
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | The author of this revision. |
setDateTime(Date value)
public void setDateTime(Date value)
Sets the date/time of this revision.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.util.Date | The date/time of this revision. |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |