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
Nested Classes Modifier and Type Class Description static class
SchemaTemplate.DocumentSchema
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
wrapper
-
-
Constructor Summary
Constructors Constructor Description SchemaTemplate(DocumentObjectWrapper wrapper, SchemaTemplate.DocumentSchema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description freemarker.template.TemplateModel
get(String name)
boolean
isEmpty()
-
Methods inherited from class org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
wrap
-
-
-
-
Constructor Detail
-
SchemaTemplate
public SchemaTemplate(DocumentObjectWrapper wrapper, SchemaTemplate.DocumentSchema schema)
-
-
Method Detail
-
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
-
-