org.milyn.smooks.edi.unedifact.model.r41.types
Class DateTime

java.lang.Object
  extended by org.milyn.smooks.edi.unedifact.model.r41.types.DateTime
All Implemented Interfaces:
java.io.Serializable, EDIWritable

public class DateTime
extends java.lang.Object
implements java.io.Serializable, EDIWritable

UN/EDIFACT Date and Time.

Author:
tom.fennelly@gmail.com
See Also:
Serialized Form

Constructor Summary
DateTime()
           
 
Method Summary
 java.lang.String getDate()
           
 java.lang.String getTime()
           
 void setDate(java.lang.String date)
           
 void setTime(java.lang.String time)
           
 java.util.Date toDate()
           
 void write(java.io.Writer writer, Delimiters delimiters)
          Write the bean to the specified Writer instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTime

public DateTime()
Method Detail

write

public void write(java.io.Writer writer,
                  Delimiters delimiters)
           throws java.io.IOException
Description copied from interface: EDIWritable
Write the bean to the specified Writer instance.

Specified by:
write in interface EDIWritable
Parameters:
writer - The target writer.
delimiters - The delimiters.
Throws:
java.io.IOException - Error writing bean.

getDate

public java.lang.String getDate()

setDate

public void setDate(java.lang.String date)

getTime

public java.lang.String getTime()

setTime

public void setTime(java.lang.String time)

toDate

public java.util.Date toDate()
                      throws java.text.ParseException
Throws:
java.text.ParseException


Copyright © 2011. All Rights Reserved.