org.exolab.castor.types
public class Century extends TimePeriod
Describe an XML schema Century
The date type is derived from time period by setting up the facet :
Version: $Revision: 5951 $
Constructor Summary | |
---|---|
Century() |
Method Summary | |
---|---|
static Object | parse(String str)
parse a String and convert it into a java.lang.Object |
static Century | parseCentury(String str)
parse a String and convert it into a Century |
void | setDay(short day) |
void | setHour(short hour) |
void | setMinute(short minute) |
void | setMonth(short month) |
void | setSecond(short second, short millsecond) |
void | setYear(short year) |
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 (+|-)CC |
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 Century 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 Century