Package fmpp.models

Class WritableSequence

java.lang.Object
fmpp.models.WritableSequence
All Implemented Interfaces:
freemarker.template.TemplateModel, freemarker.template.TemplateSequenceModel, Cloneable

public class WritableSequence extends Object implements freemarker.template.TemplateSequenceModel
Sequence variable that can be changed during template execution with the proper method variables.
  • Constructor Details

    • WritableSequence

      public WritableSequence()
    • WritableSequence

      public WritableSequence(List list)
      Parameters:
      list - must contain only TemplateModel-s.
  • Method Details

    • get

      public freemarker.template.TemplateModel get(int index) throws freemarker.template.TemplateModelException
      Specified by:
      get in interface freemarker.template.TemplateSequenceModel
      Throws:
      freemarker.template.TemplateModelException
    • size

      public int size() throws freemarker.template.TemplateModelException
      Specified by:
      size in interface freemarker.template.TemplateSequenceModel
      Throws:
      freemarker.template.TemplateModelException
    • getList

      public List getList()
    • setList

      public void setList(List list)
    • clone

      public Object clone()