org.exolab.castor.types
public class Year extends TimePeriod
Describe an XML schema Year
The date type is derived from time period by setting up the facet :
Version: $Revision: 1.2 $
Constructor Summary | |
---|---|
Year() |
Method Summary | |
---|---|
static Object | parse(String str)
parse a String and convert it into a java.lang.Object |
static Year | parseYear(String str)
parse a String and convert it into a Year |
void | setDay(short day) |
void | setHour(short hour) |
void | setMinute(short minute) |
void | setMonth(short month) |
void | setSecond(short second, short millsecond) |
void | setZone(short hour, short minute) |
void | setZoneNegative() |
Date | toDate() |
String | toString()
convert this Year to a string
The format is defined by W3C XML Schema draft and ISO8601
i.e (+|-)CCYY |
Parameters: str the string to parse
Returns: the java.lang.Object represented by the string
Throws: ParseException a parse exception is thrown if the string to parse does not follow the rigth format (see the description of this class)
Parameters: str the string to parse
Returns: the Year represented by the string
Throws: ParseException a parse exception is thrown if the string to parse does not follow the rigth format (see the description of this class)
Returns: a string representing this Month