| freemarker.template.TemplateScalarModel
All known Subclasses: freemarker.ext.xml.NodeListModel, freemarker.template.GeneralPurposeNothing, freemarker.ext.dom.ElementModel, freemarker.core.StringLiteral, freemarker.testcase.models.ExceptionModel, freemarker.ext.dom.PINodeModel, freemarker.ext.beans.StringModel, freemarker.testcase.models.NewTestModel, freemarker.testcase.models.MultiModel1, freemarker.ext.jython.JythonModel, freemarker.template.SimpleScalar, freemarker.ext.dom.AttributeNodeModel, freemarker.ext.dom.CharacterDataNodeModel, freemarker.testcase.models.TransformHashWrapper, freemarker.ext.jdom.NodeListModel, freemarker.template.LocalizedString, freemarker.testcase.models.MultiModel3, freemarker.testcase.models.MultiModel2,
TemplateScalarModel | public interface TemplateScalarModel extends TemplateModel(Code) | | String values in a template data model must implement this interface.
(Actually, the name of this interface should be
TemplateStringModel . The bad name was inherited from the
ancient times, when there was only 1 kind of scalars in FreeMarker.)
version: $Id: TemplateScalarModel.java,v 1.18 2004/11/28 12:58:33 ddekany Exp $ |
Method Summary | |
public String | getAsString() Returns the string representation of this model. |
EMPTY_STRING | public TemplateModel EMPTY_STRING(Code) | | A constant value to use as the empty string.
|
getAsString | public String getAsString() throws TemplateModelException(Code) | | Returns the string representation of this model. In general, avoid
returning null. In compatibility mode the engine will convert
null into empty string, however in normal mode it will
throw an exception if you return null from this method.
|
|
|