Class AnnotationHelper

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

public class AnnotationHelper extends Object
  • Constructor Details

    • AnnotationHelper

      public AnnotationHelper()
  • Method Details

    • getDateAs

      public static Date getDateAs(Annotation[] annotations, String value) throws ParseException
      It can be something like As(lang={"fr,de","*"}, value={"dd-MM-yyyy","MM-dd-yyyy"})
      Parameters:
      annotations - Annotations associated with on the date
      value - The formatted date
      Returns:
      null if it cannot be converted because there is no annotation.
      Throws:
      ParseException - if problem occurred during parsing the date
    • getLocale

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