org.exolab.castor.types
public class Month extends TimePeriod
Describe an XML schema Month.
The date type is derived from time period by setting up the facet :
Version: $Revision: 5951 $
Constructor Summary | |
---|---|
Month() |
Method Summary | |
---|---|
static Object | parse(String str) |
static Month | parseMonth(String str)
parse a String and convert it into a Month |
void | setDay(short day) |
void | setHour(short hour) |
void | setMinute(short minute) |
void | setSecond(short second, short millsecond) |
void | setZone(short hour, short minute) |
void | setZoneNegative() |
Date | toDate() |
String | toString()
convert this Month to a string
The format is defined by W3C XML Schema draft and ISO8601
i.e (+|-)CCYY-MM |
Parameters: str the string to parse
Returns: the Month 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