public class DateValidator extends ValidatorAdapter
DateToStringConverter
.Constructor and Description |
---|
DateValidator(String attributeName,
String format) |
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.
|
void |
validate(Validatable validatable)
Called by framework when validation is required
|
getMessage, pinMessage, setMessage
public void validate(Validatable validatable)
Validator
validatable
- map being validated.public String formatMessage(Locale locale, Object... params)
ValidatorAdapter
formatMessage
in interface Validator
formatMessage
in class ValidatorAdapter
locale
- locale to use, or null for default locale.params
- parameters in case a message is parametrized.Copyright © 2020 JavaLite. All rights reserved.