Package org.thymeleaf.standard.processor
Class AbstractStandardAttributeModifierTagProcessor
Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.element.AbstractElementTagProcessor
org.thymeleaf.processor.element.AbstractAttributeTagProcessor
org.thymeleaf.standard.processor.AbstractStandardExpressionAttributeTagProcessor
org.thymeleaf.standard.processor.AbstractStandardAttributeModifierTagProcessor
- All Implemented Interfaces:
IAttributeDefinitionsAware
,IElementProcessor
,IElementTagProcessor
,IProcessor
- Direct Known Subclasses:
StandardActionTagProcessor
,StandardHrefTagProcessor
,StandardMethodTagProcessor
,StandardNonRemovableAttributeTagProcessor
,StandardRemovableAttributeTagProcessor
,StandardSrcTagProcessor
,StandardValueTagProcessor
,StandardXmlBaseTagProcessor
,StandardXmlLangTagProcessor
,StandardXmlSpaceTagProcessor
public abstract class AbstractStandardAttributeModifierTagProcessor
extends AbstractStandardExpressionAttributeTagProcessor
implements IAttributeDefinitionsAware
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractStandardAttributeModifierTagProcessor
(TemplateMode templateMode, String dialectPrefix, String attrName, int precedence, boolean removeIfEmpty) Build a new instance of this tag processor.protected
AbstractStandardAttributeModifierTagProcessor
(TemplateMode templateMode, String dialectPrefix, String attrName, int precedence, boolean removeIfEmpty, boolean restrictedExpressionExecution) Build a new instance of this tag processor.protected
AbstractStandardAttributeModifierTagProcessor
(TemplateMode templateMode, String dialectPrefix, String attrName, int precedence, boolean removeIfEmpty, StandardExpressionExecutionContext expressionExecutionContext) Build a new instance of this tag processor.protected
AbstractStandardAttributeModifierTagProcessor
(TemplateMode templateMode, String dialectPrefix, String attrName, String targetAttrCompleteName, int precedence, boolean removeIfEmpty) Build a new instance of this tag processor.protected
AbstractStandardAttributeModifierTagProcessor
(TemplateMode templateMode, String dialectPrefix, String attrName, String targetAttrCompleteName, int precedence, boolean removeIfEmpty, boolean restrictedExpressionExecution) Build a new instance of this tag processor.protected
AbstractStandardAttributeModifierTagProcessor
(TemplateMode templateMode, String dialectPrefix, String attrName, String targetAttrCompleteName, int precedence, boolean removeIfEmpty, StandardExpressionExecutionContext expressionExecutionContext) Build a new instance of this tag processor. -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
doProcess
(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, Object expressionResult, IElementTagStructureHandler structureHandler) void
setAttributeDefinitions
(AttributeDefinitions attributeDefinitions) Methods inherited from class org.thymeleaf.standard.processor.AbstractStandardExpressionAttributeTagProcessor
doProcess
Methods inherited from class org.thymeleaf.processor.element.AbstractAttributeTagProcessor
doProcess
Methods inherited from class org.thymeleaf.processor.element.AbstractElementTagProcessor
getDialectPrefix, getMatchingAttributeName, getMatchingElementName, process
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
-
Constructor Details
-
AbstractStandardAttributeModifierTagProcessor
protected AbstractStandardAttributeModifierTagProcessor(TemplateMode templateMode, String dialectPrefix, String attrName, int precedence, boolean removeIfEmpty) Build a new instance of this tag processor.
- Parameters:
templateMode
- the template mode.dialectPrefix
- the dialect prefix.attrName
- the attribute name to be matched.precedence
- the precedence to be applied.removeIfEmpty
- whether the attribute should be removed if the result of executing the expression is empty.
-
AbstractStandardAttributeModifierTagProcessor
protected AbstractStandardAttributeModifierTagProcessor(TemplateMode templateMode, String dialectPrefix, String attrName, int precedence, boolean removeIfEmpty, boolean restrictedExpressionExecution) Build a new instance of this tag processor.
- Parameters:
templateMode
- the template mode.dialectPrefix
- the dialect prefix.attrName
- the attribute name to be matched.precedence
- the precedence to be applied.removeIfEmpty
- whether the attribute should be removed if the result of executing the expression is empty.restrictedExpressionExecution
- whether the expression to be executed (value of the attribute) should be executed in restricted mode (no parameter access) or not (default: false).- Since:
- 3.0.9
-
AbstractStandardAttributeModifierTagProcessor
protected AbstractStandardAttributeModifierTagProcessor(TemplateMode templateMode, String dialectPrefix, String attrName, int precedence, boolean removeIfEmpty, StandardExpressionExecutionContext expressionExecutionContext) Build a new instance of this tag processor.
- Parameters:
templateMode
- the template mode.dialectPrefix
- the dialect prefix.attrName
- the attribute name to be matched.precedence
- the precedence to be applied.removeIfEmpty
- whether the attribute should be removed if the result of executing the expression is empty.expressionExecutionContext
- the expression execution context to be applied.- Since:
- 3.0.10
-
AbstractStandardAttributeModifierTagProcessor
protected AbstractStandardAttributeModifierTagProcessor(TemplateMode templateMode, String dialectPrefix, String attrName, String targetAttrCompleteName, int precedence, boolean removeIfEmpty) Build a new instance of this tag processor.
- Parameters:
templateMode
- the template mode.dialectPrefix
- the dialect prefix.attrName
- the attribute name to be matched.targetAttrCompleteName
- complete name of target attribute.precedence
- the precedence to be applied.removeIfEmpty
- whether the attribute should be removed if the result of executing the expression is empty.
-
AbstractStandardAttributeModifierTagProcessor
protected AbstractStandardAttributeModifierTagProcessor(TemplateMode templateMode, String dialectPrefix, String attrName, String targetAttrCompleteName, int precedence, boolean removeIfEmpty, boolean restrictedExpressionExecution) Build a new instance of this tag processor.
- Parameters:
templateMode
- the template mode.dialectPrefix
- the dialect prefix.attrName
- the attribute name to be matched.targetAttrCompleteName
- complete name of target attribut.precedence
- the precedence to be applied.removeIfEmpty
- whether the attribute should be removed if the result of executing the expression is empty.restrictedExpressionExecution
- whether the expression to be executed (value of the attribute) should be executed in restricted mode (no parameter access) or not (default: false).- Since:
- 3.0.9
-
AbstractStandardAttributeModifierTagProcessor
protected AbstractStandardAttributeModifierTagProcessor(TemplateMode templateMode, String dialectPrefix, String attrName, String targetAttrCompleteName, int precedence, boolean removeIfEmpty, StandardExpressionExecutionContext expressionExecutionContext) Build a new instance of this tag processor.
- Parameters:
templateMode
- the template mode.dialectPrefix
- the dialect prefix.attrName
- the attribute name to be matched.targetAttrCompleteName
- complete name of target attribut.precedence
- the precedence to be applied.removeIfEmpty
- whether the attribute should be removed if the result of executing the expression is empty.expressionExecutionContext
- the expression execution context to be applied.- Since:
- 3.0.10
-
-
Method Details
-
setAttributeDefinitions
- Specified by:
setAttributeDefinitions
in interfaceIAttributeDefinitionsAware
-
doProcess
protected final void doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, Object expressionResult, IElementTagStructureHandler structureHandler) - Specified by:
doProcess
in classAbstractStandardExpressionAttributeTagProcessor
-