freemarker.template
Interface TemplateScalarModel

All Superinterfaces:
TemplateModel
All Known Implementing Classes:
FastBoolean, FastScalar, SimpleScalar

public 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.

See Also:
TemplateNumberModel

Method Summary
 java.lang.String getAsString()
          Returns the scalar's value as a String.
 
Methods inherited from interface freemarker.template.TemplateModel
isEmpty
 

Method Detail

getAsString

java.lang.String getAsString()
                             throws TemplateModelException
Returns the scalar's value as a String.

Returns:
the String value of this scalar.
Throws:
TemplateModelException