public interface ITimeDuration
extends java.io.Serializable
Description: 'Provides access to members that control the Time Duration.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IID
Deprecated.
Internal use only
|
static int |
IID953dc994_aa0d_4193_9c1f_469b60d61711 |
static int |
xxDummy
Deprecated.
Internal use only
|
Modifier and Type | Method and Description |
---|---|
void |
addDays(double value)
Adds the input amount of days to the time duration.
|
void |
addDuration(ITimeDuration timeDuration)
Adds a time duration.
|
void |
addHours(double value)
Adds the input amount of hours to the time duration.
|
void |
addMilliseconds(double value)
Adds the input amount of milliseconds to the time duration.
|
void |
addMinutes(double value)
Adds the input amount of minutes to the time duration.
|
void |
addNanoseconds(long value)
Adds the input amount of nanoseconds to the time duration.
|
void |
addSeconds(double value)
Adds the input amount of seconds to the time duration.
|
void |
addWeeks(double value)
Adds the input amount of weeks to the time duration.
|
int |
compare(ITimeDuration otherDuration)
Compares this time duration to the other time duration.
|
int |
getDays()
The time duration days component.
|
int |
getHours()
The time duration hours component.
|
int |
getMinutes()
The time duration minutes component.
|
int |
getNanoseconds()
The time duration nanoseconds component.
|
int |
getSeconds()
The time duration seconds component.
|
boolean |
isPositive()
Indicates whether the time duration value is positive or negative.
|
boolean |
isZero()
Indicates whether the time duration's value is zero.
|
double |
queryDayFraction()
The time duration day fraction portion as a day fraction.
|
long |
queryDayFractionNanoseconds()
The time duration day fraction portion as the number of nanoseconds elapsed since midnight.
|
long |
queryTicks()
Obtains the time duration as the number of ticks.
|
double |
queryTotalDays()
Obtains the time duration as total days floating point value.
|
double |
queryTotalHours()
Obtains the time duration as total hours floating point value.
|
double |
queryTotalMinutes()
Obtains the time duration as total minutes floating point value.
|
double |
queryTotalSeconds()
Obtains the time duration as total seconds floating point value.
|
_WKSTimeDuration |
queryWKSTimeDuration()
Obtains time as a WKSTimeDuration.
|
java.lang.String |
queryXMLTimeDurationString()
Obtains the time duration as an XML time duration string.
|
void |
reset()
Reset the time duration to zero.
|
void |
scale(double scaleFactor)
Scales the time duration by a scale factor.
|
void |
setDayFraction(double dayFraction)
The time duration day fraction portion as a day fraction.
|
void |
setDayFractionNanoseconds(long dayFractionNanoseconds)
The time duration day fraction portion as the number of nanoseconds elapsed since midnight.
|
void |
setDays(int days)
The time duration days component.
|
void |
setFromTicks(long ticks)
Writes the time duration from a given number of ticks.
|
void |
setFromWKSTimeDuration(_WKSTimeDuration timeDuration)
Writes the time from a given WKSTimeDuration value.
|
void |
setFromXMLTimeDurationString(java.lang.String xmlTimeDurationString)
Writes the time duration from an XML time duration string.
|
void |
setHours(int hours)
The time duration hours component.
|
void |
setMinutes(int minutes)
The time duration minutes component.
|
void |
setNanoseconds(int nanoseconds)
The time duration nanoseconds component.
|
void |
setPositive(boolean positive)
Indicates whether the time duration value is positive or negative.
|
void |
setSeconds(int seconds)
The time duration seconds component.
|
void |
subtractDuration(ITimeDuration timeDuration)
Subtracts a time duration.
|
static final int IID953dc994_aa0d_4193_9c1f_469b60d61711
static final int xxDummy
static final java.lang.String IID
int getDays() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void setDays(int days) throws java.io.IOException, AutomationException
days
- The days (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.int getHours() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void setHours(int hours) throws java.io.IOException, AutomationException
hours
- The hours (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.int getMinutes() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void setMinutes(int minutes) throws java.io.IOException, AutomationException
minutes
- The minutes (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.int getSeconds() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void setSeconds(int seconds) throws java.io.IOException, AutomationException
seconds
- The seconds (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.int getNanoseconds() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void setNanoseconds(int nanoseconds) throws java.io.IOException, AutomationException
nanoseconds
- The nanoseconds (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.boolean isPositive() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void setPositive(boolean positive) throws java.io.IOException, AutomationException
positive
- The positive (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception._WKSTimeDuration queryWKSTimeDuration() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void setFromWKSTimeDuration(_WKSTimeDuration timeDuration) throws java.io.IOException, AutomationException
timeDuration
- A Structure: com.esri.arcgis.system._WKSTimeDuration (A com.esri.arcgis.system._WKSTimeDuration COM typedef) (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.java.lang.String queryXMLTimeDurationString() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void setFromXMLTimeDurationString(java.lang.String xmlTimeDurationString) throws java.io.IOException, AutomationException
xmlTimeDurationString
- The xmlTimeDurationString (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addWeeks(double value) throws java.io.IOException, AutomationException
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addDays(double value) throws java.io.IOException, AutomationException
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addHours(double value) throws java.io.IOException, AutomationException
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addMinutes(double value) throws java.io.IOException, AutomationException
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addSeconds(double value) throws java.io.IOException, AutomationException
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addMilliseconds(double value) throws java.io.IOException, AutomationException
value
- The value (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addNanoseconds(long value) throws java.io.IOException, AutomationException
value
- Signed 64-bit int (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.double queryTotalDays() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.double queryTotalHours() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.double queryTotalMinutes() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.double queryTotalSeconds() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.double queryDayFraction() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void setDayFraction(double dayFraction) throws java.io.IOException, AutomationException
dayFraction
- The dayFraction (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.long queryDayFractionNanoseconds() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void setDayFractionNanoseconds(long dayFractionNanoseconds) throws java.io.IOException, AutomationException
dayFractionNanoseconds
- Signed 64-bit int (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.long queryTicks() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void setFromTicks(long ticks) throws java.io.IOException, AutomationException
ticks
- Signed 64-bit int (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void reset() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void scale(double scaleFactor) throws java.io.IOException, AutomationException
scaleFactor
- The scaleFactor (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void addDuration(ITimeDuration timeDuration) throws java.io.IOException, AutomationException
timeDuration
- A reference to a com.esri.arcgis.system.ITimeDuration (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.void subtractDuration(ITimeDuration timeDuration) throws java.io.IOException, AutomationException
timeDuration
- A reference to a com.esri.arcgis.system.ITimeDuration (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.boolean isZero() throws java.io.IOException, AutomationException
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.int compare(ITimeDuration otherDuration) throws java.io.IOException, AutomationException
otherDuration
- A reference to a com.esri.arcgis.system.ITimeDuration (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.