Rule Execution Server API

ilog.rules.xml.types
Class IlrTimeZone

java.lang.Object
  extended by ilog.rules.xml.types.IlrTimeZone
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IlrDate, IlrDateTime, IlrGDay, IlrGMonth, IlrGMonthDay, IlrGYear, IlrGYearMonth, IlrTime

public class IlrTimeZone
extends Object
implements Serializable

This class represents time zone information. This representation may be UTC (Universal Time, Coordinated) or defined by a signed difference in hour/minute from the UTC zone. It is also possible to omit the time zone information ( !isUTC() ).

See Also:
Serialized Form

Field Summary
protected static int EQUAL
           
protected static int GREATER
           
protected static int LOWER
           
 
Constructor Summary
IlrTimeZone()
          Builds a non UTC time zone.
IlrTimeZone(boolean flagUTC)
          Builds a time zone.
IlrTimeZone(boolean zonePositive, short zoneHour, short zoneMinute)
          Builds a non UTC time zone given its location from the UTC area.
 
Method Summary
 boolean equals(Object obj)
           
protected static void formatToString(IlrTimeZone tz, StringBuffer buffer)
           
protected static void formatToString(short s, int digitNb, StringBuffer buf)
           
protected  int getTimeZoneInMillis()
           
 short getZoneHour()
          Gets the hour of the time zone.
 short getZoneMinute()
          Gets the minutes of the time zone.
 boolean isEqual(IlrTimeZone dt)
           
 boolean isUTC()
          Determines if the time zone information is activated.
 boolean isZonePositive()
          Determines if the area is positive.
 void setTimeZone(boolean zonePositive, short zoneHour, short zoneMinute)
          Sets the time zone at a different hour/minute from the UTC area.
protected  void setTimeZoneInMillis(int allMillisecond)
           
 void setUTC(boolean flagUTC)
          Activates/deactivates the time zone information.
 String toString()
           
 TimeZone toTimeZone()
          Converts an IlrTimeZone instance into a java.util.TimeZone.
 void unsetUTC()
          Unsets the time zone information.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EQUAL

protected static final int EQUAL
See Also:
Constant Field Values

LOWER

protected static final int LOWER
See Also:
Constant Field Values

GREATER

protected static final int GREATER
See Also:
Constant Field Values
Constructor Detail

IlrTimeZone

public IlrTimeZone()
Builds a non UTC time zone.


IlrTimeZone

public IlrTimeZone(boolean flagUTC)
Builds a time zone.


IlrTimeZone

public IlrTimeZone(boolean zonePositive,
                   short zoneHour,
                   short zoneMinute)
Builds a non UTC time zone given its location from the UTC area.

Method Detail

setTimeZoneInMillis

protected void setTimeZoneInMillis(int allMillisecond)

setTimeZone

public void setTimeZone(boolean zonePositive,
                        short zoneHour,
                        short zoneMinute)
Sets the time zone at a different hour/minute from the UTC area.


unsetUTC

public void unsetUTC()
Unsets the time zone information.


getTimeZoneInMillis

protected int getTimeZoneInMillis()

getZoneHour

public short getZoneHour()
Gets the hour of the time zone.


getZoneMinute

public short getZoneMinute()
Gets the minutes of the time zone.


setUTC

public void setUTC(boolean flagUTC)
Activates/deactivates the time zone information.


isZonePositive

public boolean isZonePositive()
Determines if the area is positive.


isUTC

public boolean isUTC()
Determines if the time zone information is activated.


toTimeZone

public final TimeZone toTimeZone()
Converts an IlrTimeZone instance into a java.util.TimeZone.


formatToString

protected static void formatToString(IlrTimeZone tz,
                                     StringBuffer buffer)

formatToString

protected static void formatToString(short s,
                                     int digitNb,
                                     StringBuffer buf)

toString

public String toString()
Overrides:
toString in class Object

isEqual

public boolean isEqual(IlrTimeZone dt)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013