Interface Validator.Suggestive

Adds the proposing functionality to a com.itmill.toolkit.data.Validator . A Suggestive validator can propose a valid value for the object it is attached to validate. This way the com.itmill.toolkit.data.Validatable object may avoid situations where it contains a value that could lead to a error.

Synopsis

Since

3.0

Inheritance Path.  com.itmill.toolkit.data.Validator.Suggestive

suggestValidValue(Object)

Parameters

proposedValue

Originally proposed value that could be invalid.

return

Suggested value that's not invalid against this validator

Suggest another value that can be used instead of proposedValue if it is invalid. If it is valid in the opinion of this validator, however, it is returned as is.