play.data.binding
Class AnnotationHelper

java.lang.Object
  extended by play.data.binding.AnnotationHelper

public class AnnotationHelper
extends java.lang.Object


Constructor Summary
AnnotationHelper()
           
 
Method Summary
static java.util.Date getDateAs(java.lang.annotation.Annotation[] annotations, java.lang.String value)
          It can be something like As(lang={"fr,de","*"}, value={"dd-MM-yyyy","MM-dd-yyyy"})
static play.data.binding.AnnotationHelper.Tuple getLocale(java.lang.String[] langs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationHelper

public AnnotationHelper()
Method Detail

getDateAs

public static java.util.Date getDateAs(java.lang.annotation.Annotation[] annotations,
                                       java.lang.String value)
                                throws java.text.ParseException
It can be something like As(lang={"fr,de","*"}, value={"dd-MM-yyyy","MM-dd-yyyy"})

Parameters:
annotations -
value -
Returns:
null if it cannot be converted because there is no annotation.
Throws:
java.text.ParseException

getLocale

public static play.data.binding.AnnotationHelper.Tuple getLocale(java.lang.String[] langs)


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