|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2011 the original author or authors. |
| 2 | + * Copyright 2002-2012 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
21 | 21 | * validation 'hints'.
|
22 | 22 | *
|
23 | 23 | * @author Juergen Hoeller
|
| 24 | + * @author Sam Brannen |
24 | 25 | * @since 3.1
|
25 | 26 | */
|
26 | 27 | public interface SmartValidator extends Validator {
|
27 | 28 |
|
28 | 29 | /**
|
29 |
| - * Validate the supplied {@code target} object, which must be of a {@link Class} for |
30 |
| - * which the {@link #supports(Class)} method typically has (or would) return {@code true}. |
| 30 | + * Validate the supplied {@code target} object, which must be of a type of {@link Class} |
| 31 | + * for which the {@link #supports(Class)} method typically returns {@code true}. |
31 | 32 | * <p>The supplied {@link Errors errors} instance can be used to report any
|
32 | 33 | * resulting validation errors.
|
33 |
| - * <p><b>This variant of {@code validate} supports validation hints, such as |
34 |
| - * validation groups against a JSR-303 provider</b> (in this case, the provided hint |
| 34 | + * <p><b>This variant of {@code validate()} supports validation hints, such as |
| 35 | + * validation groups against a JSR-303 provider</b> (in which case, the provided hint |
35 | 36 | * objects need to be annotation arguments of type {@code Class}).
|
36 | 37 | * <p>Note: Validation hints may get ignored by the actual target {@code Validator},
|
37 |
| - * in which case this method is supposed to be behave just like its regular |
| 38 | + * in which case this method should behave just like its regular |
38 | 39 | * {@link #validate(Object, Errors)} sibling.
|
39 | 40 | * @param target the object that is to be validated (can be {@code null})
|
40 | 41 | * @param errors contextual state about the validation process (never {@code null})
|
|
0 commit comments