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.AdapterTemplateModel
public freemarker.template.TemplateModel get(String key) throws freemarker.template.TemplateModelException
get
in interface freemarker.template.TemplateHashModel
freemarker.template.TemplateModelException
public boolean isEmpty() throws freemarker.template.TemplateModelException
isEmpty
in interface freemarker.template.TemplateHashModel
freemarker.template.TemplateModelException
public freemarker.template.TemplateCollectionModel keys() throws freemarker.template.TemplateModelException
keys
in interface freemarker.template.TemplateHashModelEx
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.