Class TLcdXMLDateTime

java.lang.Object
com.luciad.format.xml.datatype.TLcdXMLDateTime

@Deprecated public class TLcdXMLDateTime extends Object
Deprecated.
The use of this class has been deprecated. You can use one of the native Java temporal types or XMLGregorianCalendar.
Class for representing the following XML temporal types : xsd:date, xsd:time, xsd:dateTime, xsd:gYearMonth, xsd:gMonthDay, xsd:gYear, xsd:gMonth, xsd:gDay
  • Field Details

    • DATE

      public static final TLcdXMLDateTime.Type DATE
      Deprecated.
      Type for representing an xsd:date.
    • TIME

      public static final TLcdXMLDateTime.Type TIME
      Deprecated.
      Type for representing an xsd:time.
    • DATETIME

      public static final TLcdXMLDateTime.Type DATETIME
      Deprecated.
      Type for representing an xsd:dateTime.
    • GYEARMONTH

      public static final TLcdXMLDateTime.Type GYEARMONTH
      Deprecated.
      Type for representing an xsd:gYearMonth.
    • GMONTHDAY

      public static final TLcdXMLDateTime.Type GMONTHDAY
      Deprecated.
      Type for representing an xsd:gMonthDay.
    • GYEAR

      public static final TLcdXMLDateTime.Type GYEAR
      Deprecated.
      Type for representing an xsd:gYear.
    • GMONTH

      public static final TLcdXMLDateTime.Type GMONTH
      Deprecated.
      Type for representing an xsd:gMonth.
    • GDAY

      public static final TLcdXMLDateTime.Type GDAY
      Deprecated.
      Type for representing an xsd:gDay.
    • FIELD_UNDEFINED

      public static final int FIELD_UNDEFINED
      Deprecated.
      Special value that indicates that an int field has no value set.
      See Also:
  • Method Details

    • createDateTime

      public static TLcdXMLDateTime createDateTime(long aTime)
      Deprecated.
      Creates an instance with the type dateTime and all fields set according to the given time.
      Parameters:
      aTime - the given date
      Returns:
      an instance with the type dateTime and all fields set according to the given time.
    • createDate

      public static TLcdXMLDateTime createDate(int aYear, int aMonth, int aDay, int aTimeZone)
      Deprecated.
      Creates an instance with the type date.
      Parameters:
      aYear - the year.
      aMonth - the month.
      aDay - the day.
      aTimeZone - the timezone offset. null does not mean 0 but unspecified.
      Returns:
      the corresponding instance.
    • createDateTime

      public static TLcdXMLDateTime createDateTime(int aYear, int aMonth, int aDay, int aHour, int aMinute, int aSecond, BigDecimal aFractionalSecond, int aTimeZone)
      Deprecated.
      Creates an instance with the type dateTime.
      Parameters:
      aYear - the year.
      aMonth - the month.
      aDay - the day.
      aHour - the hour.
      aMinute - the minute.
      aSecond - the second.
      aFractionalSecond - the fractional second.
      aTimeZone - the timezone offset. null does not mean 0 but unspecified.
      Returns:
      the corresponding instance.
    • createTime

      public static TLcdXMLDateTime createTime(int aHour, int aMinute, int aSecond, BigDecimal aFractionalSecond, int aTimeZone)
      Deprecated.
      Creates an instance with the type time.
      Parameters:
      aHour - the hour.
      aMinute - the minute.
      aSecond - the second.
      aFractionalSecond - the fractional second.
      aTimeZone - the timezone offset. null does not mean 0 but unspecified.
      Returns:
      the corresponding instance.
    • createGDay

      public static TLcdXMLDateTime createGDay(int aDay, int aTimeZone)
      Deprecated.
      Creates an instance of type gDay.
      Parameters:
      aDay - the day.
      aTimeZone - the timezone offset. null does not mean 0 but unspecified.
      Returns:
      the corresponding instance.
    • createGMonth

      public static TLcdXMLDateTime createGMonth(int aMonth, int aTimeZone)
      Deprecated.
      Creates an instance of type gMonth.
      Parameters:
      aMonth - the month.
      aTimeZone - the timezone offset. null does not mean 0 but unspecified.
      Returns:
      the corresponding instance.
    • createGYear

      public static TLcdXMLDateTime createGYear(int aYear, int aTimeZone)
      Deprecated.
      Creates an instance of type gYear.
      Parameters:
      aYear - the year.
      aTimeZone - the timezone offset. null does not mean 0 but unspecified.
      Returns:
      the corresponding instance.
    • createGYearMonth

      public static TLcdXMLDateTime createGYearMonth(int aYear, int aMonth, int aTimeZone)
      Deprecated.
      Creates an instance with of type gYearMonth.
      Parameters:
      aYear - the year.
      aMonth - the month.
      aTimeZone - the timezone offset. null does not mean 0 but unspecified.
      Returns:
      the corresponding instance.
    • createGMonthDay

      public static TLcdXMLDateTime createGMonthDay(int aMonth, int aDay, int aTimeZone)
      Deprecated.
      Creates an instance of type gMonthDay.
      Parameters:
      aMonth - the month.
      aDay - the day.
      aTimeZone - the timezone offset. null does not mean 0 but unspecified.
      Returns:
      the corresponding instance.
    • getYear

      public int getYear()
      Deprecated.
      Gets the year or FIELD_UNDEFINED when this optional field is not defined.
      Returns:
      the year or FIELD_UNDEFINED when this optional field is not defined.
    • setYear

      public void setYear(int aYear)
      Deprecated.
      Sets the year.
      Parameters:
      aYear - the year to be set.
    • getMonth

      public int getMonth()
      Deprecated.
      Gets the month or FIELD_UNDEFINED when this optional field is not defined.
      Returns:
      the month or FIELD_UNDEFINED when this optional field is not defined.
    • setMonth

      public void setMonth(int aMonth)
      Deprecated.
      Sets the month.
      Parameters:
      aMonth - the month to be set.
    • getDay

      public int getDay()
      Deprecated.
      Gets the day or FIELD_UNDEFINED when this optional field is not defined.
      Returns:
      the day or FIELD_UNDEFINED when this optional field is not defined.
    • setDay

      public void setDay(int aDay)
      Deprecated.
      Sets the day.
      Parameters:
      aDay - the day to be set.
    • getHour

      public int getHour()
      Deprecated.
      Gets the hours or FIELD_UNDEFINED when this optional field is not defined.
      Returns:
      the hours or FIELD_UNDEFINED when this optional field is not defined.
    • setHour

      public void setHour(int aHour)
      Deprecated.
      Sets the hour.
      Parameters:
      aHour - the hour to be set.
    • getMinute

      public int getMinute()
      Deprecated.
      Gets the minute or FIELD_UNDEFINED when this optional field is not defined.
      Returns:
      the minute or FIELD_UNDEFINED when this optional field is not defined.
    • setMinute

      public void setMinute(int aMinute)
      Deprecated.
      Sets the minute.
      Parameters:
      aMinute - the minute to be set.
    • getSecond

      public int getSecond()
      Deprecated.
      Gets the seconds or FIELD_UNDEFINED when this optional field is not defined.
      Returns:
      the seconds or FIELD_UNDEFINED when this optional field is not defined.
    • setSecond

      public void setSecond(int aSecond)
      Deprecated.
      Sets the seconds.
      Parameters:
      aSecond - the seconds to be set.
    • getFractionalSecond

      public BigDecimal getFractionalSecond()
      Deprecated.
      Gets the fractional seconds or null when this optional field is not defined.
      Returns:
      the fractional seconds or null when this optional field is not defined.
    • setFractionalSecond

      public void setFractionalSecond(BigDecimal aFractionalSecond)
      Deprecated.
      Sets the fractional seconds.
      Parameters:
      aFractionalSecond - the fractional seconds to be set.
    • getTimeZone

      public int getTimeZone()
      Deprecated.
      Gets the timezone offset in minutes or FIELD_UNDEFINED if this optional field is not defined.
      Returns:
      the timezone offset in minutes or FIELD_UNDEFINED if this optional field is not defined.
    • setTimeZone

      public void setTimeZone(int aTimeZone)
      Deprecated.
      Sets the timezone offset in minutes.
      Parameters:
      aTimeZone - the timezone offset to be set.
    • getType

      public TLcdXMLDateTime.Type getType()
      Deprecated.
      Gets the type of date time. Must be one of the constant fields of this class.
      Returns:
      the type of date time.
    • toDate

      public Date toDate()
      Deprecated.
      Converts a instance to a date. Default values are provided for undefined field.
      Returns:
      the corresponding date.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object