Package org.javalite.validation
Class TimestampValidator
java.lang.Object
org.javalite.validation.ValidatorAdapter
org.javalite.validation.TimestampValidator
- All Implemented Interfaces:
Validator
Validates presence and correct format of a string.
If you are looking for a conversion, see
StringToTimestampConverter
instead.- Author:
- Igor Polevoy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionformatMessage(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 requiredMethods inherited from class org.javalite.validation.ValidatorAdapter
getMessage, pinMessage, setMessage
-
Constructor Details
-
TimestampValidator
-
-
Method Details
-
validate
Description copied from interface:Validator
Called by framework when validation is required- Parameters:
validatable
- map being validated.
-
formatMessage
Description copied from class:ValidatorAdapter
Provides default implementation, will look for a property in resource bundle, using set message as key. If property in resource bundle not found, treats message verbatim.- Specified by:
formatMessage
in interfaceValidator
- Overrides:
formatMessage
in classValidatorAdapter
- Parameters:
locale
- locale to use, or null for default locale.params
- parameters in case a message is parametrized.- Returns:
- formatted message.
-