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

Quick Search    Search Deep

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

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

public class MultiModel3
extends java.lang.Object
implements freemarker.template.TemplateScalarModel, freemarker.template.TemplateHashModel

Testcase to see how FreeMarker deals with multiple Template models.

Version:
$Id: MultiModel3.java,v 1.14 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
MultiModel3()
           
 
Method Summary
 freemarker.template.TemplateModel get(java.lang.String key)
          Gets a TemplateModel from the hash.
 java.lang.String getAsString()
          Returns the scalar's value as a String.
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiModel3

public MultiModel3()
Method Detail

getAsString

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

Specified by:
getAsString in interface freemarker.template.TemplateScalarModel

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface freemarker.template.TemplateHashModel

get

public freemarker.template.TemplateModel get(java.lang.String key)
Gets a TemplateModel from the hash.

Specified by:
get in interface freemarker.template.TemplateHashModel