freemarker.testcase.models
Class MultiModel1
java.lang.Object
freemarker.testcase.models.MultiModel1
- TemplateHashModel, TemplateModel, TemplateScalarModel, TemplateSequenceModel
public class MultiModel1
extends java.lang.Object
Testcase to see how FreeMarker deals with multiple Template models.
$Id: MultiModel1.java,v 1.17 2004/01/06 17:06:44 szegedia Exp $
MultiModel1
public MultiModel1()
Creates new MultiModel1
get
public TemplateModel get(String key)
Gets a TemplateModel from the hash.
- get in interface TemplateHashModel
key
- the name by which the TemplateModel
is identified in the template.
- the TemplateModel referred to by the key,
or null if not found.
getAsString
public String getAsString()
Returns the scalar's value as a String.
- getAsString in interface TemplateScalarModel
- the String value of this scalar.