Package fmpp.models

Class WritableSequence

  • All Implemented Interfaces:
    freemarker.template.TemplateModel, freemarker.template.TemplateSequenceModel, java.lang.Cloneable

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

      • Fields inherited from interface freemarker.template.TemplateModel

        NOTHING
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      freemarker.template.TemplateModel get​(int index)  
      java.util.List getList()  
      void setList​(java.util.List list)  
      int size()  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WritableSequence

        public WritableSequence()
      • WritableSequence

        public WritableSequence​(java.util.List list)
        Parameters:
        list - must contain only TemplateModel-s.
    • Method Detail

      • 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 java.util.List getList()
      • setList

        public void setList​(java.util.List list)
      • clone

        public java.lang.Object clone()