Class BroadleafThymeleaf3Context
java.lang.Object
org.broadleafcommerce.presentation.thymeleaf3.model.BroadleafThymeleaf3Context
- All Implemented Interfaces:
org.broadleafcommerce.presentation.model.BroadleafTemplateContext
public class BroadleafThymeleaf3Context
extends Object
implements org.broadleafcommerce.presentation.model.BroadleafTemplateContext
Concrete implementation of utilities that can be done during execution of a processor.
The underlying encapsulated object is an
ITemplateContext- Author:
- Jay Aisenbrey (cja769)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.thymeleaf.context.ITemplateContextprotected org.thymeleaf.processor.element.IElementModelStructureHandlerprotected org.thymeleaf.processor.element.IElementTagStructureHandler -
Constructor Summary
ConstructorsConstructorDescriptionBroadleafThymeleaf3Context(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.processor.element.IElementModelStructureHandler modelHandler) BroadleafThymeleaf3Context(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.processor.element.IElementTagStructureHandler tagHandler) -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.presentation.model.BroadleafTemplateModelorg.broadleafcommerce.presentation.model.BroadleafTemplateNonVoidElementcreateNonVoidElement(String tagName) org.broadleafcommerce.presentation.model.BroadleafTemplateNonVoidElementcreateNonVoidElement(String tagName, Map<String, String> attributes, boolean useDoubleQuotes) org.broadleafcommerce.presentation.model.BroadleafTemplateElementcreateStandaloneElement(String tagName) org.broadleafcommerce.presentation.model.BroadleafTemplateElementcreateStandaloneElement(String tagName, Map<String, String> attributes, boolean useDoubleQuotes) org.broadleafcommerce.presentation.model.BroadleafTemplateElementcreateTextElement(String text) List<org.broadleafcommerce.presentation.model.BroadleafAssignation>getAssignationSequence(String value, boolean allowParametersWithoutValue) org.broadleafcommerce.presentation.model.BroadleafBindStatusgetBindStatus(String attributeValue) jakarta.servlet.http.HttpServletRequestorg.thymeleaf.context.ITemplateContextgetVariable(String name) <T> TparseExpression(String value) voidsetNodeLocalVariable(org.broadleafcommerce.presentation.model.BroadleafTemplateElement element, String key, Object value) voidsetNodeLocalVariables(org.broadleafcommerce.presentation.model.BroadleafTemplateElement element, Map<String, Object> variableMap)
-
Field Details
-
context
protected org.thymeleaf.context.ITemplateContext context -
modelHandler
protected org.thymeleaf.processor.element.IElementModelStructureHandler modelHandler -
tagHandler
protected org.thymeleaf.processor.element.IElementTagStructureHandler tagHandler
-
-
Constructor Details
-
BroadleafThymeleaf3Context
public BroadleafThymeleaf3Context(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.processor.element.IElementModelStructureHandler modelHandler) -
BroadleafThymeleaf3Context
public BroadleafThymeleaf3Context(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.processor.element.IElementTagStructureHandler tagHandler)
-
-
Method Details
-
parseExpression
- Specified by:
parseExpressionin interfaceorg.broadleafcommerce.presentation.model.BroadleafTemplateContext
-
getAssignationSequence
public List<org.broadleafcommerce.presentation.model.BroadleafAssignation> getAssignationSequence(String value, boolean allowParametersWithoutValue) - Specified by:
getAssignationSequencein interfaceorg.broadleafcommerce.presentation.model.BroadleafTemplateContext
-
getThymeleafContext
public org.thymeleaf.context.ITemplateContext getThymeleafContext() -
createNonVoidElement
public org.broadleafcommerce.presentation.model.BroadleafTemplateNonVoidElement createNonVoidElement(String tagName, Map<String, String> attributes, boolean useDoubleQuotes) - Specified by:
createNonVoidElementin interfaceorg.broadleafcommerce.presentation.model.BroadleafTemplateContext
-
createNonVoidElement
public org.broadleafcommerce.presentation.model.BroadleafTemplateNonVoidElement createNonVoidElement(String tagName) - Specified by:
createNonVoidElementin interfaceorg.broadleafcommerce.presentation.model.BroadleafTemplateContext
-
createStandaloneElement
public org.broadleafcommerce.presentation.model.BroadleafTemplateElement createStandaloneElement(String tagName, Map<String, String> attributes, boolean useDoubleQuotes) - Specified by:
createStandaloneElementin interfaceorg.broadleafcommerce.presentation.model.BroadleafTemplateContext
-
createStandaloneElement
public org.broadleafcommerce.presentation.model.BroadleafTemplateElement createStandaloneElement(String tagName) - Specified by:
createStandaloneElementin interfaceorg.broadleafcommerce.presentation.model.BroadleafTemplateContext
-
createTextElement
public org.broadleafcommerce.presentation.model.BroadleafTemplateElement createTextElement(String text) - Specified by:
createTextElementin interfaceorg.broadleafcommerce.presentation.model.BroadleafTemplateContext
-
createModel
public org.broadleafcommerce.presentation.model.BroadleafTemplateModel createModel()- Specified by:
createModelin interfaceorg.broadleafcommerce.presentation.model.BroadleafTemplateContext
-
setNodeLocalVariable
public void setNodeLocalVariable(org.broadleafcommerce.presentation.model.BroadleafTemplateElement element, String key, Object value) - Specified by:
setNodeLocalVariablein interfaceorg.broadleafcommerce.presentation.model.BroadleafTemplateContext
-
setNodeLocalVariables
public void setNodeLocalVariables(org.broadleafcommerce.presentation.model.BroadleafTemplateElement element, Map<String, Object> variableMap) - Specified by:
setNodeLocalVariablesin interfaceorg.broadleafcommerce.presentation.model.BroadleafTemplateContext
-
getVariable
- Specified by:
getVariablein interfaceorg.broadleafcommerce.presentation.model.BroadleafTemplateContext
-
getBindStatus
public org.broadleafcommerce.presentation.model.BroadleafBindStatus getBindStatus(String attributeValue) - Specified by:
getBindStatusin interfaceorg.broadleafcommerce.presentation.model.BroadleafTemplateContext
-
getRequest
public jakarta.servlet.http.HttpServletRequest getRequest()- Specified by:
getRequestin interfaceorg.broadleafcommerce.presentation.model.BroadleafTemplateContext
-