Package org.wikipediacleaner.api.check

Examples of org.wikipediacleaner.api.check.CheckWiki


   *
   * @param errorNumber Error number.
   * @param pages List of pages to complete.
   */
  private void retrieveCheckWikiPages(int errorNumber, List<Page> pages) {
    CheckWiki cw = APIFactory.getCheckWiki();
    EnumWikipedia wiki = getWikipedia();
    CheckErrorAlgorithm algorithm = CheckErrorAlgorithms.getAlgorithm(wiki, errorNumber);
    List<CheckError> errors = new ArrayList<CheckError>();
    try {
      cw.retrievePages(algorithm, 10000, wiki, errors);
      for (CheckError error: errors) {
        for (int pageNum = 0; pageNum < error.getPageCount(); pageNum++) {
          pages.add(error.getPage(pageNum));
        }
      }
View Full Code Here

TOP

Related Classes of org.wikipediacleaner.api.check.CheckWiki

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.