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