|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.testcase.models.MultiModel2
Testcase to see how FM-Classic deals with multiple Template models.
MultiModel1
,
MultiModel3
,
MultiModel4
,
MultiModel5
Constructor Summary | |
MultiModel2()
Creates new MultiModel2. |
Method Summary | |
TemplateModel |
exec(java.util.List arguments)
Executes a method call. |
java.lang.String |
getAsString()
Returns the scalar's value as a String . |
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 |
public MultiModel2()
Method Detail |
public java.lang.String getAsString() throws TemplateModelException
String
.getAsString
in interface TemplateScalarModel
String
value of this scalar.public boolean isEmpty() throws TemplateModelException
isEmpty
in interface TemplateModel
false
to indicate the model is not emptypublic TemplateModel exec(java.util.List arguments) throws TemplateModelException
exec
in interface TemplateMethodModel
arguments
- a List
of String
objects
containing the values of the arguments passed to the method.TemplateModel
produced by the method,
or null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |