public class DocumentTemplate extends Object implements freemarker.template.TemplateHashModelEx, freemarker.template.AdapterTemplateModel
Constructor and Description |
---|
DocumentTemplate(freemarker.template.ObjectWrapper wrapper,
DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
freemarker.template.TemplateModel |
get(String key) |
Object |
getAdaptedObject(Class hint) |
DocumentModel |
getDocument() |
Collection<String> |
getRawKeys() |
Collection<Object> |
getRawValues() |
CoreSession |
getSession() |
boolean |
isEmpty()
A doc model is never empty.
|
freemarker.template.TemplateCollectionModel |
keys() |
int |
size() |
freemarker.template.TemplateCollectionModel |
values() |
public DocumentTemplate(freemarker.template.ObjectWrapper wrapper, DocumentModel doc)
public Object getAdaptedObject(Class hint)
getAdaptedObject
in interface freemarker.template.AdapterTemplateModel
public DocumentModel getDocument()
public freemarker.template.TemplateModel get(String key) throws freemarker.template.TemplateModelException
get
in interface freemarker.template.TemplateHashModel
freemarker.template.TemplateModelException
public CoreSession getSession()
public boolean isEmpty() throws freemarker.template.TemplateModelException
isEmpty
in interface freemarker.template.TemplateHashModel
freemarker.template.TemplateModelException
public Collection<String> getRawKeys()
public freemarker.template.TemplateCollectionModel keys() throws freemarker.template.TemplateModelException
keys
in interface freemarker.template.TemplateHashModelEx
freemarker.template.TemplateModelException
public Collection<Object> getRawValues() throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
public freemarker.template.TemplateCollectionModel values() throws freemarker.template.TemplateModelException
values
in interface freemarker.template.TemplateHashModelEx
freemarker.template.TemplateModelException
public int size() throws freemarker.template.TemplateModelException
size
in interface freemarker.template.TemplateHashModelEx
freemarker.template.TemplateModelException
Copyright © 2015 Nuxeo SA. All rights reserved.