Interface IElementTagProcessor
- All Superinterfaces:
IElementProcessor
,IProcessor
- All Known Implementing Classes:
AbstractAttributeTagProcessor
,AbstractElementTagProcessor
,AbstractStandardAssertionTagProcessor
,AbstractStandardAttributeModifierTagProcessor
,AbstractStandardConditionalVisibilityTagProcessor
,AbstractStandardDoubleAttributeModifierTagProcessor
,AbstractStandardExpressionAttributeTagProcessor
,AbstractStandardFragmentInsertionTagProcessor
,AbstractStandardMultipleAttributeModifierTagProcessor
,AbstractStandardTargetSelectionTagProcessor
,AbstractStandardTextInlineSettingTagProcessor
,StandardActionTagProcessor
,StandardAltTitleTagProcessor
,StandardAssertTagProcessor
,StandardAttrappendTagProcessor
,StandardAttrprependTagProcessor
,StandardAttrTagProcessor
,StandardBlockTagProcessor
,StandardCaseTagProcessor
,StandardClassappendTagProcessor
,StandardConditionalFixedValueTagProcessor
,StandardDefaultAttributesTagProcessor
,StandardDOMEventAttributeTagProcessor
,StandardEachTagProcessor
,StandardFragmentTagProcessor
,StandardHrefTagProcessor
,StandardIfTagProcessor
,StandardIncludeTagProcessor
,StandardInlineHTMLTagProcessor
,StandardInlineTextualTagProcessor
,StandardInlineXMLTagProcessor
,StandardInsertTagProcessor
,StandardLangXmlLangTagProcessor
,StandardMethodTagProcessor
,StandardNonRemovableAttributeTagProcessor
,StandardObjectTagProcessor
,StandardRefAttributeTagProcessor
,StandardRemovableAttributeTagProcessor
,StandardRemoveTagProcessor
,StandardReplaceTagProcessor
,StandardSrcTagProcessor
,StandardStyleappendTagProcessor
,StandardSwitchTagProcessor
,StandardTextTagProcessor
,StandardUnlessTagProcessor
,StandardUtextTagProcessor
,StandardValueTagProcessor
,StandardWithTagProcessor
,StandardXmlBaseTagProcessor
,StandardXmlLangTagProcessor
,StandardXmlNsTagProcessor
,StandardXmlSpaceTagProcessor
Interface to be implemented by all element tag processors.
This kind of processors, the most common in most scenarios, are executed on the single
open element or standalone element tag that matches their matching configuration
(see IElementProcessor
.
Using the structureHandler
For any actions involving modifications to the tag being processed or the markup structure, processors will
use the IElementTagStructureHandler
objects passed as argument to the
process(ITemplateContext, IProcessableElementTag, IElementTagStructureHandler)
method.
See the documentation for IElementTagStructureHandler
for more info.
Abstract implementations
Two basic abstract implementations of this interface are offered:
AbstractElementTagProcessor
, meant for processors that match element events by their element name (i.e. without looking at any attributes).AbstractAttributeTagProcessor
, meant for processors that match element events by one of their attributes (and optionally also the element name).
- Since:
- 3.0.0
- Author:
- Daniel Fernández
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(ITemplateContext context, IProcessableElementTag tag, IElementTagStructureHandler structureHandler) Execute the processor.Methods inherited from interface org.thymeleaf.processor.element.IElementProcessor
getMatchingAttributeName, getMatchingElementName
Methods inherited from interface org.thymeleaf.processor.IProcessor
getPrecedence, getTemplateMode
-
Method Details
-
process
void process(ITemplateContext context, IProcessableElementTag tag, IElementTagStructureHandler structureHandler) Execute the processor.
The
IProcessableElementTag
object argument is immutable, so all modifications to this object or any instructions to be given to the engine should be done through the specifiedIElementTagStructureHandler
handler.- Parameters:
context
- the execution context.tag
- the event this processor is executing on.structureHandler
- the handler that will centralise modifications and commands to the engine.
-