freemarker.template
Interface TemplateScalarModel
- All Superinterfaces:
- TemplateModel
- All Known Implementing Classes:
- ContentEntry, NodeListModel, ObjectModelBase, ScalarModel, SimpleNumberModel, FastScalar, SimpleScalar, FastBoolean, BooleanModel2, TransformHashWrapper, BooleanModel3, StringNumberModel, MultiModel1, BooleanModel4, MultiModel2, BooleanModel5, MultiModel3, ExceptionModel, BooleanModel1
- public interface TemplateScalarModel
- extends TemplateModel
Scalar values in a template data model must implement this interface.
The detail messages of any TemplateModelException
s
thrown will be included as HTML comments in the output.
- Version:
- $Id: TemplateScalarModel.java,v 1.6 2003/11/03 03:33:32 run2000 Exp $
- See Also:
TemplateNumberModel
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.