public interface Validator
Modifier and Type | Method and Description |
---|---|
String |
formatMessage(Locale locale,
Object... params)
Formats a message with locale.
|
void |
pinMessage()
Will pin the current message.
|
void |
setMessage(String message)
Sets an message on this validator.
|
void |
validate(Validatable validatable)
Called by framework when validation is required
|
void validate(Validatable validatable)
validatable
- map being validated.void setMessage(String message)
message
- error message.String formatMessage(Locale locale, Object... params)
locale
- locale to use.params
- parameters in case a message is parametrized.void pinMessage()
Copyright © 2020 JavaLite. All rights reserved.