org.apache.axis.types

Class Month

Implemented Interfaces:
java.io.Serializable

public class Month
extends java.lang.Object
implements java.io.Serializable

Implementation of the XML Schema type gMonth
Author:
Tom Jordahl
See Also:
XML Schema 3.2.14, Serialized Form

Constructor Summary

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.

Method Summary

boolean
equals(Object obj)
int
getMonth()
String
getTimezone()
int
hashCode()
Return the value of month XORed with the hashCode of timezone iff one is defined.
void
setMonth(int month)
void
setTimezone(String timezone)
void
setValue(int month)
void
setValue(int month, String timezone)
String
toString()

Constructor Details

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.

Method Details

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)
            throws NumberFormatException

setValue

public void setValue(int month,
                     String timezone)
            throws NumberFormatException

toString

public String toString()

Copyright © 2005 Apache Web Services Project. All Rights Reserved.