Class SchemaTemplate
java.lang.Object
org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
org.nuxeo.ecm.platform.rendering.fm.adapters.SchemaTemplate
- All Implemented Interfaces:
freemarker.template.TemplateHashModel
,freemarker.template.TemplateModel
public class SchemaTemplate
extends PropertyWrapper
implements freemarker.template.TemplateHashModel
A template for a document's schema, that can still take advantage of the document's prefetched values.
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
wrapper
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
ConstructorDescriptionSchemaTemplate
(DocumentObjectWrapper wrapper, SchemaTemplate.DocumentSchema schema) -
Method Summary
Methods inherited from class org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
wrap
-
Constructor Details
-
SchemaTemplate
-
-
Method Details
-
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
-