freemarker.testcase.models
Class MultiModel3
java.lang.Object
freemarker.testcase.models.MultiModel3
- TemplateHashModel, TemplateModel, TemplateScalarModel
public class MultiModel3
extends java.lang.Object
Testcase to see how FreeMarker deals with multiple Template models.
$Id: MultiModel3.java,v 1.14 2004/01/06 17:06:44 szegedia Exp $
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.