Class TLcdXMLDuration

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

public class TLcdXMLDuration extends Object
Deprecated.
The use of this class has been deprecated. Use Duration instead.
Class for representing the XML duration.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated.
    Special value that indicates that an int field has no value set.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deprecated.
    Gets the number of days or FIELD_UNDEFINED when this optional field is not defined.
    Deprecated.
    Gets the fractional seconds or null when this optional field is not defined.
    int
    Deprecated.
    Gets the number of hours or FIELD_UNDEFINED when this optional field is not defined.
    int
    Deprecated.
    Gets the number of minutes or FIELD_UNDEFINED when this optional field is not defined.
    int
    Deprecated.
    Gets the number of months or FIELD_UNDEFINED when this optional field is not defined.
    int
    Deprecated.
    Gets the number of seconds or FIELD_UNDEFINED when this optional field is not defined.
    int
    Deprecated.
    Gets the number of years or FIELD_UNDEFINED when this optional field is not defined.
    boolean
    Deprecated.
    Returns true if positive.
    void
    setDays(int aDays)
    Deprecated.
    Sets the number of days.
    void
    setFractionalSeconds(BigDecimal aFractionalSeconds)
    Deprecated.
    Sets the fractional seconds.
    void
    setHours(int aHours)
    Deprecated.
    Sets the number of hours.
    void
    setMinutes(int aMinutes)
    Deprecated.
    Sets the number of minutes.
    void
    setMonths(int aMonths)
    Deprecated.
    Sets the number of months.
    void
    setPositive(boolean aIsPositive)
    Deprecated.
    Sets the sign.
    void
    setSeconds(int aSeconds)
    Deprecated.
    Sets the number of seconds.
    void
    setYears(int aYears)
    Deprecated.
    Sets the number of years.
    Deprecated.
    Returns a String representation of this duration in the ISO 8601 extended format PnYn MnDTnH nMnS, where nY represents the number of years, nM the number of months, nD the number of days, 'T' is the date/time separator, nH the number of hours, nM the number of minutes and nS the number of seconds.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • FIELD_UNDEFINED

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

    • TLcdXMLDuration

      public TLcdXMLDuration()
      Deprecated.
  • Method Details

    • getYears

      public int getYears()
      Deprecated.
      Gets the number of years or FIELD_UNDEFINED when this optional field is not defined.
      Returns:
      the number of years or FIELD_UNDEFINED when this optional field is not defined.
    • setYears

      public void setYears(int aYears)
      Deprecated.
      Sets the number of years.
      Parameters:
      aYears - the number of years to be set.
    • getMonths

      public int getMonths()
      Deprecated.
      Gets the number of months or FIELD_UNDEFINED when this optional field is not defined.
      Returns:
      the number of months or FIELD_UNDEFINED when this optional field is not defined.
    • setMonths

      public void setMonths(int aMonths)
      Deprecated.
      Sets the number of months.
      Parameters:
      aMonths - the number of months to be set.
    • getDays

      public int getDays()
      Deprecated.
      Gets the number of days or FIELD_UNDEFINED when this optional field is not defined.
      Returns:
      the number of days or FIELD_UNDEFINED when this optional field is not defined.
    • setDays

      public void setDays(int aDays)
      Deprecated.
      Sets the number of days.
      Parameters:
      aDays - the number of days to be set.
    • getHours

      public int getHours()
      Deprecated.
      Gets the number of hours or FIELD_UNDEFINED when this optional field is not defined.
      Returns:
      the number of hours or FIELD_UNDEFINED when this optional field is not defined.
    • setHours

      public void setHours(int aHours)
      Deprecated.
      Sets the number of hours.
      Parameters:
      aHours - the number of hours to be set.
    • getMinutes

      public int getMinutes()
      Deprecated.
      Gets the number of minutes or FIELD_UNDEFINED when this optional field is not defined.
      Returns:
      the number of minutes or FIELD_UNDEFINED when this optional field is not defined.
    • setMinutes

      public void setMinutes(int aMinutes)
      Deprecated.
      Sets the number of minutes.
      Parameters:
      aMinutes - the number of minutes to be set.
    • getSeconds

      public int getSeconds()
      Deprecated.
      Gets the number of seconds or FIELD_UNDEFINED when this optional field is not defined.
      Returns:
      the number of seconds or FIELD_UNDEFINED when this optional field is not defined.
    • setSeconds

      public void setSeconds(int aSeconds)
      Deprecated.
      Sets the number of seconds.
      Parameters:
      aSeconds - the number of seconds to be set.
    • getFractionalSeconds

      public BigDecimal getFractionalSeconds()
      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.
    • setFractionalSeconds

      public void setFractionalSeconds(BigDecimal aFractionalSeconds)
      Deprecated.
      Sets the fractional seconds.
      Parameters:
      aFractionalSeconds - the fractional seconds to be set.
    • isPositive

      public boolean isPositive()
      Deprecated.
      Returns true if positive.
      Returns:
      true if positive.
    • setPositive

      public void setPositive(boolean aIsPositive)
      Deprecated.
      Sets the sign.
      Parameters:
      aIsPositive - true if positive.
    • toString

      public String toString()
      Deprecated.
      Returns a String representation of this duration in the ISO 8601 extended format PnYn MnDTnH nMnS, where nY represents the number of years, nM the number of months, nD the number of days, 'T' is the date/time separator, nH the number of hours, nM the number of minutes and nS the number of seconds. The number of seconds can include decimal digits to arbitrary precision.
      Overrides:
      toString in class Object
      Returns:
      a String representation of this duration in the ISO 8601 extended format PnYn MnDTnH nMnS.