freemarker.template
Interface TemplateScalarModel

All Superinterfaces:
TemplateModel
All Known Implementing Classes:
ArrayModel, ArrayWrapper, BeanWrapper, CollectionModel, CollectionWrapper, ContentEntry, EnumerationModel, EnumerationWrapper, EnumWrapper, FastBoolean, FastScalar, IterableWrapper, IteratorModel, IteratorWrapper, ListIteratorWrapper, ListModel, ListWrapper, MapModel, MapWrapper, NodeListModel, NumberModel, NumberWrapper, ObjectModel, ObjectModelBase, PropertiesWrapper, ResourceBundleModel, ScalarModel, SimpleNumberModel, SimpleScalar, StaticClassWrapper, StaticEnumWrapper

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.

Version:
$Id: TemplateScalarModel.java 1101 2013-04-01 04:17:32Z run2000 $
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