org.apache.axis.types
public class YearMonth extends Object implements Serializable
See Also: XML Schema 3.2.10
| Constructor Summary | |
|---|---|
| YearMonth(int year, int month)
Constructs a YearMonth with the given values
No timezone is specified | |
| YearMonth(int year, int month, String timezone)
Constructs a YearMonth with the given values, including a timezone string
The timezone is validated but not used. | |
| YearMonth(String source)
Construct a YearMonth from a String in the format [-]CCYY-MM | |
| Method Summary | |
|---|---|
| boolean | equals(Object obj) |
| int | getMonth() |
| String | getTimezone() |
| int | getYear() |
| int | hashCode()
Return the value of (month + year) XORed with the hashCode of
timezone iff one is defined.
|
| void | setMonth(int month) |
| void | setTimezone(String timezone) |
| void | setValue(int year, int month, String timezone) |
| void | setValue(int year, int month) |
| void | setYear(int year) |
| String | toString() |
Returns: an int value