org.jreform.types
Class DateType

java.lang.Object
  extended by org.jreform.types.DateType
All Implemented Interfaces:
InputDataType<Date>

public final class DateType
extends Object
implements InputDataType<Date>


Field Summary
private  DateFormat dateFormat
           
 
Constructor Summary
private DateType(String dateFormatPattern)
           
 
Method Summary
static InputDataType<Date> dateType(String dateFormatPattern)
           
 Class<Date> getInputDataClass()
          Returns class of input's data.
 Date parseValue(String value)
          Parses the specified string into an object of this data type's class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dateFormat

private DateFormat dateFormat
Constructor Detail

DateType

private DateType(String dateFormatPattern)
Method Detail

parseValue

public Date parseValue(String value)
Description copied from interface: InputDataType
Parses the specified string into an object of this data type's class.

Specified by:
parseValue in interface InputDataType<Date>

getInputDataClass

public Class<Date> getInputDataClass()
Description copied from interface: InputDataType
Returns class of input's data.

Specified by:
getInputDataClass in interface InputDataType<Date>

dateType

public static InputDataType<Date> dateType(String dateFormatPattern)


Copyright © 2007-2008 jReform