freemarker.template
Interface TemplateModel

All Known Subinterfaces:
TemplateHashModel, TemplateIndexedModel, TemplateIteratorModel, TemplateListModel, TemplateListModel2, TemplateMethodModel, TemplateMethodModel2, TemplateModelRoot, TemplateNumberModel, TemplateObjectModel, TemplateScalarModel, TemplateTransformModel, TemplateTransformModel2
All Known Implementing Classes:
FunctionModel

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 TemplateModelRoot.

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

Version:
$Id: TemplateModel.java,v 1.5 2003/11/03 03:33:32 run2000 Exp $

Method Summary
 boolean isEmpty()
          Is the object empty?
 

Method Detail

isEmpty

public boolean isEmpty()
                throws TemplateModelException
Is the object empty?
Returns:
true if this object is empty, otherwise false