public class GMonth extends GMonthDay
The format is defined by W3C XML Schema Recommendation and ISO8601 i.e --MM--(Z|(+|-)hh:mm)
DATE_FORMATEQUALS, GREATER_THAN, INDETERMINATE, LESS_THAN, WRONGLY_PLACED| Constructor and Description |
|---|
GMonth()
public only for the generated source code
|
GMonth(int month)
Constructs a XML Schema GMonth instance given all the values of
the different fields.
|
GMonth(short month)
Constructs a XML Schema GMonth instance given all the values of
the different fields.
|
GMonth(java.lang.String gmonth)
Constructs a GMonth from a string value.
|
| Modifier and Type | Method and Description |
|---|---|
short |
getDay() |
static java.lang.Object |
parse(java.lang.String str)
parse a String and convert it into an java.lang.Object
|
static GMonth |
parseGMonth(java.lang.String str)
parse a String and convert it into a GMonth.
|
void |
setDay(short day)
set the Day Field
|
java.util.Date |
toDate()
converts this GMonth into a local java Date.
|
java.lang.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)
|
getCentury, getValues, getYear, parseGMonthDay, setCentury, setNegative, setValues, setYeargetHour, getMilli, getMinute, getSeconds, parseDate, setHour, setMilliSecond, setMinute, setSecond, toLongaddDuration, compareTo, equal, equals, getMonth, getZoneHour, getZoneMinute, hashCode, isLeap, isNegative, isUTC, isZoneNegative, normalize, setMonth, setSecond, setUTC, setZone, setZoneHour, setZoneMinute, setZoneNegative, toCalendarpublic GMonth()
public GMonth(short month)
month - the month value.public GMonth(int month)
month - the month value.public GMonth(java.lang.String gmonth)
throws java.text.ParseException
gmonth - the string representation of the GMonth 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 GMonth parseGMonth(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 getDay()
getDay in class DateTimeBasepublic void setDay(short day)
DateTimeBasesetDay in class DateTimeBaseday - the value to set up
Note a validation is done on the day fieldIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com