freemarker.ext.beans
Class ArrayModel
- AdapterTemplateModel, TemplateCollectionModel, TemplateHashModel, TemplateHashModelEx, TemplateModel, TemplateSequenceModel, WrapperTemplateModel
$Id: ArrayModel.java,v 1.26 2003/06/03 13:21:32 szegedia Exp $
get , getAdaptedObject , getWrappedObject , hasPlainGetMethod , invokeGenericGet , isEmpty , keySet , keys , size , toString , unwrap , values , wrap |
ArrayModel
public ArrayModel(Object array,
BeansWrapper wrapper)
Creates a new model that wraps the specified array object.
array
- the array 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.
isEmpty
public boolean isEmpty()
Tells whether the model is empty. It is empty if either the wrapped
object is null, or it is a Boolean with false value.
- isEmpty in interface TemplateHashModel
- isEmpty in interface BeanModel