org.thymeleaf.processor.tag
Class AbstractIterationTagProcessor

Object
  extended by org.thymeleaf.processor.tag.AbstractTagProcessor
      extended by org.thymeleaf.processor.tag.AbstractIterationTagProcessor
All Implemented Interfaces:
ITagProcessor

public abstract class AbstractIterationTagProcessor
extends AbstractTagProcessor

Since:
1.0
Author:
Daniel Fernández

Nested Class Summary
protected static class AbstractIterationTagProcessor.IterationSpec
           
static class AbstractIterationTagProcessor.StatusVar
           
 
Field Summary
static String DEFAULT_STATUS_VAR_SUFFIX
           
 
Constructor Summary
AbstractIterationTagProcessor()
           
 
Method Summary
protected abstract  AbstractIterationTagProcessor.IterationSpec getIterationSpec(Arguments arguments, TemplateResolution templateResolution, Document document, Element element)
           
 TagProcessResult process(Arguments arguments, TemplateResolution templateResolution, Document document, Element element)
           Execute this attribute processor.
 
Methods inherited from class org.thymeleaf.processor.tag.AbstractTagProcessor
getMessage, getMessageForProcessor, getMessageForTemplate, getValueProcessorDependencies
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.thymeleaf.processor.tag.ITagProcessor
getTagApplicabilities
 

Field Detail

DEFAULT_STATUS_VAR_SUFFIX

public static String DEFAULT_STATUS_VAR_SUFFIX
Constructor Detail

AbstractIterationTagProcessor

public AbstractIterationTagProcessor()
Method Detail

process

public final TagProcessResult process(Arguments arguments,
                                      TemplateResolution templateResolution,
                                      Document document,
                                      Element element)
Description copied from interface: ITagProcessor

Execute this attribute processor.

This execution logic will receive as parameters the execution argument (an Arguments object), the result of resolving the processed template by the Template Resolver (a TemplateResolution object), the complete DOM node tree of the template being processed (the Document) and the DOM element representing the tag currently being processed (Element object).

Parameters:
arguments - the execution arguments, containing Template Engine configuration and execution context.
templateResolution - the result of resolving the template by the Template Resolvers.
document - the DOM node tree (document) of the template being executed.
element - the DOM element representing the tag currently being processed.
Returns:
a TagProcessResult with the result of the execution.

getIterationSpec

protected abstract AbstractIterationTagProcessor.IterationSpec getIterationSpec(Arguments arguments,
                                                                                TemplateResolution templateResolution,
                                                                                Document document,
                                                                                Element element)


Copyright © 2011 The THYMELEAF team. All Rights Reserved.