java.lang.Objectcom.aspose.words.RevisionGroup
public class RevisionGroup
Example:
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.String | getAuthor() | |
Gets the author of this revision group. | ||
int | getRevisionType() | |
Gets the type of revisions included in this group. The value of the property is RevisionType integer constant. | ||
java.lang.String | getText() | |
Returns inserted/deleted/moved text or description of format change. |
Property Getters/Setters Detail |
---|
getAuthor | |
public java.lang.String getAuthor() |
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() |
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() |
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())); }