freemarker.template
Interface TemplateScalarModel
- All Known Implementing Classes:
- SimpleScalar
- public abstract interface TemplateScalarModel
- extends TemplateModel
Scalar values in a template data model must implement this interface.
The detail messages of any TemplateModelExceptions
thrown will be included as HTML comments in the output.
Method Summary |
java.lang.String |
getAsString()
Returns the scalar's value as a String. |
getAsString
public java.lang.String getAsString()
throws TemplateModelException
- Returns the scalar's value as a String.
- Returns:
- the String value of this scalar.