freemarker.testcase.models
Class BooleanModel3

java.lang.Object
  extended by freemarker.testcase.models.BooleanModel3
All Implemented Interfaces:
TemplateModel, TemplateScalarModel

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

Model for testing booleans in FM-Classic.

Version:
$Id: BooleanModel3.java 1003 2004-10-16 14:54:58Z run2000 $
Author:
Nicholas Cull
See Also:
BooleanModel1, BooleanModel2, BooleanModel4, BooleanModel5

Constructor Summary
BooleanModel3()
          Creates new BooleanModel3.
 
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

BooleanModel3

public BooleanModel3()
Creates new BooleanModel3.

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.
Throws:
TemplateModelException

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
Throws:
TemplateModelException