1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.morph.reflect;
17
18 /**
19 * A reflector for 'container-like' structures that do not have a fixed size.
20 *
21 * @author Matt Sgarlata
22 * @since Nov 26, 2004
23 */
24 public interface GrowableContainerReflector extends ContainerReflector {
25
26 /**
27 * Adds a new <code>value</code> to the end of a <code>container</code>.
28 *
29 * @param container
30 * the container to which the value is to be added
31 * @param value
32 * the value to be added
33 * @return <code>true</code> if the container changed as a result of the
34 * call or <br>
35 * <code>false</code>, otherwise
36 * @throws ReflectionException
37 * if an error occurrs
38 */
39 public boolean add(Object container, Object value) throws ReflectionException;
40
41 }