org.nuxeo.ecm.platform.rendering.fm.adapters
Class DocumentTemplate
java.lang.Object
org.nuxeo.ecm.platform.rendering.fm.adapters.DocumentTemplate
- All Implemented Interfaces:
- freemarker.template.AdapterTemplateModel, freemarker.template.TemplateHashModel, freemarker.template.TemplateHashModelEx, freemarker.template.TemplateModel
public class DocumentTemplate
- extends java.lang.Object
- implements freemarker.template.TemplateHashModelEx, freemarker.template.AdapterTemplateModel
TODO document template should not be aware of rendering context ?
- Author:
- Bogdan Stefanescu
Fields inherited from interface freemarker.template.TemplateModel |
NOTHING |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentTemplate
public DocumentTemplate(freemarker.template.ObjectWrapper wrapper,
DocumentModel doc)
getAdaptedObject
public java.lang.Object getAdaptedObject(java.lang.Class hint)
- Specified by:
getAdaptedObject
in interface freemarker.template.AdapterTemplateModel
getDocument
public DocumentModel getDocument()
get
public freemarker.template.TemplateModel get(java.lang.String key)
throws freemarker.template.TemplateModelException
- Specified by:
get
in interface freemarker.template.TemplateHashModel
- Throws:
freemarker.template.TemplateModelException
getSession
public CoreSession getSession()
isEmpty
public boolean isEmpty()
throws freemarker.template.TemplateModelException
- A doc model is never empty.
- Specified by:
isEmpty
in interface freemarker.template.TemplateHashModel
- Throws:
freemarker.template.TemplateModelException
getRawKeys
public java.util.Collection<java.lang.String> getRawKeys()
keys
public freemarker.template.TemplateCollectionModel keys()
throws freemarker.template.TemplateModelException
- Specified by:
keys
in interface freemarker.template.TemplateHashModelEx
- Throws:
freemarker.template.TemplateModelException
getRawValues
public java.util.Collection<java.lang.Object> getRawValues()
throws freemarker.template.TemplateModelException
- Throws:
freemarker.template.TemplateModelException
values
public freemarker.template.TemplateCollectionModel values()
throws freemarker.template.TemplateModelException
- Specified by:
values
in interface freemarker.template.TemplateHashModelEx
- Throws:
freemarker.template.TemplateModelException
size
public int size()
throws freemarker.template.TemplateModelException
- Specified by:
size
in interface freemarker.template.TemplateHashModelEx
- Throws:
freemarker.template.TemplateModelException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.