net.sf.morph.reflect
Interface GrowableContainerReflector

All Superinterfaces:
net.sf.composite.Component, ContainerReflector, Reflector
All Known Implementing Classes:
CollectionReflector, ListReflector, MapReflector, ServletRequestReflector, SetReflector, SimpleDelegatingReflector, SortedSetReflector, StubbornDelegatingReflector

public interface GrowableContainerReflector
extends ContainerReflector

A reflector for 'container-like' structures that do not have a fixed size.

Since:
Nov 26, 2004
Author:
Matt Sgarlata

Method Summary
 boolean add(java.lang.Object container, java.lang.Object value)
          Adds a new value to the end of a container.
 
Methods inherited from interface net.sf.morph.reflect.ContainerReflector
getContainedType, getIterator
 
Methods inherited from interface net.sf.morph.reflect.Reflector
getReflectableClasses, getWrapper
 

Method Detail

add

boolean add(java.lang.Object container,
            java.lang.Object value)
            throws ReflectionException
Adds a new value to the end of a container.

Parameters:
container - the container to which the value is to be added
value - the value to be added
Returns:
true if the container changed as a result of the call or
false, otherwise
Throws:
ReflectionException - if an error occurrs


Copyright © 2004-2008.