org.exolab.castor.types
public class GMonth extends GMonthDay
The format is defined by W3C XML Schema Recommendation and ISO8601 i.e --MM--(Z|(+|-)hh:mm)
Version: $Revision: 1.1.1.1 $
| Constructor Summary | |
|---|---|
| GMonth()
public only for the generated source code | |
| GMonth(short month)
Constructs a XML Schema GMonth instance given all the values of
the different fields.
| |
| GMonth(int month)
Constructs a XML Schema GMonth instance given all the values of
the different fields.
| |
| GMonth(String gmonth)
Constructs a GMonth from a string value. | |
| Method Summary | |
|---|---|
| short | getDay() |
| static Object | parse(String str)
parse a String and convert it into an java.lang.Object |
| static GMonth | parseGMonth(String str)
parse a String and convert it into a GMonth. |
| void | setDay(short day) |
| Date | toDate()
converts this GMonth into a local java Date. |
| String | toString()
convert this GMonth to a string
The format is defined by W3C XML Schema recommendation and ISO8601
i.e --MM--(Z|(+|-)hh:mm) |
Parameters: month the month value.
Parameters: month the month value.
Parameters: gmonth the string representation of the GMonth to instantiate
Parameters: str the string to parse
Returns: an 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 Date 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 local date representing this Date.
Returns: a string representing this Date