TemplateModel
CollectionModel
, JythonHashModel
, JythonModel
, JythonNumberModel
, JythonSequenceModel
, LocalizedString
, MapModel
, NodeListModel
, NodeListModel
, ResourceBundleLocalizedString
, RhinoFunctionModel
, RhinoScriptableModel
, SimpleScalar
, StringModel
public interface TemplateScalarModel extends TemplateModel
TemplateStringModel
. The misnomer is inherited from the
old times, when this was the only single-value type in FreeMarker.)Modifier and Type | Field | Description |
---|---|---|
static TemplateModel |
EMPTY_STRING |
A constant value to use as the empty string.
|
NOTHING
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getAsString() |
Returns the string representation of this model.
|
static final TemplateModel EMPTY_STRING
java.lang.String getAsString() throws TemplateModelException
null
, as that will cause exception.
(In classic-compatible mode the engine will convert null
into empty string, though.)TemplateModelException