public interface Template extends Serializable
Filler
. Template fillers can also case
groups of values, by providing iterations of fillings for processing block
tags. Note that templates are parsed upon initialization, so that later
casting will be as quick as possible.
Templates can be loaded from objects that implement TemplateSource
.
By default, ClassLoaderTemplateSource
is used.
RichTemplate
Modifier and Type | Method and Description |
---|---|
void |
cast(Filler filler,
Appendable out) |
ExternalHandler |
getExternalHandler() |
Formatter |
getFormatter() |
String[] |
getRequiredTags() |
void |
setExternalHandler(ExternalHandler externalHandler) |
void |
setFormatter(Formatter formatter) |
void |
softCast(Filler filler,
Appendable out) |
Iterator<Object> |
streamCast(Filler filler) |
void |
transform(Filler filler) |
void setExternalHandler(ExternalHandler externalHandler)
ExternalHandler getExternalHandler()
void setFormatter(Formatter formatter)
Formatter getFormatter()
void cast(Filler filler, Appendable out) throws CastException
CastException
void softCast(Filler filler, Appendable out)
void transform(Filler filler) throws ParseException, TemplateSourceException
String[] getRequiredTags()
Copyright © 2009-2015 Three Crickets LLC.