Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

freemarker.testcase
Class TemplateTestCase.TestBoolean  view TemplateTestCase.TestBoolean download TemplateTestCase.TestBoolean.java

java.lang.Object
  extended byfreemarker.testcase.TemplateTestCase.TestBoolean
All Implemented Interfaces:
freemarker.template.TemplateBooleanModel, freemarker.template.TemplateModel, freemarker.template.TemplateScalarModel
Enclosing class:
TemplateTestCase

static class TemplateTestCase.TestBoolean
extends java.lang.Object
implements freemarker.template.TemplateBooleanModel, freemarker.template.TemplateScalarModel


Field Summary
 
Fields inherited from interface freemarker.template.TemplateBooleanModel
FALSE, TRUE
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Fields inherited from interface freemarker.template.TemplateScalarModel
EMPTY_STRING
 
Constructor Summary
(package private) TemplateTestCase.TestBoolean()
           
 
Method Summary
 boolean getAsBoolean()
           
 java.lang.String getAsString()
          Returns the string representation of this model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateTestCase.TestBoolean

TemplateTestCase.TestBoolean()
Method Detail

getAsBoolean

public boolean getAsBoolean()
Specified by:
getAsBoolean in interface freemarker.template.TemplateBooleanModel

getAsString

public java.lang.String getAsString()
Description copied from interface: freemarker.template.TemplateScalarModel
Returns the string representation of this model. In general, avoid returning null. In compatibility mode the engine will convert null into empty string, however in normal mode it will throw an exception if you return null from this method.

Specified by:
getAsString in interface freemarker.template.TemplateScalarModel