org.thymeleaf.processor.attr
Class AbstractRemovalAttrProcessor

Object
  extended by org.thymeleaf.processor.attr.AbstractAttrProcessor
      extended by org.thymeleaf.processor.attr.AbstractRemovalAttrProcessor
All Implemented Interfaces:
Comparable<IAttrProcessor>, IAttrProcessor
Direct Known Subclasses:
StandardRemoveAttrProcessor

public abstract class AbstractRemovalAttrProcessor
extends AbstractAttrProcessor

Since:
1.0
Author:
Daniel Fernández

Constructor Summary
AbstractRemovalAttrProcessor()
           
 
Method Summary
protected abstract  String getRemoveAllAttrValue()
           
protected abstract  String getRemoveBodyAttrValue()
           
protected abstract  String getRemoveTagAttrValue()
           
 Set<Class<? extends IValueProcessor>> getValueProcessorDependencies()
           Return this processor's dependencies.
 AttrProcessResult process(Arguments arguments, TemplateResolution templateResolution, Document document, Element element, Attr attribute)
           Execute this attribute processor.
 
Methods inherited from class org.thymeleaf.processor.attr.AbstractAttrProcessor
compareTo, 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.attr.IAttrProcessor
getAttributeApplicabilities, getPrecedence
 

Constructor Detail

AbstractRemovalAttrProcessor

public AbstractRemovalAttrProcessor()
Method Detail

getValueProcessorDependencies

public final Set<Class<? extends IValueProcessor>> getValueProcessorDependencies()
Description copied from interface: IAttrProcessor

Return this processor's dependencies.

The dependencies are the set of value processors (IValueProcessor objects) this attribute processor needs for being executed. This has to be declared for dialect validation purposes at configuration time.

Specified by:
getValueProcessorDependencies in interface IAttrProcessor
Overrides:
getValueProcessorDependencies in class AbstractAttrProcessor
Returns:
the set of value processor dependencies.

process

public final AttrProcessResult process(Arguments arguments,
                                       TemplateResolution templateResolution,
                                       Document document,
                                       Element element,
                                       Attr attribute)
Description copied from interface: IAttrProcessor

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), the tag in which the currently executed attribute was found (the Element) and the attribute itself (Attr).

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 tag containing the currently executed attribute.
attribute - the attribute being executed.
Returns:
an AttrProcessResult with the result of the execution.

getRemoveAllAttrValue

protected abstract String getRemoveAllAttrValue()

getRemoveBodyAttrValue

protected abstract String getRemoveBodyAttrValue()

getRemoveTagAttrValue

protected abstract String getRemoveTagAttrValue()


Copyright © 2011 The THYMELEAF team. All Rights Reserved.