|
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.IlrTime
public class IlrTime
This class represents the simple type time
of the W3C XML Schema
recommendation (http://www.w3.org/TR/xmlschema-2/#time
).
Field Summary |
---|
Fields inherited from class ilog.rules.xml.types.IlrTimeZone |
---|
EQUAL, GREATER, LOWER |
Constructor Summary | |
---|---|
IlrTime()
Builds a time without any time zone. |
|
IlrTime(Date date)
Builds a time without a time zone from a date. |
|
IlrTime(Date date,
TimeZone timeZone)
Builds a time from a date and a time zone. |
|
IlrTime(long l)
Builds an IlrTime from a long. |
|
IlrTime(String str)
Builds a time from a string. |
Method Summary | |
---|---|
int |
compareTo(IlrTime date)
Compares two times. |
boolean |
equals(Object obj)
|
short |
getHour()
Gets the hour. |
short |
getMillisecond()
Gets the millisecond. |
short |
getMinute()
Gets the minute. |
short |
getSecond()
Gets the second. |
boolean |
isEqual(IlrTime dt)
Determines if two times are equal. |
boolean |
isPositive()
Determines if the time is positive. |
static IlrTime |
parse(String str)
Creates a time from a string. |
void |
set(Date date)
Sets a time from a date. |
void |
set(Date date,
TimeZone timeZone)
Sets a time from a date and a time zone. |
void |
setPositive(boolean positive)
Sets the time as positive. |
void |
setTime(short hour,
short minute,
short second,
short millisecond)
Sets a time from hour/minute/second/millisecond. |
Date |
toDate()
Converts the time to a date. |
String |
toString()
|
static IlrTime |
valueOf(String str)
Creates a time 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 IlrTime()
public IlrTime(long l)
IlrTime
from a long.
l
- The long parameterpublic IlrTime(Date date)
public IlrTime(Date date, TimeZone timeZone)
public IlrTime(String str) throws IlrDateFormatException
IlrDateFormatException
- When the string format is invalid.Method Detail |
---|
public void set(Date date)
public void set(Date date, TimeZone timeZone)
public void setTime(short hour, short minute, short second, short millisecond)
public void setPositive(boolean positive)
public boolean isPositive()
public short getHour()
public short getMinute()
public short getSecond()
public short getMillisecond()
public Date toDate() throws IlrDateFormatException
IlrDateFormatException
public String toString()
toString
in class IlrTimeZone
public boolean isEqual(IlrTime dt)
public boolean equals(Object obj)
equals
in class IlrTimeZone
public int compareTo(IlrTime date)
public static IlrTime parse(String str) throws IlrDateFormatException
IlrDateFormatException
- When the string format is invalid.public static IlrTime 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 |