ie.nuigalway.ecrg.jade.jmsmtp.util
Class BasicFipaDateTime

java.lang.Object
  |
  +--ie.nuigalway.ecrg.jade.jmsmtp.util.BasicFipaDateTime

public class BasicFipaDateTime
extends java.lang.Object


Field Summary
(package private)  java.util.Calendar cal
           
(package private)  short day
           
(package private)  short hour
           
(package private)  short milliseconds
           
(package private)  short minutes
           
(package private)  short month
           
(package private)  short seconds
           
(package private)  char typeDesignator
           
(package private)  short year
           
 
Constructor Summary
BasicFipaDateTime(java.util.Date date)
           
BasicFipaDateTime(java.lang.String str)
           
 
Method Summary
 void fromString(java.lang.String str)
           
 short getDay()
          Get the value of day.
 short getHour()
          Get the value of hour.
 short getMilliseconds()
          Get the value of milliseconds.
 short getMinutes()
          Get the value of minutes.
 short getMonth()
          Get the value of month.
 short getSeconds()
          Get the value of seconds.
 java.util.Date getTime()
           
 char getTypeDesignator()
          Get the value of typeDesignator.
 short getYear()
          Get the value of year.
private  java.lang.String paddedInt(int size, int val)
           
 void setDay(short v)
          Set the value of day.
 void setHour(short v)
          Set the value of hour.
 void setMilliseconds(short v)
          Set the value of milliseconds.
 void setMinutes(short v)
          Set the value of minutes.
 void setMonth(short v)
          Set the value of month.
 void setSeconds(short v)
          Set the value of seconds.
 void setTypeDesignator(char v)
          Set the value of typeDesignator.
 void setYear(short v)
          Set the value of year.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cal

java.util.Calendar cal

year

short year

month

short month

day

short day

hour

short hour

minutes

short minutes

seconds

short seconds

milliseconds

short milliseconds

typeDesignator

char typeDesignator
Constructor Detail

BasicFipaDateTime

public BasicFipaDateTime(java.util.Date date)

BasicFipaDateTime

public BasicFipaDateTime(java.lang.String str)
Method Detail

getYear

public short getYear()
Get the value of year.

Returns:
Value of year.

setYear

public void setYear(short v)
Set the value of year.

Parameters:
v - Value to assign to year.

getMonth

public short getMonth()
Get the value of month.

Returns:
Value of month.

setMonth

public void setMonth(short v)
Set the value of month.

Parameters:
v - Value to assign to month.

getDay

public short getDay()
Get the value of day.

Returns:
Value of day.

setDay

public void setDay(short v)
Set the value of day.

Parameters:
v - Value to assign to day.

getHour

public short getHour()
Get the value of hour.

Returns:
Value of hour.

setHour

public void setHour(short v)
Set the value of hour.

Parameters:
v - Value to assign to hour.

getMinutes

public short getMinutes()
Get the value of minutes.

Returns:
Value of minutes.

setMinutes

public void setMinutes(short v)
Set the value of minutes.

Parameters:
v - Value to assign to minutes.

getSeconds

public short getSeconds()
Get the value of seconds.

Returns:
Value of seconds.

setSeconds

public void setSeconds(short v)
Set the value of seconds.

Parameters:
v - Value to assign to seconds.

getMilliseconds

public short getMilliseconds()
Get the value of milliseconds.

Returns:
Value of milliseconds.

setMilliseconds

public void setMilliseconds(short v)
Set the value of milliseconds.

Parameters:
v - Value to assign to milliseconds.

getTypeDesignator

public char getTypeDesignator()
Get the value of typeDesignator.

Returns:
Value of typeDesignator.

setTypeDesignator

public void setTypeDesignator(char v)
Set the value of typeDesignator.

Parameters:
v - Value to assign to typeDesignator.

fromString

public void fromString(java.lang.String str)

paddedInt

private java.lang.String paddedInt(int size,
                                   int val)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTime

public java.util.Date getTime()