| freemarker.template.TemplateMethodModel
All known Subclasses: freemarker.ext.xml.NodeListModel, freemarker.testcase.models.SimpleTestMethod, freemarker.testcase.models.TransformMethodWrapper2, freemarker.testcase.models.TransformMethodWrapper1, freemarker.ext.jdom.NodeListModel, freemarker.template.utility.Execute, freemarker.testcase.models.MultiModel2, freemarker.ext.xml.Namespaces,
TemplateMethodModel | public interface TemplateMethodModel extends TemplateModel(Code) | | Objects that act as methods in a template data model must implement this
interface.
Implementions of TemplateMethodModel should be thread-safe.
version: $Id: TemplateMethodModel.java,v 1.11 2003/09/22 23:56:54 revusky Exp $ |
Method Summary | |
public Object | exec(List arguments) Executes a method call. |
exec | public Object exec(List arguments) throws TemplateModelException(Code) | | Executes a method call. All arguments passed to the method call are
treated as
TemplateScalarModel s, and evaluated to Strings
before being passed. If some of the passed arguments is not a scalar,
an exception will occur and the method will not be called.
If your method would like to act on actual data model objects instead
of on their String representations, implement the
TemplateMethodModelEx instead.
Parameters: arguments - a List of String objectscontaining the values of the arguments passed to the method. the TemplateModel produced by the method, or null. |
|
|