Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.rendering.fm.adapters
Class SchemaTemplate

java.lang.Object
  extended by org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
      extended by 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
static class SchemaTemplate.DocumentSchema
           
 
Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
SchemaTemplate(DocumentObjectWrapper wrapper, SchemaTemplate.DocumentSchema schema)
           
 
Method Summary
 freemarker.template.TemplateModel get(String name)
           
 boolean isEmpty()
           
 
Methods inherited from class org.nuxeo.ecm.platform.rendering.fm.adapters.PropertyWrapper
wrap
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface freemarker.template.TemplateHashModel
Throws:
freemarker.template.TemplateModelException

isEmpty

public boolean isEmpty()
                throws freemarker.template.TemplateModelException
Specified by:
isEmpty in interface freemarker.template.TemplateHashModel
Throws:
freemarker.template.TemplateModelException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.