public class BlobTemplate extends PropertyWrapper implements freemarker.template.TemplateHashModelEx, freemarker.template.AdapterTemplateModel
Modifier and Type | Field and Description |
---|---|
protected Blob |
blob |
protected static String[] |
keys |
wrapper
Constructor and Description |
---|
BlobTemplate(DocumentObjectWrapper wrapper,
Blob blob) |
Modifier and Type | Method and Description |
---|---|
freemarker.template.TemplateModel |
get(String name) |
Object |
getAdaptedObject(Class hint) |
boolean |
isEmpty() |
freemarker.template.TemplateCollectionModel |
keys() |
int |
size() |
freemarker.template.TemplateCollectionModel |
values() |
wrap
public BlobTemplate(DocumentObjectWrapper wrapper, Blob blob)
public Object getAdaptedObject(Class hint)
getAdaptedObject
in interface freemarker.template.AdapterTemplateModel
public freemarker.template.TemplateCollectionModel keys() throws freemarker.template.TemplateModelException
keys
in interface freemarker.template.TemplateHashModelEx
freemarker.template.TemplateModelException
public int size() throws freemarker.template.TemplateModelException
size
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 freemarker.template.TemplateModel get(String name) 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
Copyright © 2016 Nuxeo SA. All rights reserved.