freemarker.testcase.models
Class TransformMethodWrapper1

java.lang.Object
  extended by freemarker.testcase.models.TransformMethodWrapper1
All Implemented Interfaces:
TemplateMethodModel, TemplateModel

public final class TransformMethodWrapper1
extends java.lang.Object
implements TemplateMethodModel

Simple test of the interaction between MethodModels and TransformModels.

Version:
$Id: TransformMethodWrapper1.java 1003 2004-10-16 14:54:58Z run2000 $
Author:
Nicholas Cull
See Also:
TransformMethodWrapper2

Constructor Summary
TransformMethodWrapper1()
          Creates new TransformMethodWrapper1
 
Method Summary
 TemplateModel exec(java.util.List<java.lang.String> arguments)
          Executes a method call.
 boolean isEmpty()
          Is the model empty?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformMethodWrapper1

public TransformMethodWrapper1()
Creates new TransformMethodWrapper1

Method Detail

exec

public TemplateModel exec(java.util.List<java.lang.String> arguments)
                   throws TemplateModelException
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.
Throws:
TemplateModelException

isEmpty

public boolean isEmpty()
                throws TemplateModelException
Is the model empty?

Specified by:
isEmpty in interface TemplateModel
Returns:
false to indicate the model is not empty
Throws:
TemplateModelException