public class TemplateEngineContext extends Object implements org.thymeleaf.context.IContext
The context for template instance rendering.
Set the context for render a template instance, like Locale, parameters, etc.
| Constructor and Description | 
|---|
TemplateEngineContext(TemplateInstanceBean t)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
containsVariable(String name) | 
Locale | 
getLocale() | 
TemplateInstanceBean | 
getTemplateInstance()
The original template instance. 
 | 
Object | 
getVariable(String name) | 
Set<String> | 
getVariableNames() | 
public TemplateEngineContext(TemplateInstanceBean t)
Constructor.
public Locale getLocale()
getLocale in interface org.thymeleaf.context.IContextpublic boolean containsVariable(String name)
containsVariable in interface org.thymeleaf.context.IContextpublic Set<String> getVariableNames()
getVariableNames in interface org.thymeleaf.context.IContextpublic Object getVariable(String name)
getVariable in interface org.thymeleaf.context.IContextpublic TemplateInstanceBean getTemplateInstance()
The original template instance.
Copyright © 2021 Albirar. All rights reserved.