freemarker.template
Interface TemplateScalarModel

All Superinterfaces:
TemplateModel
All Known Implementing Classes:
ArrayModel, BooleanModel1, BooleanModel2, BooleanModel3, BooleanModel4, BooleanModel5, CollectionModel, ContentEntry, EnumerationModel, ExceptionModel, FastBoolean, FastScalar, IteratorModel, ListModel, MapModel, MultiModel1, MultiModel2, MultiModel3, NodeListModel, NumberModel, ObjectModel, ObjectModelBase, ResourceBundleModel, ScalarModel, SimpleNumberModel, SimpleScalar, StringNumberModel, TransformHashWrapper

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,v 1.1.1.1 2004/10/16 14:55:03 run2000 Exp $
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