Class DecorateProcessor
- java.lang.Object
-
- org.thymeleaf.processor.AbstractProcessor
-
- org.thymeleaf.processor.element.AbstractElementModelProcessor
-
- org.thymeleaf.processor.element.AbstractAttributeModelProcessor
-
- nz.net.ultraq.thymeleaf.layoutdialect.decorators.DecorateProcessor
-
- All Implemented Interfaces:
IElementModelProcessor
,IElementProcessor
,IProcessor
public class DecorateProcessor extends AbstractAttributeModelProcessor
Specifies the name of the template to decorate using the current template.- Author:
- zhanhb, Emanuel Rabina
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROCESSOR_NAME
static int
PROCESSOR_PRECEDENCE
-
Constructor Summary
Constructors Modifier Constructor Description DecorateProcessor(TemplateMode templateMode, String dialectPrefix, SortingStrategy sortingStrategy, boolean autoHeadMerging)
Constructor, configure this processor to work on the 'decorate' attribute and to use the given sorting strategy.protected
DecorateProcessor(TemplateMode templateMode, String dialectPrefix, SortingStrategy sortingStrategy, boolean autoHeadMerging, String attributeName)
Constructor, configurable processor name so that I could support the deprecatedlayout:decorator
alias.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doProcess(ITemplateContext context, IModel model, AttributeName attributeName, String attributeValue, IElementModelStructureHandler structureHandler)
Locates the template to decorate and, once decorated, inserts it into the processing chain.-
Methods inherited from class org.thymeleaf.processor.element.AbstractAttributeModelProcessor
doProcess
-
Methods inherited from class org.thymeleaf.processor.element.AbstractElementModelProcessor
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
-
-
-
-
Field Detail
-
PROCESSOR_NAME
public static final String PROCESSOR_NAME
- See Also:
- Constant Field Values
-
PROCESSOR_PRECEDENCE
public static final int PROCESSOR_PRECEDENCE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DecorateProcessor
public DecorateProcessor(TemplateMode templateMode, String dialectPrefix, SortingStrategy sortingStrategy, boolean autoHeadMerging)
Constructor, configure this processor to work on the 'decorate' attribute and to use the given sorting strategy.- Parameters:
templateMode
-dialectPrefix
-sortingStrategy
-autoHeadMerging
-
-
DecorateProcessor
protected DecorateProcessor(TemplateMode templateMode, String dialectPrefix, SortingStrategy sortingStrategy, boolean autoHeadMerging, String attributeName)
Constructor, configurable processor name so that I could support the deprecatedlayout:decorator
alias.- Parameters:
templateMode
-dialectPrefix
-sortingStrategy
-autoHeadMerging
-attributeName
-
-
-
Method Detail
-
doProcess
protected void doProcess(ITemplateContext context, IModel model, AttributeName attributeName, String attributeValue, IElementModelStructureHandler structureHandler)
Locates the template to decorate and, once decorated, inserts it into the processing chain.- Specified by:
doProcess
in classAbstractAttributeModelProcessor
- Parameters:
context
-model
-attributeName
-attributeValue
-structureHandler
-
-
-