MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.datamodel
Class MXQueryGregorian

java.lang.Object
  extended by ch.ethz.mxquery.datamodel.MXQueryGregorian

public class MXQueryGregorian
extends java.lang.Object


Field Summary
static int UNDEFINED
           
 
Constructor Summary
MXQueryGregorian(int year, int month, int day, int tzMinutes, int type)
           
MXQueryGregorian(java.lang.String s, int type)
           
 
Method Summary
 int compareTo(MXQueryGregorian arg)
          Compares too Gregorian values of the same type
 boolean equals(MXQueryGregorian g)
          Compares too Gregorian values of the same type
 boolean equals(java.lang.Object o)
           
 int getDay()
           
 int getMonth()
           
 int getType()
           
 int getTzMin()
           
 int getYear()
           
 int hashCode()
           
 boolean hasTimezone()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
See Also:
Constant Field Values
Constructor Detail

MXQueryGregorian

public MXQueryGregorian(int year,
                        int month,
                        int day,
                        int tzMinutes,
                        int type)
                 throws MXQueryException
Throws:
MXQueryException

MXQueryGregorian

public MXQueryGregorian(java.lang.String s,
                        int type)
                 throws MXQueryException
Throws:
MXQueryException
Method Detail

hasTimezone

public final boolean hasTimezone()

getDay

public int getDay()

getMonth

public int getMonth()

getType

public int getType()

getTzMin

public int getTzMin()

getYear

public int getYear()

toString

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

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

equals

public boolean equals(MXQueryGregorian g)
Compares too Gregorian values of the same type

Parameters:
g - - Gregorian value to compare with
Returns:
true if the values are equal

compareTo

public int compareTo(MXQueryGregorian arg)
              throws MXQueryException
Compares too Gregorian values of the same type

Parameters:
arg - - Gregorian value to compare with
Returns:
0 if the argument Gregorian is equal to this Gregorian ONLY FOR EQ/NEQ COMPARISON
Throws:
MXQueryException

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich