org.apache.axis.types

Class YearMonth

public class YearMonth extends Object implements Serializable

Implementation of the XML Schema type gYearMonth

Author: Tom Jordahl

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
booleanequals(Object obj)
intgetMonth()
StringgetTimezone()
intgetYear()
inthashCode()
Return the value of (month + year) XORed with the hashCode of timezone iff one is defined.
voidsetMonth(int month)
voidsetTimezone(String timezone)
voidsetValue(int year, int month, String timezone)
voidsetValue(int year, int month)
voidsetYear(int year)
StringtoString()

Constructor Detail

YearMonth

public YearMonth(int year, int month)
Constructs a YearMonth with the given values No timezone is specified

YearMonth

public 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

public YearMonth(String source)
Construct a YearMonth from a String in the format [-]CCYY-MM

Method Detail

equals

public boolean equals(Object obj)

getMonth

public int getMonth()

getTimezone

public String getTimezone()

getYear

public int getYear()

hashCode

public int hashCode()
Return the value of (month + year) XORed with the hashCode of timezone iff one is defined.

Returns: an int value

setMonth

public void setMonth(int month)

setTimezone

public void setTimezone(String timezone)

setValue

public void setValue(int year, int month, String timezone)

setValue

public void setValue(int year, int month)

setYear

public void setYear(int year)

toString

public String toString()
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.