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.
 
Methods inherited from interface freemarker.template.TemplateModel
isEmpty
 

Method Detail

getAsString

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