org.thymeleaf.processor.tag
Class AbstractSelectionTargetTagProcessor

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

public abstract class AbstractSelectionTargetTagProcessor
extends AbstractTagProcessor

Since:
1.0
Author:
Daniel Fernández

Constructor Summary
AbstractSelectionTargetTagProcessor()
           
 
Method Summary
protected  Map<String,Object> getAdditionalLocalVariables(Arguments arguments, TemplateResolution templateResolution, Document document, Element element)
           
protected abstract  Object getNewSelectionTarget(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
 
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
 

Constructor Detail

AbstractSelectionTargetTagProcessor

public AbstractSelectionTargetTagProcessor()
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.

getAdditionalLocalVariables

protected Map<String,Object> getAdditionalLocalVariables(Arguments arguments,
                                                         TemplateResolution templateResolution,
                                                         Document document,
                                                         Element element)

getNewSelectionTarget

protected abstract Object getNewSelectionTarget(Arguments arguments,
                                                TemplateResolution templateResolution,
                                                Document document,
                                                Element element)


Copyright © 2012 The THYMELEAF team. All Rights Reserved.