freemarker.ext.beans
Class StringModel
- AdapterTemplateModel, TemplateHashModel, TemplateHashModelEx, TemplateModel, TemplateScalarModel, WrapperTemplateModel
$Id: StringModel.java,v 1.9 2003/06/03 13:21:33 szegedia Exp $
StringModel(Object object, BeansWrapper wrapper) - Creates a new model that wraps the specified object with BeanModel + scalar
functionality.
|
String | getAsString() - Returns the result of calling
Object.toString() on the wrapped
object.
|
get , getAdaptedObject , getWrappedObject , hasPlainGetMethod , invokeGenericGet , isEmpty , keySet , keys , size , toString , unwrap , values , wrap |
StringModel
public StringModel(Object object,
BeansWrapper wrapper)
Creates a new model that wraps the specified object with BeanModel + scalar
functionality.
object
- the object to wrap into a model.wrapper
- the BeansWrapper
associated with this model.
Every model has to have an associated BeansWrapper
instance. The
model gains many attributes from its wrapper, including the caching
behavior, method exposure level, method-over-item shadowing policy etc.
getAsString
public String getAsString()
Returns the result of calling Object.toString()
on the wrapped
object.
- getAsString in interface TemplateScalarModel