de.keepondreaming.xml
Class DateHandler

java.lang.Object
  extended by de.keepondreaming.xml.DateHandler

public class DateHandler
extends java.lang.Object

Transforms Date strings to long values $Author: wintermond $ $Date: 2005/07/10 18:39:24 $ $Log: DateHandler.java,v $ Revision 1.1 2005/07/10 18:39:24 wintermond initial


Constructor Summary
DateHandler(AnnotationStrategy parserStrategy)
          Default constructor
 
Method Summary
 java.util.Date getDateString(java.lang.reflect.Method method, java.lang.String value)
          Creates a Date, java.sql.Date or java.sql.Timestamp object based upon the value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateHandler

public DateHandler(AnnotationStrategy parserStrategy)
Default constructor

Parameters:
parserStrategy -
Method Detail

getDateString

public java.util.Date getDateString(java.lang.reflect.Method method,
                                    java.lang.String value)
                             throws java.text.ParseException
Creates a Date, java.sql.Date or java.sql.Timestamp object based upon the value

Parameters:
method -
value -
Returns:
a Date, java.sql.Date or java.sql.Timestamp object
Throws:
java.text.ParseException


Copyright © -2005 . All Rights Reserved.