1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.composite.extract;
17
18 import java.util.List;
19
20
21 /***
22 * Provides an interface for reading and writing the components of a composite.
23 *
24 * @author Matt Sgarlata
25 * @since Mar 11, 2005
26 */
27 public interface ComponentAccessor {
28
29 /***
30 * Extracts the components from a composite.
31 *
32 * @param composite
33 * the composite from which the components will be extracted
34 * @return the components
35 * @throws ComponentAccessorException
36 * if the components could not be extracted for some reason
37 */
38 public List getComponents(Object composite)
39 throws ComponentAccessorException;
40
41 /***
42 * Sets the components in a composite.
43 *
44 * @param composite
45 * the composite for which the components will be set
46 * @param components
47 * the components
48 * @throws ComponentAccessorException
49 * if the components could not be set for some reason
50 */
51 public void setComponents(Object composite, List components)
52 throws ComponentAccessorException;
53
54 }