freemarker.testcase.models
Class SimpleTestMethod

java.lang.Object
  |
  +--freemarker.testcase.models.SimpleTestMethod
All Implemented Interfaces:
TemplateMethodModel, TemplateModel

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

A simple method model used as a test bed.

Version:
$Id: SimpleTestMethod.java,v 1.7 2003/11/08 01:44:26 run2000 Exp $

Constructor Summary
SimpleTestMethod()
          Creates new SimpleTestMethod
 
Method Summary
 TemplateModel exec(java.util.List 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

SimpleTestMethod

public SimpleTestMethod()
Creates new SimpleTestMethod
Method Detail

exec

public TemplateModel exec(java.util.List 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.

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