Uses of Interface
org.klojang.templates.Stringifier
Packages that use Stringifier
-
Uses of Stringifier in org.klojang.templates
Fields in org.klojang.templates declared as StringifierModifier and TypeFieldDescriptionstatic final Stringifier
Stringifier.DEFAULT
A stringifier that stringifiesnull
to an empty string and any other value by callingtoString()
on it.static final Stringifier
StringifierRegistry.ESCAPE_ATTR
To be used for escaping HTML attributes.static final Stringifier
StringifierRegistry.ESCAPE_HTML
Applies HTML escaping.static final Stringifier
StringifierRegistry.ESCAPE_JS
Applies Javascript escaping.static final Stringifier
StringifierRegistry.ESCAPE_JS_ATTR
To be used for escaping HTML attributes containing Javascript, likeonclick
.static final Stringifier
StringifierRegistry.ESCAPE_PATH
To be used for escaping URL path segments.static final Stringifier
StringifierRegistry.ESCAPE_QUERY_PARAM
To be used for escaping URL query parameter.Methods in org.klojang.templates with parameters of type StringifierModifier and TypeMethodDescriptionStringifierRegistry.Builder.forName
(String name, Stringifier stringifier) Assigns the specified stringifier to all variables with the specified name.StringifierRegistry.Builder.forTemplate
(Template root, String nestedTemplateName, Stringifier stringifier, String... varNames) Assigns the specified stringifier to one or more variables in a nested template.StringifierRegistry.Builder.forType
(Class<?> type, Stringifier stringifier) Assigns the specified stringifier to the specified type.StringifierRegistry.Builder.forVarGroup
(String groupName, Stringifier stringifier) Assigns the specified stringifier to the specified variable group.StringifierRegistry.Builder.register
(Template template, Stringifier stringifier, String... varNames) Assigns the specified stringifier to one or more variables in the specified template.StringifierRegistry.Builder.setDefaultStringifier
(Stringifier stringifier) Lets you specify an alternative default stringifier, replacingDEFAULT
.