| ognl.ElementsAccessor
All known Subclasses: ognl.ObjectElementsAccessor, ognl.IteratorElementsAccessor, ognl.CollectionElementsAccessor, ognl.NumberElementsAccessor, ognl.ArrayElementsAccessor, ognl.MapElementsAccessor, ognl.EnumerationElementsAccessor,
ElementsAccessor | public interface ElementsAccessor (Code) | | This interface defines a method for getting the "elements" of an object, which means
any objects that naturally would be considered to be contained by the object. So for a
collection, you would expect this method to return all the objects in that collection;
while for an ordinary object you would expect this method to return just that object.
An implementation of this interface will often require that its target objects all
be of some particular type. For example, the MapElementsAccessor class requires that
its targets all implement the Map interface.
author: Luke Blanshard (blanshlu@netscape.net) author: Drew Davidson (drew@ognl.org) |
getElements | public Enumeration getElements(Object target) throws OgnlException(Code) | | Returns an iterator over the elements of the given target object.
Parameters: target - the object to get the elements of an iterator over the elements of the given object exception: OgnlException - if there is an error getting the given object's elements |
|
|