Examples of CheckErrorAlgorithm


Examples of org.wikipediacleaner.api.check.algorithm.CheckErrorAlgorithm

   * @return Value at row and column.
   * @see javax.swing.table.TableModel#getValueAt(int, int)
   */
  public Object getValueAt(int rowIndex, int columnIndex) {
    if ((rowIndex >= 0) && (rowIndex < algorithms.size())) {
      CheckErrorAlgorithm algorithm = algorithms.get(rowIndex);
      switch (columnIndex) {
      case COLUMN_BOT:
        return Boolean.valueOf(botAlgorithms.contains(algorithm));
      case COLUMN_DESCRIPTION:
        return algorithm.getShortDescriptionReplaced();
      case COLUMN_NUMBER:
        return Integer.valueOf(algorithm.getErrorNumber());
      }
    }
    return null;
  }
View Full Code Here

Examples of org.wikipediacleaner.api.check.algorithm.CheckErrorAlgorithm

   * @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++) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.