Package org.wikipediacleaner.api.check.CheckErrorResult

Examples of org.wikipediacleaner.api.check.CheckErrorResult.ErrorLevel


        for (HtmlCharacters htmlCharacter : getHtmlCharacters()) {
          String name = htmlCharacter.getName();
          if ((name != null) &&
              contents.startsWith(name, ampersandIndex + 1) &&
              htmlCharacter.shouldReplaceName()) {
            ErrorLevel errorLevel = ErrorLevel.ERROR;

            // Analyze semicolon after the name
            int colonIndex = ampersandIndex + name.length() + 1;
            boolean found = false;
            if (useSemiColon()) {
View Full Code Here


   * @return Error result.
   */
  protected CheckErrorResult createCheckErrorResult(
      PageAnalysis analysis, PageElementISBN isbn,
      boolean checkForComment) {
    ErrorLevel level = (isbn.isValid() && !isbn.helpRequested()) ?
        ErrorLevel.ERROR : ErrorLevel.WARNING;
    if (checkForComment) {
      String contents = analysis.getContents();
      int index = isbn.getEndIndex();
      while ((index < contents.length()) && (contents.charAt(index) == ' ')) {
View Full Code Here

TOP

Related Classes of org.wikipediacleaner.api.check.CheckErrorResult.ErrorLevel

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.