freemarker.testcase.models
Class BooleanModel5

java.lang.Object
  |
  +--freemarker.testcase.models.BooleanModel5
All Implemented Interfaces:
TemplateModel, TemplateScalarModel

public final class BooleanModel5
extends java.lang.Object
implements TemplateScalarModel

Model for testing booleans in FM-Classic.

Version:
$Id: BooleanModel5.java,v 1.9 2003/11/28 01:17:07 run2000 Exp $
Author:
Nicholas Cull
See Also:
BooleanModel1, BooleanModel2, BooleanModel3, BooleanModel4

Constructor Summary
BooleanModel5()
          Creates new BooleanModel5.
 
Method Summary
 java.lang.String getAsString()
          Returns the scalar's value as a String.
 boolean isEmpty()
          Is the model empty?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanModel5

public BooleanModel5()
Creates new BooleanModel5.
Method Detail

getAsString

public java.lang.String getAsString()
                             throws TemplateModelException
Returns the scalar's value as a String.
Specified by:
getAsString in interface TemplateScalarModel
Returns:
the String value of this scalar.

isEmpty

public boolean isEmpty()
                throws TemplateModelException
Is the model empty?
Specified by:
isEmpty in interface TemplateModel
Returns:
false to indicate the model is not empty