org.javalite.activejdbc.validation
Class DateConverter
java.lang.Object
org.javalite.activejdbc.validation.ValidatorAdapter
org.javalite.activejdbc.validation.Converter
org.javalite.activejdbc.validation.DateConverter
- All Implemented Interfaces:
- Validator
Deprecated. use DateToStringConverter and
StringToSqlDateConverter instead
@Deprecated
public class DateConverter
- extends Converter
- Author:
- Igor Polevoy
|
Method Summary |
void |
convert(Model m)
Deprecated. |
String |
formatMessage(Locale locale,
Object... params)
Deprecated. Provides default implementation, will look for a property in resource bundle, using set message as key. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateConverter
public DateConverter(String attributeName,
String format)
- Deprecated.
convert
public void convert(Model m)
- Deprecated.
- Specified by:
convert in class Converter
formatMessage
public String formatMessage(Locale locale,
Object... params)
- Deprecated.
- 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 interface Validator- Overrides:
formatMessage in class ValidatorAdapter
- Parameters:
locale - locale to use, or null for default locale.params - parameters in case a message is parametrized.
- Returns:
- formatted message.
Copyright © 2015 JavaLite. All rights reserved.