Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.rendering.fm.adapters
Class ListPropertyTemplate

java.lang.Object
  extended by org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
      extended by 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 inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
ListPropertyTemplate(DocumentObjectWrapper wrapper, ListProperty property)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListPropertyTemplate

public ListPropertyTemplate(DocumentObjectWrapper wrapper,
                            ListProperty property)
Method Detail

getAdaptedObject

public Object getAdaptedObject(Class hint)
Specified by:
getAdaptedObject in interface freemarker.template.AdapterTemplateModel

iterator

public freemarker.template.TemplateModelIterator iterator()
                                                   throws freemarker.template.TemplateModelException
Specified by:
iterator in interface freemarker.template.TemplateCollectionModel
Throws:
freemarker.template.TemplateModelException

get

public freemarker.template.TemplateModel get(int arg0)
                                      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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.