|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfreemarker.testcase.models.FunctionModel1
public class FunctionModel1
A simple test of the TemplateFunctionModel interface.
Constructor Summary | |
---|---|
FunctionModel1()
|
Method Summary | |
---|---|
void |
callFunction(TemplateWriteableHashModel modelRoot,
java.io.Writer out,
TemplateRuntimeHandler eventHandler,
java.util.List argValues)
Performs a function on the given data model. |
boolean |
isEmpty()
Is the object empty? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FunctionModel1()
Method Detail |
---|
public boolean isEmpty() throws TemplateModelException
TemplateModel
isEmpty
in interface TemplateModel
true
if this object is empty, otherwise false
TemplateModelException
public void callFunction(TemplateWriteableHashModel modelRoot, java.io.Writer out, TemplateRuntimeHandler eventHandler, java.util.List argValues) throws java.io.IOException, TemplateModelException
TemplateFunctionModel
callFunction
in interface TemplateFunctionModel
modelRoot
- the template model root, provides full access to the data modelout
- the Writer to which output should be senteventHandler
- handles any events such as template exceptionsargValues
- a List
of TemplateModel
s
representing the arguments to the function
java.io.IOException
TemplateModelException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |