|
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.IlrGMonthDay
public class IlrGMonthDay
This class represents the simple type gMonthDay
of the W3C XML
Schema recommendation (
http://www.w3.org/TR/xmlschema-2/#gMonthDay
).
Field Summary |
---|
Fields inherited from class ilog.rules.xml.types.IlrTimeZone |
---|
EQUAL, GREATER, LOWER |
Constructor Summary | |
---|---|
IlrGMonthDay()
Builds a gMonthDay without any time zone. |
|
IlrGMonthDay(Date date)
Builds a gMonthDay without any time zone from a date. |
|
IlrGMonthDay(Date date,
TimeZone timeZone)
Builds a gMonthDay from a date and a time zone. |
|
IlrGMonthDay(long l)
Builds an IlrGMonthDay from a long. |
|
IlrGMonthDay(String str)
Builds a gMonthDay from a string. |
Method Summary | |
---|---|
int |
compareTo(IlrGMonthDay date)
Compares two gMonthDays . |
boolean |
equals(Object obj)
|
short |
getDay()
Gets the day. |
short |
getMonth()
Gets the month. |
boolean |
isEqual(IlrGMonthDay dt)
Determines if two gMonthDays are equal. |
static IlrGMonthDay |
parse(String str)
Creates a gMonthDay from a string. |
void |
set(Date date)
Sets the gMonthDay from a date. |
void |
set(Date date,
TimeZone timeZone)
Sets the GMonthDay from a date and a time zone. |
void |
setDate(short month,
short day)
Sets the date from month/day. |
Date |
toDate()
Converts the gMonthDay to a date. |
String |
toString()
|
static IlrGMonthDay |
valueOf(String str)
Creates a gMonthDay 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 IlrGMonthDay()
gMonthDay
without any time zone.
public IlrGMonthDay(long l)
IlrGMonthDay
from a long.
l
- The long parameterpublic IlrGMonthDay(Date date)
gMonthDay
without any time zone from a date.
public IlrGMonthDay(Date date, TimeZone timeZone)
gMonthDay
from a date and a time zone.
public IlrGMonthDay(String str) throws IlrDateFormatException
gMonthDay
from a string.
IlrDateFormatException
- When the string format is invalid.Method Detail |
---|
public void set(Date date)
gMonthDay
from a date.
public void set(Date date, TimeZone timeZone)
GMonthDay
from a date and a time zone.
public void setDate(short month, short day)
public short getMonth()
public short getDay()
public Date toDate() throws IlrDateFormatException
gMonthDay
to a date.
IlrDateFormatException
public String toString()
toString
in class IlrTimeZone
public boolean isEqual(IlrGMonthDay dt)
gMonthDays
are equal.
public boolean equals(Object obj)
equals
in class IlrTimeZone
public int compareTo(IlrGMonthDay date)
gMonthDays
. A GREATER comparison result means
that the current month:day is after the month:day used in the parameter.
public static IlrGMonthDay parse(String str) throws IlrDateFormatException
gMonthDay
from a string.
IlrDateFormatException
- When the string format is invalid.public static IlrGMonthDay valueOf(String str)
gMonthDay
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 |