Package org.apache.axis.types
Class Year
java.lang.Object
org.apache.axis.types.Year
- All Implemented Interfaces:
Serializable
Implementation of the XML Schema type gYear
- Author:
- Tom Jordahl <tomj@macromedia.com>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionYear
(int year) Constructs a Year with the given values No timezone is specifiedConstructs a Year with the given values, including a timezone string The timezone is validated but not used.Construct a Year from a String in the format [-]CCYY[timezone] -
Method Summary
-
Constructor Details
-
Year
Constructs a Year with the given values No timezone is specified- Throws:
NumberFormatException
-
Year
Constructs a Year with the given values, including a timezone string The timezone is validated but not used.- Throws:
NumberFormatException
-
Year
Construct a Year from a String in the format [-]CCYY[timezone]- Throws:
NumberFormatException
-
-
Method Details
-
getYear
public int getYear() -
setYear
public void setYear(int year) -
getTimezone
-
setTimezone
-
setValue
- Throws:
NumberFormatException
-
setValue
- Throws:
NumberFormatException
-
toString
-
equals
-
hashCode
public int hashCode()Return the value of year XORed with the hashCode of timezone iff one is defined.
-