Package org.wikipediacleaner.api.data

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


  /**
   * @param analysis Page analysis.
   * @return First warning template in the page.
   */
  private final PageElementTemplate getFirstWarningTemplate(PageAnalysis analysis) {
    PageElementTemplate template = null;
    if (analysis != null) {
      List<PageElementTemplate> templates = analysis.getTemplates(
          configuration.getString(getWarningTemplate()));
      if ((templates != null) && (!templates.isEmpty())) {
        template = templates.get(0);
View Full Code Here


            return false;
          }
          String templateName = format.substring(formatIndex + 2, tmpIndex).trim();
 
          // Analyze value
          PageElementTemplate template = analysis.isInTemplate(offset + valueIndex);
          if ((template != null) &&
              (template.getBeginIndex() == offset + valueIndex) &&
              (Page.areSameTitle(templateName, template.getTemplateName()))) {
            formatOk = true;
            valueIndex = template.getEndIndex() - offset;
            formatIndex = tmpIndex + 2;
          }
 
        // Formatting characters
        } else if ((formatChar == 'd') ||
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.