Class BlobTemplate
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
-
- org.nuxeo.ecm.platform.rendering.fm.adapters.BlobTemplate
-
- All Implemented Interfaces:
freemarker.template.AdapterTemplateModel
,freemarker.template.TemplateHashModel
,freemarker.template.TemplateHashModelEx
,freemarker.template.TemplateModel
public class BlobTemplate extends PropertyWrapper implements freemarker.template.TemplateHashModelEx, freemarker.template.AdapterTemplateModel
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description BlobTemplate(DocumentObjectWrapper wrapper, Blob blob)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description freemarker.template.TemplateModel
get(String name)
Object
getAdaptedObject(Class hint)
boolean
isEmpty()
freemarker.template.TemplateCollectionModel
keys()
int
size()
freemarker.template.TemplateCollectionModel
values()
-
Methods inherited from class org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
wrap
-
-
-
-
Constructor Detail
-
BlobTemplate
public BlobTemplate(DocumentObjectWrapper wrapper, Blob blob)
-
-
Method Detail
-
getAdaptedObject
public Object getAdaptedObject(Class hint)
- Specified by:
getAdaptedObject
in interfacefreemarker.template.AdapterTemplateModel
-
keys
public freemarker.template.TemplateCollectionModel keys() throws freemarker.template.TemplateModelException
- Specified by:
keys
in interfacefreemarker.template.TemplateHashModelEx
- Throws:
freemarker.template.TemplateModelException
-
size
public int size() throws freemarker.template.TemplateModelException
- Specified by:
size
in interfacefreemarker.template.TemplateHashModelEx
- Throws:
freemarker.template.TemplateModelException
-
values
public freemarker.template.TemplateCollectionModel values() throws freemarker.template.TemplateModelException
- Specified by:
values
in interfacefreemarker.template.TemplateHashModelEx
- Throws:
freemarker.template.TemplateModelException
-
get
public freemarker.template.TemplateModel get(String name) throws freemarker.template.TemplateModelException
- Specified by:
get
in interfacefreemarker.template.TemplateHashModel
- Throws:
freemarker.template.TemplateModelException
-
isEmpty
public boolean isEmpty() throws freemarker.template.TemplateModelException
- Specified by:
isEmpty
in interfacefreemarker.template.TemplateHashModel
- Throws:
freemarker.template.TemplateModelException
-
-