org.sape.smfw.xmlutils
Class DateTimeDeserializer

java.lang.Object
  extended byorg.sape.smfw.xmlutils.DateTimeDeserializer

public class DateTimeDeserializer
extends Object

A deserializer for XML Schema "dateTime" datatype. Based on Apache Axis org.apache.axis.encoding.ser.CalendarDeserializer.


Field Summary
private static SimpleDateFormat zulu
           
 
Constructor Summary
DateTimeDeserializer()
           
 
Method Summary
static Date fromXml(String stringValue)
           
private static Object fromXmlHelper(String source, boolean returnDate)
           
static Calendar fromXmlToCalendar(String stringValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

zulu

private static SimpleDateFormat zulu
Constructor Detail

DateTimeDeserializer

public DateTimeDeserializer()
Method Detail

fromXml

public static final Date fromXml(String stringValue)
                          throws ParseException
Throws:
ParseException

fromXmlToCalendar

public static final Calendar fromXmlToCalendar(String stringValue)
                                        throws ParseException
Throws:
ParseException

fromXmlHelper

private static final Object fromXmlHelper(String source,
                                          boolean returnDate)
                                   throws ParseException
Throws:
ParseException


Copyright 2003 Sapient Corporation. All Rights Reserved.