com.itmill.toolkit.data
Interface Validator.Suggestive
- All Superinterfaces:
- Validator
- Enclosing interface:
- Validator
public static interface Validator.Suggestive
- extends Validator
Adds the proposing functionality to a Validator. A
Suggestive validator can propose a valid value for the
object it is attached to validate. This way the Validatable
object may avoid situations where it contains a value that could lead to
a error.
- Since:
- 3.0
- Version:
- 4.1.4
- Author:
- IT Mill Ltd.
|
Method Summary |
Object |
suggestValidValue(Object proposedValue)
Suggests another value that can be used instead of the proposedValue
if it is invalid. |
suggestValidValue
Object suggestValidValue(Object proposedValue)
- Suggests another value that can be used instead of the proposedValue
if it is invalid. If it is valid in the opinion of this validator,
however, it is returned as is.
- Parameters:
proposedValue - Originally proposed value that could be invalid.
- Returns:
- Suggested value that's not invalid against this validator
Copyright © 2000-2008 IT Mill Ltd. All Rights Reserved.