public class GDay extends GMonthDay
The format is defined by W3C XML Schema Recommendation and ISO8601 i.e ---DD(Z|(+|-)hh:mm)
DATE_FORMATEQUALS, GREATER_THAN, INDETERMINATE, LESS_THAN, WRONGLY_PLACED| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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)
|
getCentury, getValues, getYear, parseGMonthDay, setCentury, setNegative, setValues, setYeargetHour, getMilli, getMinute, getSeconds, parseDate, setHour, setMilliSecond, setMinute, setSecond, toLongaddDuration, compareTo, equal, equals, getDay, getZoneHour, getZoneMinute, hashCode, isLeap, isNegative, isUTC, isZoneNegative, normalize, setDay, setSecond, setUTC, setZone, setZoneHour, setZoneMinute, setZoneNegative, toCalendarpublic GDay()
public GDay(short day)
day - public GDay(int day)
day - public GDay(java.lang.String gday)
throws java.text.ParseException
gday - the string representation of the GDay to instantiatejava.text.ParseExceptionpublic java.util.Date toDate()
public java.lang.String toString()
public static java.lang.Object parse(java.lang.String str)
throws java.text.ParseException
str - the string to parsejava.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 parsejava.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 DateTimeBasepublic void setMonth(short month)
DateTimeBasesetMonth in class DateTimeBasemonth - the value to set up
Note 1Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com