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

Quick Search    Search Deep

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

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

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

Testcase to see how FreeMarker deals with multiple Template models.

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

Field Summary
private  LegacyList m_cList
           
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
MultiModel5()
          Creates new MultiModel5
 
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

MultiModel5

public MultiModel5()
Creates new MultiModel5

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

isEmpty

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

size

public int size()
Specified by:
size 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