Package org.wikipediacleaner.api.data

Examples of org.wikipediacleaner.api.data.PageElementISBN


      return createDefaultPopupFunction(pageAnalysis, position, function);
    }

    // Menu for ISBN
    if (element instanceof PageElementISBN) {
      PageElementISBN isbn = (PageElementISBN) element;
      return createDefaultPopupISBN(pageAnalysis, position, isbn);
    }

    // Default menu
    BasicMenuCreator menu = new BasicMenuCreator();
View Full Code Here


      boolean keep = true;
      StringBuilder comment = new StringBuilder();
      while (pos < next) {
        errorResult = errorResults.get(pos);
        CheckErrorAlgorithm algorithm = errorResult.getAlgorithm();
        PageElementISBN isbn = analysis.isInISBN(beginIndex);
        if (isbn != null) {
          if ((algorithm != null) &&
              (algorithm instanceof CheckErrorAlgorithmISBN)) {
            CheckErrorAlgorithmISBN isbnAlgo = (CheckErrorAlgorithmISBN) algorithm;
            String reason = isbnAlgo.getReason(isbn);
            if ((reason != null) && (reason.length() > 0)) {
              if (comment.length() > 0) {
                comment.append(" - ");
              }
              comment.append(reason);
            }
          }
          if (!isbn.isTemplateParameter()) {
            if (error.toUpperCase().startsWith("ISBN")) {
              error = error.substring(4).trim();
            }
            PageElementExternalLink link = analysis.isInExternalLink(beginIndex);
            if (link != null) {
View Full Code Here

TOP

Related Classes of org.wikipediacleaner.api.data.PageElementISBN

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.