public class DocumentModelAdapter extends Object implements freemarker.template.TemplateHashModelEx, freemarker.template.AdapterTemplateModel
| Constructor and Description |
|---|
DocumentModelAdapter(DocumentModel doc) |
DocumentModelAdapter(DocumentModel doc,
freemarker.template.ObjectWrapper wrapper) |
| Modifier and Type | Method and Description |
|---|---|
freemarker.template.TemplateModel |
get(String key) |
Object |
getAdaptedObject(Class hint) |
boolean |
isEmpty()
a doc model is never empty
|
freemarker.template.TemplateCollectionModel |
keys() |
int |
size() |
freemarker.template.TemplateCollectionModel |
values() |
public DocumentModelAdapter(DocumentModel doc, freemarker.template.ObjectWrapper wrapper)
public DocumentModelAdapter(DocumentModel doc)
public Object getAdaptedObject(Class hint)
getAdaptedObject in interface freemarker.template.AdapterTemplateModelpublic freemarker.template.TemplateModel get(String key) throws freemarker.template.TemplateModelException
get in interface freemarker.template.TemplateHashModelfreemarker.template.TemplateModelExceptionpublic boolean isEmpty()
throws freemarker.template.TemplateModelException
isEmpty in interface freemarker.template.TemplateHashModelfreemarker.template.TemplateModelExceptionpublic freemarker.template.TemplateCollectionModel keys()
throws freemarker.template.TemplateModelException
keys in interface freemarker.template.TemplateHashModelExfreemarker.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 © 2013 Nuxeo SA. All Rights Reserved.