org.apache.axis.types

Class Day

Implemented Interfaces:
java.io.Serializable

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

Implementation of the XML Schema type gDay
Author:
Tom Jordahl
See Also:
XML Schema 3.2.13, Serialized Form

Constructor Summary

Day(String source)
Construct a Day from a String in the format ---DD[timezone]
Day(int day)
Constructs a Day with the given values No timezone is specified
Day(int day, String timezone)
Constructs a Day with the given values, including a timezone string The timezone is validated but not used.

Method Summary

boolean
equals(Object obj)
int
getDay()
String
getTimezone()
int
hashCode()
Return the value of day XORed with the hashCode of timezone iff one is defined.
void
setDay(int day)
Set the day
void
setTimezone(String timezone)
void
setValue(int day)
void
setValue(int day, String timezone)
String
toString()

Constructor Details

Day

public Day(String source)
            throws NumberFormatException
Construct a Day from a String in the format ---DD[timezone]

Day

public Day(int day)
            throws NumberFormatException
Constructs a Day with the given values No timezone is specified

Day

public Day(int day,
           String timezone)
            throws NumberFormatException
Constructs a Day with the given values, including a timezone string The timezone is validated but not used.

Method Details

equals

public boolean equals(Object obj)

getDay

public int getDay()

getTimezone

public String getTimezone()

hashCode

public int hashCode()
Return the value of day XORed with the hashCode of timezone iff one is defined.
Returns:
an int value

setDay

public void setDay(int day)
Set the day

setTimezone

public void setTimezone(String timezone)

setValue

public void setValue(int day)
            throws NumberFormatException

setValue

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

toString

public String toString()

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.