public interface Validator
Modifier and Type | Method and Description |
---|---|
String |
formatMessage(Locale locale,
Object... params)
Formats a message with locale.
|
void |
setMessage(String message)
Sets an message on this validator.
|
void |
validate(Model m)
Called by framework when a
Model.validate() method called. |
void validate(Model m)
Model.validate()
method called.m
- model being validated.void setMessage(String message)
message
- error message.Copyright © 2019 JavaLite. All rights reserved.