com.borneo.ftp.xml
Class TransDate

java.lang.Object
  |
  +--com.borneo.ftp.xml.TransDate

public class TransDate
extends java.lang.Object

Implements conversion for dates coming from XML as strings. According to the rules for SAXB conversions.


Constructor Summary
TransDate()
           
 
Method Summary
static java.util.Date parseDate(java.lang.String d)
           
static java.lang.String printDate(java.util.Date d)
           
static java.lang.String printDate(java.util.List l)
          Required when dtd was changed to allow a collection of LastFile elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransDate

public TransDate()
Method Detail

parseDate

public static java.util.Date parseDate(java.lang.String d)

printDate

public static java.lang.String printDate(java.util.Date d)

printDate

public static java.lang.String printDate(java.util.List l)
Required when dtd was changed to allow a collection of LastFile elements. The collection causes the compiler to change the type of the LastFile node from Date to List. This was added in order to accomodate the output of the XML compiler.
Parameters:
l - a Collection of Dates
Returns:
formatted String on the original date.