Uses of Interface
org.klojang.templates.RenderSession
Packages that use RenderSession
-
Uses of RenderSession in org.klojang.templates
Methods in org.klojang.templates that return RenderSessionModifier and TypeMethodDescriptionDepopulates and hides the specified nested templates.default RenderSession
Explicitly suppresses the rendering of the specified nested text-only templates.default RenderSession
Enables one or more nested text-only templates.default RenderSession
Enables one or more nested text-only templates.Enables one or more nested text-only templates.RenderSession.enableRecursive
(String... nestedTemplateNames) Recursively enables one or more nested text-only templates.default RenderSession
RenderSession.ifNotSet
(String path, IntFunction<Object> valueGenerator) Sets the specified variable to the value produced by the specifiedIntFunction
if the variable has not already been set.RenderSession.ifNotSet
(String path, VarGroup varGroup, IntFunction<Object> valueGenerator) Sets the specified variable to the value produced by the specifiedIntFunction
if the variable has not already been set.Returns aRenderSession
for the specified nested template.default RenderSession
Populates the template with values extracted from the specified object.Populates the template with values from the specified source data object.Template.newRenderSession()
Returns aRenderSession
that can be used to populate and render thisTemplate
.Template.newRenderSession
(AccessorRegistry accessors) Returns aRenderSession
that can be used to populate and render thisTemplate
.Template.newRenderSession
(AccessorRegistry accessors, StringifierRegistry stringifiers) Returns aRenderSession
that you can use to populate and render thisTemplate
.Template.newRenderSession
(StringifierRegistry stringifiers) Returns aRenderSession
that can be used to populate and render thisTemplate
.default RenderSession
Populates a template nested inside the template managed by thisRenderSession
.default RenderSession
Populates a template nested inside the template managed by thisRenderSession
.RenderSession.populate
(String nestedTemplateName, Object data, String separator, VarGroup varGroup, List<String> names) Populates a template nested inside the template being managed by thisRenderSession
.RenderSession.populateDuo
(String nestedTemplateName, String separator, VarGroup varGroup, List<?> values) Convenience method for populating a nested template that contains exactly two variables.default RenderSession
RenderSession.populateDuo
(String nestedTemplateName, List<?> values) Convenience method for populating a nested template that contains exactly two variables.RenderSession.populateSolo
(String nestedTemplateName, String separator, VarGroup varGroup, List<?> values) Convenience method for populating a nested template that contains exactly one variable.default RenderSession
RenderSession.populateSolo
(String nestedTemplateName, List<?> values) Convenience method for populating a nested template that contains exactly one variable.default RenderSession
Causes the specified nested template to become visible and to be repeated the specified number of times.Causes the specified nested template to become visible and to be repeated the specified number of times.default RenderSession
Sets the specified variable to the specified value.Sets the specified variable to the specified value.default RenderSession
RenderSession.setDelayed
(String varName, Supplier<Object> valueGenerator) Sets the specified variable to the value produced by the specifiedSupplier
.RenderSession.setDelayed
(String varName, VarGroup varGroup, Supplier<Object> valueGenerator) Sets the specified variable to the value produced by the specifiedSupplier
.default RenderSession
RenderSession.setPath
(String path, IntFunction<Object> valueGenerator) Sets the value of the specified variable.RenderSession.setPath
(String path, VarGroup varGroup, boolean force, IntFunction<Object> valueGenerator) Sets the value of the specified variable.Unsets the specified variables.Methods in org.klojang.templates that return types with arguments of type RenderSessionModifier and TypeMethodDescriptionRenderSession.getChildSessions
(String nestedTemplateName) Returns the child sessions that have been created for the specified nested template.