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

Quick Search    Search Deep

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

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

public class MultiModel4
extends java.lang.Object
implements freemarker.template.TemplateSequenceModel, freemarker.template.TemplateHashModel

Testcase to see how FreeMarker deals with multiple Template models.

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

Field Summary
private  LegacyList m_cList
           
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
MultiModel4()
           
 
Method Summary
 freemarker.template.TemplateModel get(int i)
          Retrieves the i-th template model in this sequence.
 freemarker.template.TemplateModel get(java.lang.String key)
          Gets a TemplateModel from the hash.
 boolean isEmpty()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_cList

private LegacyList m_cList
Constructor Detail

MultiModel4

public MultiModel4()
Method Detail

get

public freemarker.template.TemplateModel get(int i)
                                      throws freemarker.template.TemplateModelException
Description copied from interface: freemarker.template.TemplateSequenceModel
Retrieves the i-th template model in this sequence.

Specified by:
get in interface freemarker.template.TemplateSequenceModel

get

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

Specified by:
get in interface freemarker.template.TemplateHashModel

size

public int size()
Specified by:
size in interface freemarker.template.TemplateSequenceModel

isEmpty

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