Class MyBatisParamTagProcessor
java.lang.Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.element.AbstractElementTagProcessor
org.thymeleaf.processor.element.AbstractAttributeTagProcessor
org.mybatis.scripting.thymeleaf.processor.MyBatisParamTagProcessor
- All Implemented Interfaces:
org.thymeleaf.processor.element.IElementProcessor
,org.thymeleaf.processor.element.IElementTagProcessor
,org.thymeleaf.processor.IProcessor
public class MyBatisParamTagProcessor
extends org.thymeleaf.processor.element.AbstractAttributeTagProcessor
The processor class for handling the
This processor render bind variable(default:
mb:p
tag. This processor render bind variable(default:
#{…}
) expression that can parsed data access library and
register an iteration object to the bind variables.- Version:
- 1.0.0
- Author:
- Kazuki Shimizu
-
Constructor Summary
ConstructorDescriptionMyBatisParamTagProcessor
(org.thymeleaf.templatemode.TemplateMode templateMode, String prefix) Constructor that can be specified the template mode and dialect prefix. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doProcess
(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IProcessableElementTag tag, org.thymeleaf.engine.AttributeName attributeName, String attributeValue, org.thymeleaf.processor.element.IElementTagStructureHandler structureHandler) void
setBindVariableRender
(UnaryOperator<String> bindVariableRender) Set a custom bind variable render function.
By default, render #{...} format.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
-
MyBatisParamTagProcessor
public MyBatisParamTagProcessor(org.thymeleaf.templatemode.TemplateMode templateMode, String prefix) Constructor that can be specified the template mode and dialect prefix.- Parameters:
templateMode
- A target template modeprefix
- A target dialect prefix
-
-
Method Details
-
setBindVariableRender
Set a custom bind variable render function.
By default, render #{...} format.- Parameters:
bindVariableRender
- a custom bind variable render function- Since:
- 1.0.2
-
doProcess
protected void doProcess(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IProcessableElementTag tag, org.thymeleaf.engine.AttributeName attributeName, String attributeValue, org.thymeleaf.processor.element.IElementTagStructureHandler structureHandler) - Specified by:
doProcess
in classorg.thymeleaf.processor.element.AbstractAttributeTagProcessor
-