Modifier and Type | Field and Description |
---|---|
static int |
FIELD_UNDEFINED
Deprecated.
Special value that indicates that an int field has no value set.
|
Constructor and Description |
---|
TLcdXMLDuration()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getDays()
Deprecated.
Gets the number of days or
FIELD_UNDEFINED when this optional field is not defined. |
BigDecimal |
getFractionalSeconds()
Deprecated.
Gets the fractional seconds or null when this optional field is not defined.
|
int |
getHours()
Deprecated.
Gets the number of hours or
FIELD_UNDEFINED when this optional field is not defined. |
int |
getMinutes()
Deprecated.
Gets the number of minutes or
FIELD_UNDEFINED when this optional field is not defined. |
int |
getMonths()
Deprecated.
Gets the number of months or
FIELD_UNDEFINED when this optional field is not defined. |
int |
getSeconds()
Deprecated.
Gets the number of seconds or
FIELD_UNDEFINED when this optional field is not defined. |
int |
getYears()
Deprecated.
Gets the number of years or
FIELD_UNDEFINED when this optional field is not defined. |
boolean |
isPositive()
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.
|
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.
|
public static final int FIELD_UNDEFINED
public int getYears()
FIELD_UNDEFINED
when this optional field is not defined.FIELD_UNDEFINED
when this optional field is not defined.public void setYears(int aYears)
aYears
- the number of years to be set.public int getMonths()
FIELD_UNDEFINED
when this optional field is not defined.FIELD_UNDEFINED
when this optional field is not defined.public void setMonths(int aMonths)
aMonths
- the number of months to be set.public int getDays()
FIELD_UNDEFINED
when this optional field is not defined.FIELD_UNDEFINED
when this optional field is not defined.public void setDays(int aDays)
aDays
- the number of days to be set.public int getHours()
FIELD_UNDEFINED
when this optional field is not defined.FIELD_UNDEFINED
when this optional field is not defined.public void setHours(int aHours)
aHours
- the number of hours to be set.public int getMinutes()
FIELD_UNDEFINED
when this optional field is not defined.FIELD_UNDEFINED
when this optional field is not defined.public void setMinutes(int aMinutes)
aMinutes
- the number of minutes to be set.public int getSeconds()
FIELD_UNDEFINED
when this optional field is not defined.FIELD_UNDEFINED
when this optional field is not defined.public void setSeconds(int aSeconds)
aSeconds
- the number of seconds to be set.public BigDecimal getFractionalSeconds()
public void setFractionalSeconds(BigDecimal aFractionalSeconds)
aFractionalSeconds
- the fractional seconds to be set.public boolean isPositive()
public void setPositive(boolean aIsPositive)
aIsPositive
- true if positive.public String toString()