play.data.binding
Class DateBinder.AlternativeDateFormat

java.lang.Object
  extended by play.data.binding.DateBinder.AlternativeDateFormat
Enclosing class:
DateBinder

public static class DateBinder.AlternativeDateFormat
extends java.lang.Object


Constructor Summary
DateBinder.AlternativeDateFormat(java.util.Locale locale, java.lang.String... alternativeFormats)
           
 
Method Summary
static DateBinder.AlternativeDateFormat getDefaultFormatter()
           
 java.util.Date parse(java.lang.String source)
           
 void setFormats(java.lang.String... alternativeFormats)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateBinder.AlternativeDateFormat

public DateBinder.AlternativeDateFormat(java.util.Locale locale,
                                        java.lang.String... alternativeFormats)
Method Detail

setFormats

public void setFormats(java.lang.String... alternativeFormats)

parse

public java.util.Date parse(java.lang.String source)
                     throws java.text.ParseException
Throws:
java.text.ParseException

getDefaultFormatter

public static DateBinder.AlternativeDateFormat getDefaultFormatter()


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly