com.aspose.words

Class Revision

  • java.lang.Object
    • 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()
void
setAuthor(java.lang.Stringvalue)
           Gets or sets the author of this revision. Can not be empty string or null.
java.util.DategetDateTime()
void
setDateTime(java.util.Datevalue)
           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.