com.rational.test.ft.value

Class DateWrapper

  • java.lang.Object
    • java.util.Date
      • com.rational.test.ft.value.DateWrapper
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.util.Date>


    public class DateWrapper
    extends java.util.Date
    Overlaps the Date properties so that a more interesting toString method can be provided for Date properties. This allows the Date to be compared to a RegularExpression in an interesting way.
    Since:
    RFT1.0
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static com.rational.test.ft.util.FtDebug debug 
    • Constructor Summary

      Constructors 
      Constructor and Description
      DateWrapper() 
      DateWrapper(int year, int month, int date) 
      DateWrapper(int year, int month, int date, int hrs, int min) 
      DateWrapper(int year, int month, int date, int hrs, int min, int sec) 
      DateWrapper(long date) 
      DateWrapper(java.lang.String s) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object right)
      Overrides the default equals method so that Date properties can be compared in an interesting way.
      java.lang.String toString()
      Overrides the default toString method so that Date properties can be compared in a RegularExpression in an interesting way.
      • Methods inherited from class java.util.Date

        after, before, clone, compareTo, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toInstant, toLocaleString, UTC
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • debug

        public static final com.rational.test.ft.util.FtDebug debug
    • Constructor Detail

      • DateWrapper

        public DateWrapper()
      • DateWrapper

        public DateWrapper(long date)
      • DateWrapper

        public DateWrapper(int year,
                           int month,
                           int date)
      • DateWrapper

        public DateWrapper(int year,
                           int month,
                           int date,
                           int hrs,
                           int min)
      • DateWrapper

        public DateWrapper(int year,
                           int month,
                           int date,
                           int hrs,
                           int min,
                           int sec)
      • DateWrapper

        public DateWrapper(java.lang.String s)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides the default toString method so that Date properties can be compared in a RegularExpression in an interesting way.
        Overrides:
        toString in class java.util.Date
        Since:
        RFT1.0
      • equals

        public boolean equals(java.lang.Object right)
        Overrides the default equals method so that Date properties can be compared in an interesting way.
        Overrides:
        equals in class java.util.Date
        Since:
        RFT1.0