org.thymeleaf.processor.tag
Class AbstractFragmentTagProcessor

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

public abstract class AbstractFragmentTagProcessor
extends AbstractTagProcessor

Since:
1.1
Author:
Daniel Fernández

Nested Class Summary
protected static class AbstractFragmentTagProcessor.AbstractFragmentSpec
           
protected static class AbstractFragmentTagProcessor.CompleteTemplateFragmentSpec
           
protected static class AbstractFragmentTagProcessor.NamedFragmentSpec
           
protected static class AbstractFragmentTagProcessor.XPathFragmentSpec
           
 
Constructor Summary
AbstractFragmentTagProcessor()
           
 
Method Summary
protected abstract  AbstractFragmentTagProcessor.AbstractFragmentSpec getFragmentSpec(Arguments arguments, TemplateResolution templateResolution, Document document, Element element)
           
protected abstract  boolean getSubstituteInclusionNode(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

AbstractFragmentTagProcessor

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

getSubstituteInclusionNode

protected abstract boolean getSubstituteInclusionNode(Arguments arguments,
                                                      TemplateResolution templateResolution,
                                                      Document document,
                                                      Element element)

getFragmentSpec

protected abstract AbstractFragmentTagProcessor.AbstractFragmentSpec getFragmentSpec(Arguments arguments,
                                                                                     TemplateResolution templateResolution,
                                                                                     Document document,
                                                                                     Element element)


Copyright © 2012 The THYMELEAF team. All Rights Reserved.