Alternate constructor that creates a template group from the group defined by a readable source.
Alternate constructor that creates a template group from the group defined by a readable source. Useful for reading template group files.
the source from which to read
an error listener to receive errors
Alternate constructor that creates a template group from the group defined by a readable source.
Alternate constructor that creates a template group from the group defined by a readable source. Useful for reading template group files.
the source from which to read
Alternate constructor that creates a template group manager for templates that are to be loaded as resources via the class loader.
Alternate constructor that creates a template group manager for templates that are to be loaded as resources via the class loader.
the group's name
Alternate constructor that creates a template group manager for templates that are at, or below, the specified directory.
Alternate constructor that creates a template group manager for templates that are at, or below, the specified directory.
the group's name
the directory containing the templates
the actual, underlying String Template library group object.
Create a new template and associate it with the specified name within the group.
Create a new template and associate it with the specified name within the group. If the group already contains a template with the same name, this new template replaces the existing template.
the template name
the template's contents (i.e., the template string)
the template object
Get the current error listener, which is notified when errors occur.
Get the current error listener, which is notified when errors occur.
the error listener
Set the current error listener, which is notified when errors occur.
Set the current error listener, which is notified when errors occur.
the error listener
Determine whether this group contains a template with a given name.
Determine whether this group contains a template with a given name.
the template name to check
true
if a template exists by that name, false
if not
Returns a copy of the underlying (wrapped) StringTemplate API object.
Returns a copy of the underlying (wrapped) StringTemplate API object.
a copy of the underlying StringTemplateGroup object.
Create an empty template within this group.
Create an empty template within this group. This method corresponds
to the underlying API's createStringTemplate()
method.
the empty template
Get the refresh interval, which defines how often templates are refreshed from disk.
Get the refresh interval, which defines how often templates are refreshed from disk. An interval of 0 means there's no caching, and templates are loaded every time they are retrieved; any other value represents how long, in milliseconds, to cache templates in memory before checking disk again to see if they've changed.
the refresh interval
Set the refresh interval, which defines how often templates are refreshed from disk.
Set the refresh interval, which defines how often templates are refreshed from disk. An interval of 0 means there's no caching, and templates are loaded every time they are retrieved; any other value represents how long, in milliseconds, to cache templates in memory before checking disk again to see if they've changed.
the new refresh interval
Register an attribute renderer for a specific type.
Register an attribute renderer for a specific type. The
attribute renderer object must implement the AttributeRenderer
trait for the specific type.
the attribute renderer to use for values of type T
Equivalent to the String Template library's getInstanceOf()
method,
this method returns the template with the specified name, returning
the template if found, or None
if not.
Equivalent to the String Template library's getInstanceOf()
method,
this method returns the template with the specified name, returning
the template if found, or None
if not.
the template name
the template. Throws an exception if the template isn't found.
A Scala wrapper for the String Template library's
StringTemplateGroup
class.