public class RevisionCollection
extends java.lang.Object
implements java.lang.Iterable
Revision objects that represent revisions in the document.
To learn more, visit the Track Changes in a Document documentation article.
You do not create instances of this class directly. Use the Document.getRevisions() property to get revisions present in a document.
| Modifier and Type | Method and Description |
|---|---|
void |
acceptAll()
Accepts all revisions in this collection.
|
Revision |
get(int index)
Returns a Revision at the specified index.
|
int |
getCount()
Returns the number of revisions in the collection.
|
RevisionGroupCollection |
getGroups()
Collection of revision groups.
|
java.util.Iterator |
iterator()
Returns an enumerator object.
|
void |
rejectAll()
Rejects all revisions in this collection.
|
public void acceptAll()
throws java.lang.Exception
java.lang.Exceptionpublic void rejectAll()
throws java.lang.Exception
java.lang.Exceptionpublic int getCount()
public Revision get(int index)
The index is zero-based.
Negative indexes are allowed and indicate access from the back of the collection. For example -1 means the last item, -2 means the second before last and so on.
If index is greater than or equal to the number of items in the list, this returns a null reference.
If index is negative and its absolute value is greater than the number of items in the list, this returns a null reference.
index - An index into the collection.public RevisionGroupCollection getGroups()
RevisionGroupCollection value.public java.util.Iterator iterator()
iterator in interface java.lang.Iterable