org.javalite.activejdbc.validation
Class DateConverter

java.lang.Object
  extended by org.javalite.activejdbc.validation.Converter
      extended by org.javalite.activejdbc.validation.DateConverter
All Implemented Interfaces:
Validator

public class DateConverter
extends Converter

Author:
Igor Polevoy

Constructor Summary
DateConverter(String attributeName, String format)
           
 
Method Summary
 void convert(Model m)
           
 String formatMessage(Locale locale, Object... params)
          Formats a message with locale.
 void setMessage(String message)
          Sets an message on this validator.
 
Methods inherited from class org.javalite.activejdbc.validation.Converter
validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateConverter

public DateConverter(String attributeName,
                     String format)
Method Detail

convert

public void convert(Model m)

setMessage

public void setMessage(String message)
Description copied from interface: Validator
Sets an message on this validator.

Parameters:
message - error message.

formatMessage

public String formatMessage(Locale locale,
                            Object... params)
Description copied from interface: Validator
Formats a message with locale.

Parameters:
locale - locale to use.
params - parameters in case a message is parametrized.
Returns:
formatted message


Copyright © 2013. All Rights Reserved.