public class CategoryMembersFull extends MWAction implements Iterable<CategoryItem>, Iterator<CategoryItem>
CategoryMembers with contains CategoryItems.| Modifier and Type | Field and Description |
|---|---|
protected MediaWikiBot |
bot |
protected String |
categoryName
Name of the category.
|
protected boolean |
hasMoreResults |
protected boolean |
init |
protected static int |
LIMIT
constant value for the bllimit-parameter.
|
protected int[] |
namespace |
protected String |
nextPageInfo
information necessary to get the next api page.
|
protected net.sourceforge.jwbf.mediawiki.actions.queries.CategoryMembers.RequestGenerator |
requestBuilder |
| Constructor and Description |
|---|
CategoryMembersFull(MediaWikiBot bot,
String categoryName,
int... namespaces)
on any kind of http or version problems
on inner problems like a version mismatch
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCatItem(String title,
int pageid,
int ns) |
protected Object |
clone() |
protected void |
finalizeParse() |
protected Get |
generateContinueRequest(String cmcontinue)
generates the next MediaWiki-request (GetMethod) and adds it to msgs.
|
protected Get |
generateFirstRequest()
generates the next MediaWiki-request (GetMethod) and adds it to msgs.
|
HttpAction |
getNextMessage() |
boolean |
hasNext() |
Iterator<CategoryItem> |
iterator() |
CategoryItem |
next() |
String |
processAllReturningText(String s)
deals with the MediaWiki api's response by parsing the provided text.
|
void |
remove() |
createNsString, evaluateXpath, getErrorElement, getRootElement, getRootElementWithError, hasMoreMessages, isSelfExecuter, processReturningText, setExceptionHandler, setHasMoreMessagesprotected static final int LIMIT
protected final MediaWikiBot bot
protected String nextPageInfo
protected boolean hasMoreResults
protected boolean init
protected final String categoryName
protected net.sourceforge.jwbf.mediawiki.actions.queries.CategoryMembers.RequestGenerator requestBuilder
protected final int[] namespace
public CategoryMembersFull(MediaWikiBot bot, String categoryName, int... namespaces)
protected void addCatItem(String title, int pageid, int ns)
public HttpAction getNextMessage()
getNextMessage in interface ContentProcessablepublic Iterator<CategoryItem> iterator()
iterator in interface Iterable<CategoryItem>protected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic String processAllReturningText(String s)
s - the answer to the most recently generated MediaWiki-requestpublic boolean hasNext()
hasNext in interface Iterator<CategoryItem>public CategoryItem next()
next in interface Iterator<CategoryItem>public void remove()
remove in interface Iterator<CategoryItem>protected void finalizeParse()
protected final Get generateFirstRequest()
Copyright © 2013. All Rights Reserved.