public class Util extends Object
MediaWikiType objects.| Modifier and Type | Method and Description |
|---|---|
static List<RevisionType> |
getRevisions(PageType page)
Return a
List of the given page's RevisionType objects. |
static String |
getText(PageType page,
int rev_num)
Returns the text for the specified revision number.
|
static String |
getText(RevisionType revision)
Returns this revision's text.
|
static long |
getTextSize(PageType page)
Returns the sum of the text sizes of all of this page's revisions.
|
static int |
getTextSize(RevisionType revision)
Return the length of the revision's text element.
|
static void |
setText(RevisionType revision,
String text)
Set the revision's text
|
public static List<RevisionType> getRevisions(PageType page)
List of the given page's RevisionType objects.page - the pageList of the given page's RevisionType objectspublic static String getText(RevisionType revision)
revision - the revisionpublic static int getTextSize(RevisionType revision)
revision - the revisionpublic static long getTextSize(PageType page)
page - the pagepublic static String getText(PageType page, int rev_num)
revisionID.page - the pagerev_num - The order of the revision in the revision list. (Note: This is
not the MediaWiki revisionID.ArrayIndexOutOfBoundsException - if rev_num is out of bounds.public static void setText(RevisionType revision, String text)
revision - the revisiontext - the text