public class ReplaceTagProcessor extends org.thymeleaf.standard.processor.AbstractStandardFragmentInsertionTagProcessor implements ThymeleafStandardReplaceTagProcessorCaller
StandardReplaceTagProcessor
. Before calling the original doProcess method, it
first calls all known interceptors. The interceptors can customize the process attributes and context to call another
fragment instead. In this case the interceptor has to return 'true' to indicate that the processing is already doneModifier and Type | Field and Description |
---|---|
static String |
ATTR_NAME |
static int |
PRECEDENCE |
Modifier | Constructor and Description |
---|---|
protected |
ReplaceTagProcessor(org.thymeleaf.templatemode.TemplateMode templateMode,
String dialectPrefix,
Collection<ThymeleafReplaceInterceptor> interceptors) |
Modifier and Type | Method and Description |
---|---|
void |
callStandardDoProcess(org.thymeleaf.context.ITemplateContext context,
org.thymeleaf.model.IProcessableElementTag tag,
org.thymeleaf.engine.AttributeName attributeName,
String attributeValue,
org.thymeleaf.processor.element.IElementTagStructureHandler structureHandler)
this method is for the interceptors to be able to do their own kind of processing call with customized attributes
or context
|
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) |
doProcess
getDialectPrefix, getMatchingAttributeName, getMatchingElementName, process
getPrecedence, getTemplateMode
public static final int PRECEDENCE
public static final String ATTR_NAME
protected ReplaceTagProcessor(org.thymeleaf.templatemode.TemplateMode templateMode, String dialectPrefix, Collection<ThymeleafReplaceInterceptor> interceptors)
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)
doProcess
in class org.thymeleaf.standard.processor.AbstractStandardFragmentInsertionTagProcessor
public void callStandardDoProcess(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IProcessableElementTag tag, org.thymeleaf.engine.AttributeName attributeName, String attributeValue, org.thymeleaf.processor.element.IElementTagStructureHandler structureHandler)
callStandardDoProcess
in interface ThymeleafStandardReplaceTagProcessorCaller
Copyright © 2011–2021 aiticon GmbH. All rights reserved.