1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.morph.wrap;
17
18
19 /**
20 * A wrapper for objects that can tell how many elements are contained within
21 * themselves.
22 *
23 * @author Matt Sgarlata
24 * @since Jan 16, 2005
25 */
26 public interface Sizable extends Wrapper {
27
28 /**
29 * Returns the number of elements contained within this wrapper. If this
30 * wrapper is a bean, the number of properties is returned. If this wrapper
31 * is a container, the number of elements in the container is returned.
32 *
33 * @return the number of elements contained in the given object
34 * @throws WrapperException
35 * if the number of elements in the object could not be
36 * determined
37 */
38 public int getSize() throws WrapperException;
39
40 }