public abstract class ValidatorAdapter extends Object implements Validator
Constructor and Description |
---|
ValidatorAdapter() |
Modifier and Type | Method and Description |
---|---|
String |
formatMessage(Locale locale,
Object... params)
Provides default implementation, will look for a property in resource bundle, using set message as key.
|
String |
getMessage() |
void |
setMessage(String message)
Sets an message on this validator.
|
public final void setMessage(String message)
Validator
setMessage
in interface Validator
message
- error message.public String formatMessage(Locale locale, Object... params)
formatMessage
in interface Validator
locale
- locale to use, or null for default locale.params
- parameters in case a message is parametrized.public final String getMessage()
Copyright © 2018 JavaLite. All rights reserved.