org.apache.axis.types

Class Month

public class Month extends Object implements Serializable

Implementation of the XML Schema type gMonth

Author: Tom Jordahl

See Also: XML Schema 3.2.14

Constructor Summary
Month(int month)
Constructs a Month with the given values No timezone is specified
Month(int month, String timezone)
Constructs a Month with the given values, including a timezone string The timezone is validated but not used.
Month(String source)
Construct a Month from a String in the format --MM--[timezone]
Method Summary
booleanequals(Object obj)
intgetMonth()
StringgetTimezone()
inthashCode()
Return the value of month XORed with the hashCode of timezone iff one is defined.
voidsetMonth(int month)
voidsetTimezone(String timezone)
voidsetValue(int month, String timezone)
voidsetValue(int month)
StringtoString()

Constructor Detail

Month

public Month(int month)
Constructs a Month with the given values No timezone is specified

Month

public Month(int month, String timezone)
Constructs a Month with the given values, including a timezone string The timezone is validated but not used.

Month

public Month(String source)
Construct a Month from a String in the format --MM--[timezone]

Method Detail

equals

public boolean equals(Object obj)

getMonth

public int getMonth()

getTimezone

public String getTimezone()

hashCode

public int hashCode()
Return the value of month 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 month, String timezone)

setValue

public void setValue(int month)

toString

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