Package org.wikipediacleaner.api.data.PageElementTemplate

Examples of org.wikipediacleaner.api.data.PageElementTemplate.Parameter


        }
      } else if (isbnValues.size() > 0) {
        if (isbn.isTemplateParameter()) {
          PageElementTemplate template = analysis.isInTemplate(isbn.getBeginIndex());
          if (template != null) {
            Parameter param = template.getParameterAtIndex(isbn.getBeginIndex());
            if ((param != null) &&
                (param.getName() != null) &&
                (param.getName().trim().length() > 0)) {
              String name = param.getName().trim();
              int index = name.length();
              while ((index > 0) &&
                     (Character.isDigit(name.charAt(index - 1)))) {
                index--;
              }
View Full Code Here


      // Analyze template
      if (analyzeTemplate) {
        for (int paramNum = 0; paramNum < template.getParameterCount(); paramNum++) {
 
          // Search for <br> at the end of the parameter
          Parameter param = template.getParameter(paramNum);
          String paramValue = param.getValue();
          int paramValueStartIndex = param.getValueStartIndex();
          boolean breakFound = false;
          boolean tagAfter = false;
          int currentValuePos = paramValue.length() - 1;
          int beginError = -1;
          int endError = -1;
View Full Code Here

TOP

Related Classes of org.wikipediacleaner.api.data.PageElementTemplate.Parameter

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.