Package com.luciad.format.xml.datatype
Class TLcdXMLDuration
java.lang.Object
com.luciad.format.xml.datatype.TLcdXMLDuration
Deprecated.
Class for representing the XML duration.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.Special value that indicates that an int field has no value set. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getDays()
Deprecated.Gets the number of days orFIELD_UNDEFINED
when this optional field is not defined.Deprecated.Gets the fractional seconds or null when this optional field is not defined.int
getHours()
Deprecated.Gets the number of hours orFIELD_UNDEFINED
when this optional field is not defined.int
Deprecated.Gets the number of minutes orFIELD_UNDEFINED
when this optional field is not defined.int
Deprecated.Gets the number of months orFIELD_UNDEFINED
when this optional field is not defined.int
Deprecated.Gets the number of seconds orFIELD_UNDEFINED
when this optional field is not defined.int
getYears()
Deprecated.Gets the number of years orFIELD_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.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.
-
Field Details
-
FIELD_UNDEFINED
public static final int FIELD_UNDEFINEDDeprecated.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 orFIELD_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 orFIELD_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 orFIELD_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 orFIELD_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 orFIELD_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 orFIELD_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
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
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
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.
-
Duration
instead.