freemarker.template
Interface TemplateScalarModel
- All Superinterfaces:
- TemplateModel
- All Known Subinterfaces:
- TemplateNumberModel
- All Known Implementing Classes:
- SimpleScalar, freemarker.ext.beans.BeanModelBase, NodeListModel
- public interface TemplateScalarModel
- extends TemplateModel
Scalar values in a template data model must implement this interface.
- Version:
- $Id: TemplateScalarModel.java,v 1.6 2002/04/16 21:15:10 revusky Exp $
Method Summary |
java.lang.String |
getAsString(java.util.Locale locale)
Since 2.0 final, this method takes a locale
as an argument. |
getAsString
public java.lang.String getAsString(java.util.Locale locale)
throws TemplateModelException
- Since 2.0 final, this method takes a locale
as an argument. The simple, default implementation
of this interface, SimpleScalar, does not
use the locale parameter. Custom implementations
may or may not use the locale, depending on
whether localization is necessary.