freemarker.template
Interface TemplateModel

All Known Subinterfaces:
TemplateFunctionModel, TemplateHashModel, TemplateIndexedModel, TemplateIteratorModel, TemplateListModel, TemplateListModel2, TemplateMethodModel, TemplateMethodModel2, TemplateModelRoot, TemplateNumberModel, TemplateObjectModel, TemplateScalarModel, TemplateTransformModel, TemplateTransformModel2, TemplateWriteableHashModel, TemplateWriteableIndexedModel, TemplateWriteableIteratorModel
All Known Implementing Classes:
FastBoolean, FastHash, FastIndexedIterator, FastIndexedWriteableIterator, FastIterator, FastList, FastListIterator, FastListRange, FastNumber, FastScalar, FunctionModel, LocalModelWrapper, RootModelWrapper, SimpleHash, SimpleList, SimpleNumber, SimpleScalar

public interface TemplateModel

A template's data model must be a tree of objects, each of which implements a subinterface of TemplateModel. The root of the tree must implement TemplateWriteableHashModel.

The detail messages of any TemplateModelExceptions thrown will be included as HTML comments in the output.


Method Summary
 boolean isEmpty()
          Is the object empty?
 

Method Detail

isEmpty

boolean isEmpty()
                throws TemplateModelException
Is the object empty?

Returns:
true if this object is empty, otherwise false
Throws:
TemplateModelException