org.apache.axis.types

Class Day

public class Day extends Object implements Serializable

Implementation of the XML Schema type gDay

Author: Tom Jordahl

See Also: XML Schema 3.2.13

Constructor Summary
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.
Day(String source)
Construct a Day from a String in the format ---DD[timezone]
Method Summary
booleanequals(Object obj)
intgetDay()
StringgetTimezone()
inthashCode()
Return the value of day XORed with the hashCode of timezone iff one is defined.
voidsetDay(int day)
Set the day
voidsetTimezone(String timezone)
voidsetValue(int day, String timezone)
voidsetValue(int day)
StringtoString()

Constructor Detail

Day

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

Day

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

Day

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

Method Detail

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, String timezone)

setValue

public void setValue(int day)

toString

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