org.thymeleaf.processor.attr
Class AbstractAttributeModifierAttrProcessor
Object
org.thymeleaf.processor.attr.AbstractAttrProcessor
org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor
- All Implemented Interfaces:
- Comparable<IAttrProcessor>, IAttrProcessor
- Direct Known Subclasses:
- AbstractSingleAttributeModifierAttrProcessor, AbstractStandardAttributeModifierAttrProcessor, AbstractStandardSingleValueMultipleAttributeModifierAttrProcessor
public abstract class AbstractAttributeModifierAttrProcessor
- extends AbstractAttrProcessor
- Since:
- 1.0
- Author:
- Daniel Fernández
Method Summary |
protected abstract AbstractAttributeModifierAttrProcessor.ModificationType |
getModificationType(Arguments arguments,
TemplateResolution templateResolution,
Document document,
Element element,
Attr attribute,
String attributeName,
String attributeValue,
String newAttributeName)
|
protected abstract Map<String,String> |
getNewAttributeValues(Arguments arguments,
TemplateResolution templateResolution,
Document document,
Element element,
Attr attribute,
String attributeName,
String attributeValue)
|
AttrProcessResult |
process(Arguments arguments,
TemplateResolution templateResolution,
Document document,
Element element,
Attr attribute)
Execute this attribute processor. |
protected abstract boolean |
removeAttributeIfEmpty(Arguments arguments,
TemplateResolution templateResolution,
Document document,
Element element,
Attr attribute,
String attributeName,
String attributeValue,
String newAttributeName)
|
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAttributeModifierAttrProcessor
public AbstractAttributeModifierAttrProcessor()
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.
getNewAttributeValues
protected abstract Map<String,String> getNewAttributeValues(Arguments arguments,
TemplateResolution templateResolution,
Document document,
Element element,
Attr attribute,
String attributeName,
String attributeValue)
getModificationType
protected abstract AbstractAttributeModifierAttrProcessor.ModificationType getModificationType(Arguments arguments,
TemplateResolution templateResolution,
Document document,
Element element,
Attr attribute,
String attributeName,
String attributeValue,
String newAttributeName)
removeAttributeIfEmpty
protected abstract boolean removeAttributeIfEmpty(Arguments arguments,
TemplateResolution templateResolution,
Document document,
Element element,
Attr attribute,
String attributeName,
String attributeValue,
String newAttributeName)
Copyright © 2012 The THYMELEAF team. All Rights Reserved.