freemarker.testcase.models

Class MultiModel2

Implemented Interfaces:
TemplateMethodModel, TemplateModel, TemplateScalarModel

public class MultiModel2
extends java.lang.Object
implements TemplateScalarModel, TemplateMethodModel

Testcase to see how FreeMarker deals with multiple Template models.
Version:
$Id: MultiModel2.java,v 1.15 2004/01/06 17:06:44 szegedia Exp $

Fields inherited from interface freemarker.template.TemplateModel

NOTHING

Fields inherited from interface freemarker.template.TemplateScalarModel

EMPTY_STRING

Method Summary

Object
exec(List arguments)
Executes a method call.
String
getAsString()
Returns the scalar's value as a String.

Method Details

exec

public Object exec(List arguments)
Executes a method call.
Specified by:
exec in interface TemplateMethodModel
Parameters:
arguments - a List of String objects containing the values of the arguments passed to the method.
Returns:
the TemplateModel produced by the method, or null.

getAsString

public String getAsString()
Returns the scalar's value as a String.
Specified by:
getAsString in interface TemplateScalarModel
Returns:
the String value of this scalar.