org.apache.axis.types

Class Year

public class Year extends Object implements Serializable

Implementation of the XML Schema type gYear

Author: Tom Jordahl

See Also: XML Schema 3.2.11

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

Constructor Detail

Year

public Year(int year)
Constructs a Year with the given values No timezone is specified

Year

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

Year

public Year(String source)
Construct a Year from a String in the format [-]CCYY[timezone]

Method Detail

equals

public boolean equals(Object obj)

getTimezone

public String getTimezone()

getYear

public int getYear()

hashCode

public int hashCode()
Return the value of year XORed with the hashCode of timezone iff one is defined.

Returns: an int value

setTimezone

public void setTimezone(String timezone)

setValue

public void setValue(int year, String timezone)

setValue

public void setValue(int year)

setYear

public void setYear(int year)

toString

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