Package org.thymeleaf.standard.processor
Class StandardDefaultAttributesTagProcessor
- Object
-
- org.thymeleaf.processor.AbstractProcessor
-
- org.thymeleaf.standard.processor.StandardDefaultAttributesTagProcessor
-
- All Implemented Interfaces:
IElementProcessor
,IElementTagProcessor
,IProcessor
public final class StandardDefaultAttributesTagProcessor extends AbstractProcessor implements IElementTagProcessor
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Field Summary
Fields Modifier and Type Field Description static int
PRECEDENCE
-
Constructor Summary
Constructors Constructor Description StandardDefaultAttributesTagProcessor(TemplateMode templateMode, String dialectPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatchingAttributeName
getMatchingAttributeName()
Returns the attribute name that would make this processor match (if any).MatchingElementName
getMatchingElementName()
Returns the element name that would make this processor match (if any).void
process(ITemplateContext context, IProcessableElementTag tag, IElementTagStructureHandler structureHandler)
Execute the processor.-
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
getPrecedence, getTemplateMode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.thymeleaf.processor.IProcessor
getPrecedence, getTemplateMode
-
-
-
-
Field Detail
-
PRECEDENCE
public static final int PRECEDENCE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StandardDefaultAttributesTagProcessor
public StandardDefaultAttributesTagProcessor(TemplateMode templateMode, String dialectPrefix)
-
-
Method Detail
-
getMatchingElementName
public final MatchingElementName getMatchingElementName()
Description copied from interface:IElementProcessor
Returns the element name that would make this processor match (if any).
- Specified by:
getMatchingElementName
in interfaceIElementProcessor
- Returns:
- the element name.
-
getMatchingAttributeName
public final MatchingAttributeName getMatchingAttributeName()
Description copied from interface:IElementProcessor
Returns the attribute name that would make this processor match (if any).
- Specified by:
getMatchingAttributeName
in interfaceIElementProcessor
- Returns:
- the attribute name.
-
process
public void process(ITemplateContext context, IProcessableElementTag tag, IElementTagStructureHandler structureHandler)
Description copied from interface:IElementTagProcessor
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.- Specified by:
process
in interfaceIElementTagProcessor
- 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.
-
-