com.aspose.words

Class RevisionGroup

  • java.lang.Object
    • com.aspose.words.RevisionGroup
public class RevisionGroup 
extends java.lang.Object

Represents a group of sequential Revision objects.

Example:

Shows how to get info about a set of revisions in document.
Document doc = new Document(getMyDir() + "Document.Revisions.docx");

System.out.println(MessageFormat.format("Revision groups count: {0}\n", doc.getRevisions().getGroups().getCount()));

// Get info about all of revisions in document
for (RevisionGroup group : doc.getRevisions().getGroups()) {
    System.out.println(MessageFormat.format("Revision author: {0}; Revision type: {1} \nRevision text: {2}", group.getAuthor(),
            group.getRevisionType(), group.getRevisionType()));
}

Property Getters/Setters Summary
java.lang.StringgetAuthor()
Gets the author of this revision group.
intgetRevisionType()
Gets the type of revisions included in this group. The value of the property is RevisionType integer constant.
java.lang.StringgetText()
Returns inserted/deleted/moved text or description of format change.
 

    • Property Getters/Setters Detail

      • getAuthor

        public java.lang.String getAuthor()
        
        Gets the author of this revision group.

        Example:

        Shows how to get info about a set of revisions in document.
        Document doc = new Document(getMyDir() + "Document.Revisions.docx");
        
        System.out.println(MessageFormat.format("Revision groups count: {0}\n", doc.getRevisions().getGroups().getCount()));
        
        // Get info about all of revisions in document
        for (RevisionGroup group : doc.getRevisions().getGroups()) {
            System.out.println(MessageFormat.format("Revision author: {0}; Revision type: {1} \nRevision text: {2}", group.getAuthor(),
                    group.getRevisionType(), group.getRevisionType()));
        }
      • getRevisionType

        public int getRevisionType()
        
        Gets the type of revisions included in this group. The value of the property is RevisionType integer constant.

        Example:

        Shows how to get info about a set of revisions in document.
        Document doc = new Document(getMyDir() + "Document.Revisions.docx");
        
        System.out.println(MessageFormat.format("Revision groups count: {0}\n", doc.getRevisions().getGroups().getCount()));
        
        // Get info about all of revisions in document
        for (RevisionGroup group : doc.getRevisions().getGroups()) {
            System.out.println(MessageFormat.format("Revision author: {0}; Revision type: {1} \nRevision text: {2}", group.getAuthor(),
                    group.getRevisionType(), group.getRevisionType()));
        }
      • getText

        public java.lang.String getText()
        
        Returns inserted/deleted/moved text or description of format change.

        Example:

        Shows how to get info about a set of revisions in document.
        Document doc = new Document(getMyDir() + "Document.Revisions.docx");
        
        System.out.println(MessageFormat.format("Revision groups count: {0}\n", doc.getRevisions().getGroups().getCount()));
        
        // Get info about all of revisions in document
        for (RevisionGroup group : doc.getRevisions().getGroups()) {
            System.out.println(MessageFormat.format("Revision author: {0}; Revision type: {1} \nRevision text: {2}", group.getAuthor(),
                    group.getRevisionType(), group.getRevisionType()));
        }