play.data.binding.types
类 DateBinder

java.lang.Object
  继承者 play.data.binding.types.DateBinder
所有已实现的接口:
TypeBinder<java.util.Date>

public class DateBinder
extends java.lang.Object
implements TypeBinder<java.util.Date>

Binder that support Date class.


字段摘要
static java.lang.String ISO8601
           
 
构造方法摘要
DateBinder()
           
 
方法摘要
 java.util.Date bind(java.lang.String name, java.lang.annotation.Annotation[] annotations, java.lang.String value, java.lang.Class actualClass, java.lang.reflect.Type genericType)
          Called when your parameter needs to be bound.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

ISO8601

public static final java.lang.String ISO8601
另请参见:
常量字段值
构造方法详细信息

DateBinder

public DateBinder()
方法详细信息

bind

public java.util.Date bind(java.lang.String name,
                           java.lang.annotation.Annotation[] annotations,
                           java.lang.String value,
                           java.lang.Class actualClass,
                           java.lang.reflect.Type genericType)
                    throws java.lang.Exception
从接口 TypeBinder 复制的描述
Called when your parameter needs to be bound.

指定者:
接口 TypeBinder<java.util.Date> 中的 bind
参数:
name - the name of you parameter ie myparam for a simple param but can also be a complex one : mybean.address.street
annotations - An array of annotation that may be bound to your method parameter or your bean property
value - the actual value as a string that needs to be bound
actualClass - The class of the object you want to associate the value with
genericType - The generic type associated with the object you want to bound the value to
返回:
the 'bound' object for example a date object if the value was '12/12/2002'
抛出:
java.lang.Exception


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