org.jbind.xml.instance.data
Class DateTime

java.lang.Object
  extended byorg.jbind.xml.instance.data.PointInTime
      extended byorg.jbind.xml.instance.data.DateTime
All Implemented Interfaces:
IDateBase, IDateTime, IPointInTime, java.io.Serializable

public class DateTime
extends PointInTime
implements IDateTime

See Also:
Serialized Form

Field Summary
protected  int myDay
           
protected  int myMonth
           
protected  int mySign
           
protected  int myYear
           
 
Fields inherited from class org.jbind.xml.instance.data.PointInTime
myFraction, myHadTimeZone, myHour, myMinute, mySecond
 
Constructor Summary
DateTime(int aSign, int aYear, int aMonth, int aDay, int anHour, int aMinute, int aSecond, java.math.BigDecimal aFraction, boolean aHadTimeZone)
           
 
Method Summary
 CompareResult compareTo(IDateTime aDateTime)
           
static IDateTime create(int aSign, int aYear, int aMonth, int aDay, int anHour, int aMinute, int aSecond, java.math.BigDecimal aFraction, ITimeZone aTimeZone)
           
 boolean equals(java.lang.Object anObject)
           
 int getDay()
           
 int getMonth()
           
 int getSign()
           
 int getYear()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class org.jbind.xml.instance.data.PointInTime
getFraction, getHour, getMinute, getSecond, hadTimeZone
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.core.data.IPointInTime
getFraction, getHour, getMinute, getSecond, hadTimeZone
 

Field Detail

mySign

protected int mySign

myYear

protected int myYear

myMonth

protected int myMonth

myDay

protected int myDay
Constructor Detail

DateTime

public DateTime(int aSign,
                int aYear,
                int aMonth,
                int aDay,
                int anHour,
                int aMinute,
                int aSecond,
                java.math.BigDecimal aFraction,
                boolean aHadTimeZone)
Method Detail

create

public static IDateTime create(int aSign,
                               int aYear,
                               int aMonth,
                               int aDay,
                               int anHour,
                               int aMinute,
                               int aSecond,
                               java.math.BigDecimal aFraction,
                               ITimeZone aTimeZone)

getSign

public int getSign()
Specified by:
getSign in interface IDateBase

getYear

public int getYear()
Specified by:
getYear in interface IDateBase

getMonth

public int getMonth()
Specified by:
getMonth in interface IDateBase

getDay

public int getDay()
Specified by:
getDay in interface IDateBase

compareTo

public CompareResult compareTo(IDateTime aDateTime)
Specified by:
compareTo in interface IDateTime

equals

public boolean equals(java.lang.Object anObject)
Overrides:
equals in class PointInTime

hashCode

public int hashCode()
Overrides:
hashCode in class PointInTime

toString

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