public final class TemplateContext<TObject>
extends java.lang.Object
Represents a model object interface for a template engine.
Modifier and Type | Method and Description |
---|---|
Storage |
getGlobal()
Returns global storage of the host document.
|
Storage |
getLocal()
Returns local storage of the current template context.
|
TObject |
getObject()
Returns the model object.
|
Output |
getOutput()
Returns collection of output elements of the host document.
|
<TSubModel> |
subModel(TSubModel subModel)
Creates a child template context.
|
public final <TSubModel> TemplateContext<TSubModel> subModel(TSubModel subModel)
Creates a child template context.
subModel
- Child model object.public final TObject getObject()
Returns the model object.
Read-only Object
.
public final Output getOutput()
Returns collection of output elements of the host document.
Read-only Output
(getOutput()
).
public final Storage getLocal()
Returns local storage of the current template context.
Read-only Storage
.