Class MonthDay
java.lang.Object
org.apache.axis2.databinding.types.MonthDay
- All Implemented Interfaces:
Serializable
Implementation of the XML Schema type gMonthDay
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMonthDay(int month, int day) Constructs a MonthDay with the given values No timezone is specifiedConstructs a MonthDay with the given values, including a timezone string The timezone is validated but not used.Construct a MonthDay from a String in the format --MM-DD[timezone] -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetDay()intgetMonth()inthashCode()Return the value of (month + day) XORed with the hashCode of timezone iff one is defined.voidsetDay(int day) Set the day NOTE: if the month isn't set yet, the day isn't validatedvoidsetMonth(int month) voidsetTimezone(String timezone) voidsetValue(int month, int day) voidtoString()
-
Constructor Details
-
MonthDay
Constructs a MonthDay with the given values No timezone is specified- Throws:
NumberFormatException
-
MonthDay
Constructs a MonthDay with the given values, including a timezone string The timezone is validated but not used.- Throws:
NumberFormatException
-
MonthDay
Construct a MonthDay from a String in the format --MM-DD[timezone]- Throws:
NumberFormatException
-
-
Method Details
-
getMonth
public int getMonth() -
setMonth
public void setMonth(int month) -
getDay
public int getDay() -
setDay
public void setDay(int day) Set the day NOTE: if the month isn't set yet, the day isn't validated -
getTimezone
-
setTimezone
-
setValue
- Throws:
NumberFormatException
-
setValue
- Throws:
NumberFormatException
-
toString
-
equals
-
hashCode
public int hashCode()Return the value of (month + day) XORed with the hashCode of timezone iff one is defined.
-