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

Quick Search    Search Deep

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

java.lang.Object
  extended byfreemarker.template.WrappingTemplateModel
      extended byfreemarker.template.SimpleSequence
          extended byfreemarker.testcase.models.LegacyList
All Implemented Interfaces:
java.io.Serializable, freemarker.template.TemplateModel, freemarker.template.TemplateSequenceModel

public class LegacyList
extends freemarker.template.SimpleSequence

A little bridge class that subclasses the new SimpleList and still implements the deprecated TemplateListModel


Nested Class Summary
 
Nested classes inherited from class freemarker.template.SimpleSequence
 
Field Summary
private  java.util.Iterator iterator
           
 
Fields inherited from class freemarker.template.SimpleSequence
list
 
Fields inherited from class freemarker.template.WrappingTemplateModel
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
LegacyList()
           
 
Method Summary
 boolean hasNext()
           
 boolean isRewound()
           
 freemarker.template.TemplateModel next()
           
 void rewind()
          Resets the cursor to the beginning of the list.
 
Methods inherited from class freemarker.template.SimpleSequence
add, add, get, size, synchronizedWrapper, toList, toString
 
Methods inherited from class freemarker.template.WrappingTemplateModel
getDefaultObjectWrapper, getObjectWrapper, setDefaultObjectWrapper, setObjectWrapper, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

iterator

private java.util.Iterator iterator
Constructor Detail

LegacyList

public LegacyList()
Method Detail

rewind

public void rewind()
Resets the cursor to the beginning of the list.


isRewound

public boolean isRewound()

hasNext

public boolean hasNext()

next

public freemarker.template.TemplateModel next()
                                       throws freemarker.template.TemplateModelException