fmpp.models
Class WritableSequence
java.lang.Object
fmpp.models.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.
Fields inherited from interface freemarker.template.TemplateModel |
NOTHING |
Method Summary |
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 |
WritableSequence
public WritableSequence()
WritableSequence
public WritableSequence(java.util.List list)
- Parameters:
list
- must contain only TemplateModel
-s.
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()