ilog.rules.xml.types

Class IlrGMonth

  • All Implemented Interfaces:
    java.io.Serializable


    public class IlrGMonth
    extends IlrTimeZone
    This class represents the simple type gMonth of the W3C XML Schema Recommendation (http://www.w3.org/TR/xmlschema-2/#gMonth ).
    See Also:
    Serialized Form
    • Constructor Detail

      • IlrGMonth

        public IlrGMonth()
        Builds a gMonth instance without time zone.
      • IlrGMonth

        public IlrGMonth(long l)
        Builds an IlrGMonth from a long.
        Parameters:
        l - The long parameter
      • IlrGMonth

        public IlrGMonth(java.util.Date date)
        Builds a gMonth instance without time zone from a date.
      • IlrGMonth

        public IlrGMonth(java.util.Date date,
                 java.util.TimeZone timeZone)
        Builds a gMonth instance from a date and a time zone.
    • Method Detail

      • set

        public void set(java.util.Date date)
        Sets the gMonth from a date.
      • set

        public void set(java.util.Date date,
               java.util.TimeZone timeZone)
        Sets a gMonth from a date and a time zone.
      • setMonth

        public void setMonth(short month)
        Sets the month.
      • getMonth

        public short getMonth()
        Gets the month.
      • isEqual

        public boolean isEqual(IlrGMonth dt)
        Determines if two gMonth are equal.
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class IlrTimeZone
      • compareTo

        public int compareTo(IlrGMonth date)
        Compares two months. A GREATER comparison result means that the current month is after the month used as parameter.
        Returns:
        EQUAL if equal, GREATER or LOWER, or NOT_COMPARABLE.
      • valueOf

        public static IlrGMonth valueOf(java.lang.String str)
        Creates a GMonth from a string.
        Throws:
        IlrDateFormatException - When the string format is invalid.

© Copyright IBM Corp. 1987, 2017