Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

freemarker.testcase.models
Class MultiModel2  view MultiModel2 download MultiModel2.java

java.lang.Object
  extended byfreemarker.testcase.models.MultiModel2
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateModel, freemarker.template.TemplateScalarModel

public class MultiModel2
extends java.lang.Object
implements freemarker.template.TemplateScalarModel, freemarker.template.TemplateMethodModel

Testcase to see how FreeMarker deals with multiple Template models.

Version:
$Id: MultiModel2.java,v 1.15 2004/01/06 17:06:44 szegedia Exp $

Field Summary
 
Fields inherited from interface freemarker.template.TemplateScalarModel
EMPTY_STRING
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
MultiModel2()
           
 
Method Summary
 java.lang.Object exec(java.util.List arguments)
          Executes a method call.
 java.lang.String getAsString()
          Returns the scalar's value as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiModel2

public MultiModel2()
Method Detail

getAsString

public java.lang.String getAsString()
Returns the scalar's value as a String.

Specified by:
getAsString in interface freemarker.template.TemplateScalarModel

exec

public java.lang.Object exec(java.util.List arguments)
Executes a method call.

Specified by:
exec in interface freemarker.template.TemplateMethodModel