com.aspose.words
Class Revision

java.lang.Object
    extended by com.aspose.words.Revision

public class Revision 
extends java.lang.Object

Represents a revision (tracked change) in a document node or style. Use RevisionType to check the type of this revision.

Property Getters/Setters Summary
java.lang.StringgetAuthor()
voidsetAuthor(java.lang.String value)
           Gets or sets the author of this revision. Can not be empty string or null.
java.util.DategetDateTime()
voidsetDateTime(java.util.Date value)
           Gets or sets the date/time of this revision.
NodegetParentNode()
           Gets the immediate parent node (owner) of this revision. This property will work for any revision type other than RevisionType.STYLE_DEFINITION_CHANGE.
StylegetParentStyle()
           Gets the immediate parent style (owner) of this revision. This property will work for only for the RevisionType.STYLE_DEFINITION_CHANGE revision type.
intgetRevisionType()
           Gets the type of this revision. The value of the property is RevisionType integer constant.
 
Method Summary
voidaccept()
           Accepts this revision.
voidreject()
           Reject this revision.
 

Property Getters/Setters Detail

getAuthor/setAuthor

public java.lang.String getAuthor() / public void setAuthor(java.lang.String value)
Gets or sets the author of this revision. Can not be empty string or null.

getDateTime/setDateTime

public java.util.Date getDateTime() / public void setDateTime(java.util.Date value)
Gets or sets the date/time of this revision.

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 ParentStyle instead.

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 ParentNode instead.

getRevisionType

public int getRevisionType()
Gets the type of this revision. The value of the property is RevisionType integer constant.

Method Detail

accept

public void accept()
           throws java.lang.Exception
Accepts this revision.

reject

public void reject()
           throws java.lang.Exception
Reject this revision.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.