com.aspose.words
Class RevisionType

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

public class RevisionType 
extends java.lang.Object

Utility class containing constants. Specifies the type of change being tracked in Revision.

Example:

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

// Get revision group by index.
RevisionGroup revisionGroup = doc.getRevisions().getGroups().get(1);

// Get info about specific revision groups sorted by RevisionType
for (RevisionGroup revision : doc.getRevisions().getGroups()) {
    if (revision.getRevisionType() == RevisionType.INSERTION) {
        System.out.println(MessageFormat.format("Revision type: {0},\nRevision author: {1},\nRevision text: {2}.\n",
                revision.getRevisionType(), revision.getAuthor(), revision.getText()));
    }
}

Field Summary
static final intINSERTION = 0
           New content was inserted in the document.
static final intDELETION = 1
           Content was removed from the document.
static final intFORMAT_CHANGE = 2
           Change of formatting was applied to the parent node.
static final intSTYLE_DEFINITION_CHANGE = 3
           Change of formatting was applied to the parent style.
static final intMOVING = 4
           Content was moved in the document.
 

Field Detail

INSERTION = 0

public static final int INSERTION
New content was inserted in the document.

DELETION = 1

public static final int DELETION
Content was removed from the document.

FORMAT_CHANGE = 2

public static final int FORMAT_CHANGE
Change of formatting was applied to the parent node.

STYLE_DEFINITION_CHANGE = 3

public static final int STYLE_DEFINITION_CHANGE
Change of formatting was applied to the parent style.

MOVING = 4

public static final int MOVING
Content was moved in the document.

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