org.javalite.activejdbc.validation
Class TimestampConverter

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

public class TimestampConverter
extends Converter

Author:
Igor Polevoy

Constructor Summary
TimestampConverter(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

TimestampConverter

public TimestampConverter(String attributeName,
                          String format)
Method Detail

convert

public void convert(Model m)

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

setMessage

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

Parameters:
message - error message.


Copyright © 2013. All Rights Reserved.