org.idoox.wasp.serialization.xsdbuiltin
Class GMonthDay

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

public class GMonthDay
extends DateTimeBase
implements java.io.Serializable

The class represents xsd gMonthDay type.

See Also:
Serialized Form
Component:
Core

Field Summary
 
Fields inherited from class org.idoox.wasp.serialization.xsdbuiltin.DateTimeBase
isNegative, timeZone
 
Constructor Summary
GMonthDay(int month, int day, TimeZone timeZone)
          Constructor.
GMonthDay(java.lang.String gMonthDay)
          Constructor that initializes this object.
 
Method Summary
 boolean equals(java.lang.Object o)
          Equals base on day, month and and DateTimeBase values.
 int getDay()
          Returns day member of this object.
 int getMonth()
          Returns month member of this object.
 int hashCode()
           
 void setParams(int month, int day, TimeZone timeZone)
          Sets parameters of this object.
 java.lang.String toString()
          deserializes this object to XSD string that represents gMonthday.
 
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

GMonthDay

public GMonthDay(int month,
                 int day,
                 TimeZone timeZone)
          throws DateTimeException
Constructor. Initializes gMonthDay object.

Parameters:
month - a value of month in the intervale 0-11.
day - a value of day.
timeZone - a timeZone value to set.
Throws:
DateTimeException - thrown when parameters are invalid.

GMonthDay

public GMonthDay(java.lang.String gMonthDay)
          throws DateTimeException
Constructor that initializes this object.

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

setParams

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

Parameters:
month - a value of month in the interval 0-11.
day - a value of day.
timeZone - a timeZone value to set.
Throws:
DateTimeException - thrown when parameters are invalid.

getMonth

public int getMonth()
Returns month member of this object.

Returns:
month value of this object in the interval 0-11.

getDay

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

Returns:
day member of this object.

toString

public java.lang.String toString()
deserializes this object to XSD string that represents gMonthday.

Returns:
String represent of the object.

equals

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


hashCode

public int hashCode()