|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.xml.types.IlrTimeZone ilog.rules.xml.types.IlrGMonth
public class IlrGMonth
This class represents the simple type gMonth
of the W3C XML
Schema Recommendation (http://www.w3.org/TR/xmlschema-2/#gMonth
).
Field Summary |
---|
Fields inherited from class ilog.rules.xml.types.IlrTimeZone |
---|
EQUAL, GREATER, LOWER |
Constructor Summary | |
---|---|
IlrGMonth()
Builds a gMonth instance without time zone. |
|
IlrGMonth(Date date)
Builds a gMonth instance without time zone from a date. |
|
IlrGMonth(Date date,
TimeZone timeZone)
Builds a gMonth instance from a date and a time zone. |
|
IlrGMonth(long l)
Builds an IlrGMonth from a long. |
|
IlrGMonth(String str)
Builds a gMonth from a string. |
Method Summary | |
---|---|
int |
compareTo(IlrGMonth date)
Compares two months. |
boolean |
equals(Object obj)
|
short |
getMonth()
Gets the month. |
boolean |
isEqual(IlrGMonth dt)
Determines if two gMonth are equal. |
static IlrGMonth |
parse(String str)
Creates a GMonth from a string. |
void |
set(Date date)
Sets the gMonth from a date. |
void |
set(Date date,
TimeZone timeZone)
Sets a gMonth from a date and a time zone. |
void |
setMonth(short month)
Sets the month. |
Date |
toDate()
Converts the gMonth to a date. |
String |
toString()
|
static IlrGMonth |
valueOf(String str)
Creates a GMonth from a string. |
Methods inherited from class ilog.rules.xml.types.IlrTimeZone |
---|
formatToString, formatToString, getTimeZoneInMillis, getZoneHour, getZoneMinute, isEqual, isUTC, isZonePositive, setTimeZone, setTimeZoneInMillis, setUTC, toTimeZone, unsetUTC |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IlrGMonth()
gMonth
instance without time zone.
public IlrGMonth(long l)
IlrGMonth
from a long.
l
- The long parameterpublic IlrGMonth(Date date)
gMonth
instance without time zone from a date.
public IlrGMonth(Date date, TimeZone timeZone)
gMonth
instance from a date and a time zone.
public IlrGMonth(String str) throws IlrDateFormatException
gMonth
from a string.
IlrDateFormatException
- When the string format is invalid.Method Detail |
---|
public void set(Date date)
gMonth
from a date.
public void set(Date date, TimeZone timeZone)
gMonth
from a date and a time zone.
public void setMonth(short month)
public short getMonth()
public Date toDate() throws IlrDateFormatException
gMonth
to a date.
IlrDateFormatException
public String toString()
toString
in class IlrTimeZone
public boolean isEqual(IlrGMonth dt)
gMonth
are equal.
public boolean equals(Object obj)
equals
in class IlrTimeZone
public int compareTo(IlrGMonth date)
public static IlrGMonth parse(String str) throws IlrDateFormatException
GMonth
from a string.
IlrDateFormatException
- When the string format is invalid.public static IlrGMonth valueOf(String str)
GMonth
from a string.
IlrDateFormatException
- When the string format is invalid.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |