javax.rad.type
Class DateType

java.lang.Object
  extended by javax.rad.type.AbstractType<T>
      extended by javax.rad.type.AbstractDateType<java.util.Date>
          extended by javax.rad.type.DateType
All Implemented Interfaces:
IType<java.util.Date>

public class DateType
extends AbstractDateType<java.util.Date>

The DateType is a platform independent definition of date.


Field Summary
 
Fields inherited from class javax.rad.type.AbstractDateType
dateUtil, FORMAT
 
Fields inherited from interface javax.rad.type.IType
UNKNOWN_TYPE
 
Constructor Summary
DateType()
          Constructs a new DateType.
 
Method Summary
 java.lang.Class<java.util.Date> getTypeClass()
          Returns the class used by this type.
 java.util.Date valueOf(java.lang.Object pObject)
          Converts the object to an Object which is an instance of type class.
 
Methods inherited from class javax.rad.type.AbstractDateType
compareTo, getDateFormat, setDateFormat
 
Methods inherited from class javax.rad.type.AbstractType
equals, getTypeFromClass, getTypeFromObject, hashCode, registerType, toString, validatedValueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateType

public DateType()
Constructs a new DateType.

Method Detail

getTypeClass

public java.lang.Class<java.util.Date> getTypeClass()
Returns the class used by this type.

Returns:
the class used by this type.

valueOf

public java.util.Date valueOf(java.lang.Object pObject)
Converts the object to an Object which is an instance of type class.

Specified by:
valueOf in interface IType<java.util.Date>
Overrides:
valueOf in class AbstractType<java.util.Date>
Parameters:
pObject - the Object to convert
Returns:
the Object which is an instance of type class.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.