|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.exolab.castor.types.DateTimeBase org.exolab.castor.types.Date org.exolab.castor.types.GMonthDay org.exolab.castor.types.GDay
Describe an XML schema gDay type.
The format is defined by W3C XML Schema Recommendation and ISO8601 i.e ---DD(Z|(+|-)hh:mm)
Field Summary |
Fields inherited from class org.exolab.castor.types.Date |
DATE_FORMAT |
Fields inherited from class org.exolab.castor.types.DateTimeBase |
EQUALS, GREATER_THAN, INDETERMINATE, LESS_THAN |
Constructor Summary | |
GDay()
public only for the generated source code |
|
GDay(int day)
Constructs a XML Schema GDay instance given all the values of the different fields. |
|
GDay(short day)
Constructs a XML Schema GDay instance given all the values of the different fields. |
|
GDay(java.lang.String gday)
Constructs a GDay from a string value. |
Method Summary | |
short |
getMonth()
|
static java.lang.Object |
parse(java.lang.String str)
parse a String and convert it into an java.lang.Object |
static GDay |
parseGDay(java.lang.String str)
parse a String and convert it into a GDay. |
void |
setMonth(short month)
set the Month Field |
java.util.Date |
toDate()
converts this GDay into a local java Date. |
java.lang.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) |
Methods inherited from class org.exolab.castor.types.GMonthDay |
getCentury, getValues, getYear, parseGMonthDay, setCentury, setNegative, setValues, setYear |
Methods inherited from class org.exolab.castor.types.Date |
getHour, getMilli, getMinute, getSeconds, parseDate, setHour, setMilliSecond, setMinute, setSecond |
Methods inherited from class org.exolab.castor.types.DateTimeBase |
addDuration, compareTo, equals, getDay, getZoneHour, getZoneMinute, hashCode, isLeap, isNegative, isUTC, isZoneNegative, normalize, setDay, setSecond, setUTC, setZone, setZoneHour, setZoneMinute, setZoneNegative, toCalendar |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GDay()
public GDay(short day)
public GDay(int day)
public GDay(java.lang.String gday) throws java.text.ParseException
gday
- the string representation of the GDay to instantiateMethod Detail |
public java.util.Date toDate()
toDate
in class GMonthDay
public java.lang.String toString()
toString
in class GMonthDay
public static java.lang.Object parse(java.lang.String str) throws java.text.ParseException
str
- the string to parse
java.text.ParseException
- a parse exception is thrown if the string to parse
does not follow the rigth format (see the description
of this class)public static GDay parseGDay(java.lang.String str) throws java.text.ParseException
str
- the string to parse
java.text.ParseException
- a parse exception is thrown if the string to parse
does not follow the rigth format (see the description
of this class)public short getMonth()
getMonth
in class DateTimeBase
public void setMonth(short month)
DateTimeBase
setMonth
in class DateTimeBase
month
- the value to set up
Note 1
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |