org.idoox.wasp.serialization.xsdbuiltin
Class GDay

java.lang.Object
  extended byorg.idoox.wasp.serialization.xsdbuiltin.DateTimeBase
      extended byorg.idoox.wasp.serialization.xsdbuiltin.GDay
All Implemented Interfaces:
java.io.Serializable

public class GDay
extends DateTimeBase
implements java.io.Serializable

The class represents xsd day type.

See Also:
Serialized Form
Component:
Core

Field Summary
 
Fields inherited from class org.idoox.wasp.serialization.xsdbuiltin.DateTimeBase
isNegative, timeZone
 
Constructor Summary
GDay(int day, TimeZone timeZone)
          Constructor.
GDay(java.lang.String gDay)
          Constructor that initializes this object.
 
Method Summary
 boolean equals(java.lang.Object o)
          Equals based on day and DateTimeBase values.
 int getDay()
          Returns day member of this object.
 int hashCode()
           
 void setParams(int day, TimeZone timeZone)
          Sets parameters of this object.
 java.lang.String toString()
          Deserializes this object to XSD string that represents date.
 
Methods inherited from class org.idoox.wasp.serialization.xsdbuiltin.DateTimeBase
getTimeZone, hasNegativeValue, inputMonth, outputMonth, setDefaultTimeZone, setParams
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GDay

public GDay(int day,
            TimeZone timeZone)
     throws DateTimeException
Constructor. Initializes gDay object.

Parameters:
day - a value of day.
timeZone - a value of time zone. It may be null.
Throws:
DateTimeException - thrown when parameters are invalid.

GDay

public GDay(java.lang.String gDay)
     throws DateTimeException
Constructor that initializes this object.

Parameters:
gDay - a string representation of day.
Throws:
DateTimeException - thrown when parameters are invalid.
Method Detail

setParams

public void setParams(int day,
                      TimeZone timeZone)
               throws DateTimeException
Sets parameters of this object.

Parameters:
day - a value of day.
timeZone - a value of time zone. It may be null.
Throws:
DateTimeException - thrown when parameters are invalid.

toString

public java.lang.String toString()
Deserializes this object to XSD string that represents date.

Returns:
String date represent of the object.

getDay

public int getDay()
Returns day member of this object.

Returns:
day member of this object.

equals

public boolean equals(java.lang.Object o)
Equals based on day and DateTimeBase values.


hashCode

public int hashCode()