Rule Execution Server API

ilog.rules.xml.types
Class IlrGMonthDay

java.lang.Object
  extended by ilog.rules.xml.types.IlrTimeZone
      extended by ilog.rules.xml.types.IlrGMonthDay
All Implemented Interfaces:
Serializable

public class IlrGMonthDay
extends IlrTimeZone

This class represents the simple type gMonthDay of the W3C XML Schema recommendation ( http://www.w3.org/TR/xmlschema-2/#gMonthDay).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ilog.rules.xml.types.IlrTimeZone
EQUAL, GREATER, LOWER
 
Constructor Summary
IlrGMonthDay()
          Builds a gMonthDay without any time zone.
IlrGMonthDay(Date date)
          Builds a gMonthDay without any time zone from a date.
IlrGMonthDay(Date date, TimeZone timeZone)
          Builds a gMonthDay from a date and a time zone.
IlrGMonthDay(long l)
          Builds an IlrGMonthDay from a long.
IlrGMonthDay(String str)
          Builds a gMonthDay from a string.
 
Method Summary
 int compareTo(IlrGMonthDay date)
          Compares two gMonthDays.
 boolean equals(Object obj)
           
 short getDay()
          Gets the day.
 short getMonth()
          Gets the month.
 boolean isEqual(IlrGMonthDay dt)
          Determines if two gMonthDays are equal.
static IlrGMonthDay parse(String str)
          Creates a gMonthDay from a string.
 void set(Date date)
          Sets the gMonthDay from a date.
 void set(Date date, TimeZone timeZone)
          Sets the GMonthDay from a date and a time zone.
 void setDate(short month, short day)
          Sets the date from month/day.
 Date toDate()
          Converts the gMonthDay to a date.
 String toString()
           
static IlrGMonthDay valueOf(String str)
          Creates a gMonthDay 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

IlrGMonthDay

public IlrGMonthDay()
Builds a gMonthDay without any time zone.


IlrGMonthDay

public IlrGMonthDay(long l)
Builds an IlrGMonthDay from a long.

Parameters:
l - The long parameter

IlrGMonthDay

public IlrGMonthDay(Date date)
Builds a gMonthDay without any time zone from a date.


IlrGMonthDay

public IlrGMonthDay(Date date,
                    TimeZone timeZone)
Builds a gMonthDay from a date and a time zone.


IlrGMonthDay

public IlrGMonthDay(String str)
             throws IlrDateFormatException
Builds a gMonthDay from a string.

Throws:
IlrDateFormatException - When the string format is invalid.
Method Detail

set

public void set(Date date)
Sets the gMonthDay from a date.


set

public void set(Date date,
                TimeZone timeZone)
Sets the GMonthDay from a date and a time zone.


setDate

public void setDate(short month,
                    short day)
Sets the date from month/day.


getMonth

public short getMonth()
Gets the month.


getDay

public short getDay()
Gets the day.


toDate

public Date toDate()
            throws IlrDateFormatException
Converts the gMonthDay to a date.

Throws:
IlrDateFormatException

toString

public String toString()
Overrides:
toString in class IlrTimeZone

isEqual

public boolean isEqual(IlrGMonthDay dt)
Determines if two gMonthDays are equal.


equals

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

compareTo

public int compareTo(IlrGMonthDay date)
Compares two gMonthDays. A GREATER comparison result means that the current month:day is after the month:day used in the parameter.

Returns:
EQUAL if equal, GREATER or LOWER, or NOT_COMPARABLE.

parse

public static IlrGMonthDay parse(String str)
                          throws IlrDateFormatException
Creates a gMonthDay from a string.

Throws:
IlrDateFormatException - When the string format is invalid.

valueOf

public static IlrGMonthDay valueOf(String str)
Creates a gMonthDay from a string.

Throws:
IlrDateFormatException - When the string format is invalid.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013