01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: ValidationContext.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.site;
09:
10: /**
11: * This interface has to be implemented by all classes that provide a context
12: * in which <code>Validated</code> bean instances can be validated.
13: *
14: * @author Geert Bevin (gbevin[remove] at uwyn dot com)
15: * @version $Revision: 3634 $
16: * @see Validation
17: * @see ValidationError
18: * @since 1.0
19: */
20: public interface ValidationContext {
21: /**
22: * Validates a <code>Validated</code> in this context.
23: * <p>This method is not suppossed to reset the validation errors or to
24: * start the validation from scratch, but it's intended to add additional
25: * errors to an existing collection.
26: *
27: * @param validated the <code>Validated</code> instance that will be validated
28: * @since 1.0
29: */
30: public void validate(Validated validated);
31: }
|