Package io.karatelabs.markup
Class MarkupTemplateContext
java.lang.Object
io.karatelabs.markup.MarkupTemplateContext
- All Implemented Interfaces:
MarkupScope,org.thymeleaf.context.IContext,org.thymeleaf.context.IEngineContext,org.thymeleaf.context.IExpressionContext,org.thymeleaf.context.ITemplateContext
public class MarkupTemplateContext
extends Object
implements org.thymeleaf.context.IEngineContext, MarkupScope
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsVariable(String name) voidevalLocalAsObject(String src) org.thymeleaf.IEngineConfigurationList<org.thymeleaf.model.IProcessableElementTag> List<org.thymeleaf.model.IProcessableElementTag> getElementStackAbove(int contextLevel) org.thymeleaf.expression.IExpressionObjectsorg.thymeleaf.context.IdentifierSequencesorg.thymeleaf.inline.IInlinergetMessage(Class<?> origin, String key, Object[] messageParameters, boolean useAbsent) org.thymeleaf.model.IModelFactoryorg.thymeleaf.engine.TemplateDataorg.thymeleaf.templatemode.TemplateModeList<org.thymeleaf.engine.TemplateData> getVariable(String name) booleanvoidbooleanisVariableLocal(String name) intlevel()MarkupScopeimplementation.voidremoveVariable(String name) voidMarkupScopewrite-side.voidsetElementTag(org.thymeleaf.model.IProcessableElementTag elementTag) voidsetInliner(org.thymeleaf.inline.IInliner inliner) voidsetSelectionTarget(Object selectionTarget) voidsetTemplateData(org.thymeleaf.engine.TemplateData template) voidsetVariable(String name, Object value) voidsetVariables(Map<String, Object> variables)
-
Method Details
-
set
MarkupScopewrite-side. Storesvalueundernamein the per-render underscore map (same store as_.<name> = valuefrom JS). Backscontext.set(name, value).- Specified by:
setin interfaceMarkupScope
-
lookup
MarkupScopeimplementation. Looks upnamein the underscore map first, then the wrapped Thymeleaf scope. Returns the bound non-null value if found, else null. Used bycontext.get(name, default?)(seeMarkupContext.jsGet(java.lang.String)).- Specified by:
lookupin interfaceMarkupScope
-
evalLocalAsObject
-
evalLocal
-
increaseLevel
public void increaseLevel()- Specified by:
increaseLevelin interfaceorg.thymeleaf.context.IEngineContext
-
setVariable
- Specified by:
setVariablein interfaceorg.thymeleaf.context.IEngineContext
-
setVariables
- Specified by:
setVariablesin interfaceorg.thymeleaf.context.IEngineContext
-
removeVariable
- Specified by:
removeVariablein interfaceorg.thymeleaf.context.IEngineContext
-
setTemplateData
public void setTemplateData(org.thymeleaf.engine.TemplateData template) - Specified by:
setTemplateDatain interfaceorg.thymeleaf.context.IEngineContext
-
decreaseLevel
public void decreaseLevel()- Specified by:
decreaseLevelin interfaceorg.thymeleaf.context.IEngineContext
-
containsVariable
- Specified by:
containsVariablein interfaceorg.thymeleaf.context.IContext
-
getVariableNames
- Specified by:
getVariableNamesin interfaceorg.thymeleaf.context.IContext
-
getVariable
- Specified by:
getVariablein interfaceorg.thymeleaf.context.IContext
-
isVariableLocal
- Specified by:
isVariableLocalin interfaceorg.thymeleaf.context.IEngineContext
-
setSelectionTarget
- Specified by:
setSelectionTargetin interfaceorg.thymeleaf.context.IEngineContext
-
setInliner
public void setInliner(org.thymeleaf.inline.IInliner inliner) - Specified by:
setInlinerin interfaceorg.thymeleaf.context.IEngineContext
-
setElementTag
public void setElementTag(org.thymeleaf.model.IProcessableElementTag elementTag) - Specified by:
setElementTagin interfaceorg.thymeleaf.context.IEngineContext
-
getElementStackAbove
- Specified by:
getElementStackAbovein interfaceorg.thymeleaf.context.IEngineContext
-
level
public int level()- Specified by:
levelin interfaceorg.thymeleaf.context.IEngineContext
-
getTemplateData
public org.thymeleaf.engine.TemplateData getTemplateData()- Specified by:
getTemplateDatain interfaceorg.thymeleaf.context.ITemplateContext
-
getTemplateMode
public org.thymeleaf.templatemode.TemplateMode getTemplateMode()- Specified by:
getTemplateModein interfaceorg.thymeleaf.context.ITemplateContext
-
getTemplateStack
- Specified by:
getTemplateStackin interfaceorg.thymeleaf.context.ITemplateContext
-
getElementStack
- Specified by:
getElementStackin interfaceorg.thymeleaf.context.ITemplateContext
-
getTemplateResolutionAttributes
- Specified by:
getTemplateResolutionAttributesin interfaceorg.thymeleaf.context.ITemplateContext
-
getModelFactory
public org.thymeleaf.model.IModelFactory getModelFactory()- Specified by:
getModelFactoryin interfaceorg.thymeleaf.context.ITemplateContext
-
hasSelectionTarget
public boolean hasSelectionTarget()- Specified by:
hasSelectionTargetin interfaceorg.thymeleaf.context.ITemplateContext
-
getSelectionTarget
- Specified by:
getSelectionTargetin interfaceorg.thymeleaf.context.ITemplateContext
-
getInliner
public org.thymeleaf.inline.IInliner getInliner()- Specified by:
getInlinerin interfaceorg.thymeleaf.context.ITemplateContext
-
getMessage
public String getMessage(Class<?> origin, String key, Object[] messageParameters, boolean useAbsent) - Specified by:
getMessagein interfaceorg.thymeleaf.context.ITemplateContext
-
buildLink
- Specified by:
buildLinkin interfaceorg.thymeleaf.context.ITemplateContext
-
getIdentifierSequences
public org.thymeleaf.context.IdentifierSequences getIdentifierSequences()- Specified by:
getIdentifierSequencesin interfaceorg.thymeleaf.context.ITemplateContext
-
getConfiguration
public org.thymeleaf.IEngineConfiguration getConfiguration()- Specified by:
getConfigurationin interfaceorg.thymeleaf.context.IExpressionContext
-
getExpressionObjects
public org.thymeleaf.expression.IExpressionObjects getExpressionObjects()- Specified by:
getExpressionObjectsin interfaceorg.thymeleaf.context.IExpressionContext
-
getLocale
- Specified by:
getLocalein interfaceorg.thymeleaf.context.IContext
-