|
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.IlrGDay
public class IlrGDay
This class represents the simple type gDay
of the W3C XML Schema
recommendation (http://www.w3.org/TR/xmlschema-2/#gDay
).
Field Summary |
---|
Fields inherited from class ilog.rules.xml.types.IlrTimeZone |
---|
EQUAL, GREATER, LOWER |
Constructor Summary | |
---|---|
IlrGDay()
Builds a GDay without any time zone. |
|
IlrGDay(Date date)
Builds a date from a Date instance. |
|
IlrGDay(Date date,
TimeZone timeZone)
Builds a gDay from date and a time zone. |
|
IlrGDay(long l)
Builds an IlrGDay from a long. |
|
IlrGDay(String str)
Builds a gDay from a string. |
Method Summary | |
---|---|
int |
compareTo(IlrGDay date)
Compares two days. |
boolean |
equals(Object obj)
|
short |
getDay()
Gets the day. |
boolean |
isEqual(IlrGDay dt)
Determines if two gDay instances are equal. |
static IlrGDay |
parse(String str)
Creates a day from a string. |
void |
set(Date date)
Sets a gDay from a date. |
void |
set(Date date,
TimeZone timeZone)
Sets a gDay from a date and a time zone. |
void |
setDay(short day)
Sets the day. |
Date |
toDate()
Converts into a date. |
String |
toString()
|
static IlrGDay |
valueOf(String str)
Creates a day 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 IlrGDay()
GDay
without any time zone.
public IlrGDay(long l)
IlrGDay
from a long.
l
- The long parameterpublic IlrGDay(Date date)
Date
instance.
public IlrGDay(Date date, TimeZone timeZone)
gDay
from date and a time zone.
public IlrGDay(String str) throws IlrDateFormatException
gDay
from a string.
IlrDateFormatException
- raised when the string format is invalid.Method Detail |
---|
public void set(Date date)
gDay
from a date.
public void set(Date date, TimeZone timeZone)
gDay
from a date and a time zone.
public void setDay(short day)
public short getDay()
public Date toDate() throws IlrDateFormatException
IlrDateFormatException
public String toString()
toString
in class IlrTimeZone
public boolean isEqual(IlrGDay dt)
gDay
instances are equal.
public boolean equals(Object obj)
equals
in class IlrTimeZone
public int compareTo(IlrGDay date)
public static IlrGDay parse(String str) throws IlrDateFormatException
IlrDateFormatException
- when the string format is invalid.public static IlrGDay valueOf(String str)
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 |