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:
ArrayModel, ArrayWrapper, AsNumber, AsString, BeanWrapper, CollectionModel, CollectionSize, CollectionWrapper, CompressLines, CompressWhitespace, ContentEntry, ContentList, DateFormat, EnumerationMethodWrapper, EnumerationModel, EnumerationWrapper, EnumWrapper, Execute, ExtendedHash, ExtendedIterator, ExtendedList, FastBoolean, FastHash, FastIndexedIterator, FastIndexedWriteableIterator, FastIterator, FastList, FastListIterator, FastListRange, FastNumber, FastScalar, FilterList, FilterTransform, FreeMarkerToHtml, FunctionModel, HashKeys, HashValues, HtmlEscape, HttpRequestHashModel, HttpRequestParametersHashModel, HttpSessionHashModel, IndexedPropertyWrapper, IsEmpty, IsHash, IsIndexed, IsList, IsMethod, IsNumber, IsScalar, IsTransform, IterableWrapper, IteratorMethodWrapper, IteratorModel, IteratorWrapper, JavaToHtml, Join, JspContextModel, LambdaMethod, LegacyCompress, ListIteratorWrapper, ListModel, ListWrapper, LiveMapList, LocalModelWrapper, MapList, MapModel, MapTransform, MapWrapper, Match, MessageFormat, MethodModel, Methods, MethodWrapper, NodeListIterator, NodeListModel, NormalizeNewlines, NumberFormat, NumberModel, NumberWrapper, ObjectModel, ObjectModelBase, Perl5Substitute, Perl5Translate, Pipeline, PropertiesWrapper, ReduceList, ReduceTransform, RemoveBlankLines, ResourceBundleModel, ResourceBundleWrapper, RootMapModel, RootModelWrapper, ScalarModel, ServletContextHashModel, SimpleHash, SimpleList, SimpleNumber, SimpleNumberModel, SimpleScalar, Split, StaticClassWrapper, StaticEnumWrapper, StaticMethodWrapper, StaticModel, StaticModels, Substitute, TabItem, TransformPipeline, Transforms, Translate, XmlEscape

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.

Version:
$Id: TemplateModel.java 1101 2013-04-01 04:17:32Z run2000 $

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