org.apache.axis.types
Class Month
java.lang.Object
org.apache.axis.types.Month
- java.io.Serializable
public class Month
extends java.lang.Object
implements java.io.Serializable
Implementation of the XML Schema type gMonth
- Tom Jordahl
XML Schema 3.2.14
, Serialized Form
Month(String source) - Construct a Month from a String in the format --MM--[timezone]
|
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
public Month(String source)
throws NumberFormatException
Construct a Month from a String in the format --MM--[timezone]
Month
public Month(int month)
throws NumberFormatException
Constructs a Month with the given values
No timezone is specified
Month
public Month(int month,
String timezone)
throws NumberFormatException
Constructs a Month with the given values, including a timezone string
The timezone is validated but not used.
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.
- an
int
value
setMonth
public void setMonth(int month)
setTimezone
public void setTimezone(String timezone)
setValue
public void setValue(int month)
throws NumberFormatException
setValue
public void setValue(int month,
String timezone)
throws NumberFormatException
toString
public String toString()
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.