freemarker.testcase.models

Class BooleanHash1

Implemented Interfaces:
TemplateHashModel, TemplateModel

public class BooleanHash1
extends java.lang.Object
implements TemplateHashModel

Tests the impact that the isEmpty() has on template hash models.
Version:
$Id: BooleanHash1.java,v 1.15 2004/01/06 17:06:44 szegedia Exp $
Author:
Nicholas Cull

Fields inherited from interface freemarker.template.TemplateModel

NOTHING

Method Summary

TemplateModel
get(String key)
Gets a TemplateModel from the hash.
boolean
isEmpty()

Method Details

get

public TemplateModel get(String key)
Gets a TemplateModel from the hash.
Specified by:
get in interface TemplateHashModel
Parameters:
key - the name by which the TemplateModel is identified in the template.
Returns:
the TemplateModel referred to by the key, or null if not found.

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface TemplateHashModel
Returns:
true if this object is empty.