freemarker.testcase.models
Class NewTestModel
java.lang.Object
freemarker.testcase.models.NewTestModel
- TemplateModel, TemplateScalarModel
public class NewTestModel
extends java.lang.Object
Testcase to see how FreeMarker's ?new built-in deals with constructors.
$Id: NewTestModel.java,v 1.4 2003/01/12 23:40:25 revusky Exp $
String | getAsString() - Returns the string representation of this model.
|
NewTestModel
public NewTestModel()
NewTestModel
public NewTestModel(Object o1,
java.io.Serializable o2)
NewTestModel
public NewTestModel(String str)
NewTestModel
public NewTestModel(long i)
getAsString
public String getAsString()
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.
- getAsString in interface TemplateScalarModel