Package org.apache.axis.types
Class MonthDay
java.lang.Object
org.apache.axis.types.MonthDay
- All Implemented Interfaces:
Serializable
Implementation of the XML Schema type gMonthDay
- Author:
- Tom Jordahl invalid input: '<'tomj@macromedia.com>
- 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 TypeMethodDescriptionboolean
int
getDay()
int
getMonth()
int
hashCode()
Return the value of (month + day) XORed with the hashCode of timezone iff one is defined.void
setDay
(int day) Set the day NOTE: if the month isn't set yet, the day isn't validatedvoid
setMonth
(int month) void
setTimezone
(String timezone) void
setValue
(int month, int day) void
toString()
-
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.
-