A class that will wrap an arbitrary array into
TemplateCollectionModel and
TemplateSequenceModel interfaces. It supports element retrieval through the array[index]
syntax and can be iterated as a list.
author: Attila Szegedi version: $Id: ArrayModel.java,v 1.26 2003/06/03 13:21:32 szegedia Exp $
ArrayModel(Object array, BeansWrapper wrapper) Creates a new model that wraps the specified array object.
Parameters: array - the array object to wrap into a model. Parameters: wrapper - the BeansWrapper associated with this model.Every model has to have an associated BeansWrapper instance.
Creates a new model that wraps the specified array object.
Parameters: array - the array object to wrap into a model. Parameters: wrapper - the BeansWrapper associated with this model.Every model has to have an associated BeansWrapper instance. Themodel gains many attributes from its wrapper, including the caching behavior, method exposure level, method-over-item shadowing policy etc. throws: IllegalArgumentException - if the passed object is not a Java array.