1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.composite.validate;
17
18 /***
19 * Validates that the internal state of the given composite is valid.
20 *
21 * @author Matt Sgarlata
22 * @since Mar 11, 2005
23 */
24 public interface ComponentValidator {
25
26 /***
27 * Validates that the internal state of the given composite is valid.
28 *
29 * @param composite
30 * the composite from which the components will be extracted
31 * @throws ComponentValidationException
32 * if the composite is not validation or validation could not be
33 * performed for some reason
34 */
35 public void validate(Object composite)
36 throws ComponentValidationException;
37
38 }