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