public class DocumentTemplate extends Object implements freemarker.template.TemplateHashModelEx, freemarker.template.AdapterTemplateModel
| Modifier and Type | Field and Description | 
|---|---|
protected DocumentModel | 
doc  | 
protected freemarker.template.ObjectWrapper | 
wrapper  | 
| 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()  | 
protected final freemarker.template.ObjectWrapper wrapper
protected final DocumentModel doc
public DocumentTemplate(freemarker.template.ObjectWrapper wrapper, DocumentModel doc)
public Object getAdaptedObject(Class hint)
getAdaptedObject in interface freemarker.template.AdapterTemplateModelpublic DocumentModel getDocument()
public freemarker.template.TemplateModel get(String key) throws freemarker.template.TemplateModelException
get in interface freemarker.template.TemplateHashModelfreemarker.template.TemplateModelExceptionpublic CoreSession getSession()
public boolean isEmpty() throws freemarker.template.TemplateModelException
isEmpty in interface freemarker.template.TemplateHashModelfreemarker.template.TemplateModelExceptionpublic Collection<String> getRawKeys()
public freemarker.template.TemplateCollectionModel keys() throws freemarker.template.TemplateModelException
keys in interface freemarker.template.TemplateHashModelExfreemarker.template.TemplateModelExceptionpublic Collection<Object> getRawValues() throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelExceptionpublic freemarker.template.TemplateCollectionModel values() throws freemarker.template.TemplateModelException
values in interface freemarker.template.TemplateHashModelExfreemarker.template.TemplateModelExceptionpublic int size() throws freemarker.template.TemplateModelException
size in interface freemarker.template.TemplateHashModelExfreemarker.template.TemplateModelExceptionCopyright © 2019 Nuxeo. All rights reserved.