Class ListPropertyTemplate
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
-
- org.nuxeo.ecm.platform.rendering.fm.adapters.ListPropertyTemplate
-
- All Implemented Interfaces:
freemarker.template.AdapterTemplateModel
,freemarker.template.TemplateCollectionModel
,freemarker.template.TemplateModel
,freemarker.template.TemplateSequenceModel
public class ListPropertyTemplate extends PropertyWrapper implements freemarker.template.TemplateCollectionModel, freemarker.template.TemplateSequenceModel, freemarker.template.AdapterTemplateModel
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected ListProperty
property
-
Fields inherited from class org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
wrapper
-
-
Constructor Summary
Constructors Constructor Description ListPropertyTemplate(DocumentObjectWrapper wrapper, ListProperty property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description freemarker.template.TemplateModel
get(int arg0)
Object
getAdaptedObject(Class hint)
freemarker.template.TemplateModelIterator
iterator()
int
size()
-
Methods inherited from class org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
wrap
-
-
-
-
Field Detail
-
property
protected final ListProperty property
-
-
Constructor Detail
-
ListPropertyTemplate
public ListPropertyTemplate(DocumentObjectWrapper wrapper, ListProperty property)
-
-
Method Detail
-
getAdaptedObject
public Object getAdaptedObject(Class hint)
- Specified by:
getAdaptedObject
in interfacefreemarker.template.AdapterTemplateModel
-
iterator
public freemarker.template.TemplateModelIterator iterator() throws freemarker.template.TemplateModelException
- Specified by:
iterator
in interfacefreemarker.template.TemplateCollectionModel
- Throws:
freemarker.template.TemplateModelException
-
get
public freemarker.template.TemplateModel get(int arg0) throws freemarker.template.TemplateModelException
- Specified by:
get
in interfacefreemarker.template.TemplateSequenceModel
- Throws:
freemarker.template.TemplateModelException
-
size
public int size() throws freemarker.template.TemplateModelException
- Specified by:
size
in interfacefreemarker.template.TemplateSequenceModel
- Throws:
freemarker.template.TemplateModelException
-
-