Class PropertyIteratorTemplate
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
-
- org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyIteratorTemplate
-
- All Implemented Interfaces:
freemarker.template.AdapterTemplateModel
,freemarker.template.TemplateModel
,freemarker.template.TemplateModelIterator
public class PropertyIteratorTemplate extends PropertyWrapper implements freemarker.template.TemplateModelIterator, freemarker.template.AdapterTemplateModel
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected Iterator<Property>
iterator
-
Fields inherited from class org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
wrapper
-
-
Constructor Summary
Constructors Constructor Description PropertyIteratorTemplate(DocumentObjectWrapper wrapper, Iterator<Property> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAdaptedObject(Class hint)
boolean
hasNext()
freemarker.template.TemplateModel
next()
-
Methods inherited from class org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
wrap
-
-
-
-
Constructor Detail
-
PropertyIteratorTemplate
public PropertyIteratorTemplate(DocumentObjectWrapper wrapper, Iterator<Property> iterator)
-
-
Method Detail
-
getAdaptedObject
public Object getAdaptedObject(Class hint)
- Specified by:
getAdaptedObject
in interfacefreemarker.template.AdapterTemplateModel
-
hasNext
public boolean hasNext() throws freemarker.template.TemplateModelException
- Specified by:
hasNext
in interfacefreemarker.template.TemplateModelIterator
- Throws:
freemarker.template.TemplateModelException
-
next
public freemarker.template.TemplateModel next() throws freemarker.template.TemplateModelException
- Specified by:
next
in interfacefreemarker.template.TemplateModelIterator
- Throws:
freemarker.template.TemplateModelException
-
-