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