public class TimeDuration extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, ITimeDuration, IXMLSerialize, IXMLVersionSupport, IClone, IPersistStream, IDocumentVersionSupportGEN, java.io.Externalizable
Description 'An object that represents a time duration value.' 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 long |
serialVersionUID |
IID, IID953dc994_aa0d_4193_9c1f_469b60d61711, xxDummyIID, IIDc8545045_6615_48e3_af27_52a0e5fc35e2, xxDummyIID, IID72ca65b9_13de_48b7_8443_717b69b72a99, xxDummyIID, IID9bff8aeb_e415_11d0_943c_080009eebecb, xxDummyIID, IID00000109_0000_0000_c000_000000000046, xxDummyIID0000010c_0000_0000_c000_000000000046| Constructor and Description |
|---|
TimeDuration()
Constructs a TimeDuration using ArcGIS Engine.
|
TimeDuration(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
TimeDuration theTimeDuration = (TimeDuration) obj; |
| 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.
|
void |
assign(IClone src)
Assigns the properties of src to the receiver.
|
int |
compare(ITimeDuration otherDuration)
Compares this time duration to the other time duration.
|
java.lang.Object |
convertToSupportedObject(int docVersion)
Convert the object to another object that is supported.
|
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone.
|
void |
getClassID(GUID[] pClassID)
getClassID
|
static java.lang.String |
getClsid()
getClsid.
|
int |
getDays()
The time duration days component.
|
int |
getHours()
The time duration hours component.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
java.lang.String |
getMinNamespaceSupported()
The minimum namespace the class can serialize to (eg the 90 namespace).
|
int |
getMinutes()
The time duration minutes component.
|
int |
getNanoseconds()
The time duration nanoseconds component.
|
int |
getSeconds()
The time duration seconds component.
|
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax
|
int |
hashCode()
the hashcode for this object
|
void |
isDirty()
isDirty
|
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties.
|
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object.
|
boolean |
isPositive()
Indicates whether the time duration value is positive or negative.
|
boolean |
isSupportedAtVersion(int docVersion)
Is this object valid at the given document version.
|
boolean |
isZero()
Indicates whether the time duration's value is zero.
|
void |
load(IStream pstm)
load
|
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 |
readExternal(java.io.ObjectInput in) |
void |
release()
Release this COM object reference
|
void |
reset()
Reset the time duration to zero.
|
void |
save(IStream pstm,
int fClearDirty)
save
|
void |
scale(double scaleFactor)
Scales the time duration by a scale factor.
|
void |
serialize(IXMLSerializeData data)
Serializes an object to XML.
|
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.
|
void |
writeExternal(java.io.ObjectOutput out) |
public static final long serialVersionUID
public TimeDuration()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problemsjava.net.UnknownHostException - if there are interop problemspublic TimeDuration(java.lang.Object obj)
throws java.io.IOException
TimeDuration theTimeDuration = (TimeDuration) obj;obj to TimeDuration.obj - an object returned from ArcGIS Engine or Serverjava.io.IOException - if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRefpublic void release()
release in interface com.esri.arcgis.interop.RemoteObjRefpublic int getDays()
throws java.io.IOException,
AutomationException
getDays in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setDays(int days)
throws java.io.IOException,
AutomationException
setDays in interface ITimeDurationdays - The days (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public int getHours()
throws java.io.IOException,
AutomationException
getHours in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setHours(int hours)
throws java.io.IOException,
AutomationException
setHours in interface ITimeDurationhours - The hours (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public int getMinutes()
throws java.io.IOException,
AutomationException
getMinutes in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setMinutes(int minutes)
throws java.io.IOException,
AutomationException
setMinutes in interface ITimeDurationminutes - The minutes (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public int getSeconds()
throws java.io.IOException,
AutomationException
getSeconds in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setSeconds(int seconds)
throws java.io.IOException,
AutomationException
setSeconds in interface ITimeDurationseconds - The seconds (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public int getNanoseconds()
throws java.io.IOException,
AutomationException
getNanoseconds in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setNanoseconds(int nanoseconds)
throws java.io.IOException,
AutomationException
setNanoseconds in interface ITimeDurationnanoseconds - The nanoseconds (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isPositive()
throws java.io.IOException,
AutomationException
isPositive in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setPositive(boolean positive)
throws java.io.IOException,
AutomationException
setPositive in interface ITimeDurationpositive - The positive (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public _WKSTimeDuration queryWKSTimeDuration() throws java.io.IOException, AutomationException
queryWKSTimeDuration in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setFromWKSTimeDuration(_WKSTimeDuration timeDuration) throws java.io.IOException, AutomationException
setFromWKSTimeDuration in interface ITimeDurationtimeDuration - 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.public java.lang.String queryXMLTimeDurationString()
throws java.io.IOException,
AutomationException
queryXMLTimeDurationString in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setFromXMLTimeDurationString(java.lang.String xmlTimeDurationString)
throws java.io.IOException,
AutomationException
setFromXMLTimeDurationString in interface ITimeDurationxmlTimeDurationString - The xmlTimeDurationString (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void addWeeks(double value)
throws java.io.IOException,
AutomationException
addWeeks in interface ITimeDurationvalue - The value (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void addDays(double value)
throws java.io.IOException,
AutomationException
addDays in interface ITimeDurationvalue - The value (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void addHours(double value)
throws java.io.IOException,
AutomationException
addHours in interface ITimeDurationvalue - The value (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void addMinutes(double value)
throws java.io.IOException,
AutomationException
addMinutes in interface ITimeDurationvalue - The value (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void addSeconds(double value)
throws java.io.IOException,
AutomationException
addSeconds in interface ITimeDurationvalue - The value (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void addMilliseconds(double value)
throws java.io.IOException,
AutomationException
addMilliseconds in interface ITimeDurationvalue - The value (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void addNanoseconds(long value)
throws java.io.IOException,
AutomationException
addNanoseconds in interface ITimeDurationvalue - Signed 64-bit int (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double queryTotalDays()
throws java.io.IOException,
AutomationException
queryTotalDays in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double queryTotalHours()
throws java.io.IOException,
AutomationException
queryTotalHours in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double queryTotalMinutes()
throws java.io.IOException,
AutomationException
queryTotalMinutes in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double queryTotalSeconds()
throws java.io.IOException,
AutomationException
queryTotalSeconds in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double queryDayFraction()
throws java.io.IOException,
AutomationException
queryDayFraction in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setDayFraction(double dayFraction)
throws java.io.IOException,
AutomationException
setDayFraction in interface ITimeDurationdayFraction - The dayFraction (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public long queryDayFractionNanoseconds()
throws java.io.IOException,
AutomationException
queryDayFractionNanoseconds in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setDayFractionNanoseconds(long dayFractionNanoseconds)
throws java.io.IOException,
AutomationException
setDayFractionNanoseconds in interface ITimeDurationdayFractionNanoseconds - Signed 64-bit int (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public long queryTicks()
throws java.io.IOException,
AutomationException
queryTicks in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setFromTicks(long ticks)
throws java.io.IOException,
AutomationException
setFromTicks in interface ITimeDurationticks - Signed 64-bit int (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void reset()
throws java.io.IOException,
AutomationException
reset in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void scale(double scaleFactor)
throws java.io.IOException,
AutomationException
scale in interface ITimeDurationscaleFactor - The scaleFactor (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void addDuration(ITimeDuration timeDuration) throws java.io.IOException, AutomationException
addDuration in interface ITimeDurationtimeDuration - 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.public void subtractDuration(ITimeDuration timeDuration) throws java.io.IOException, AutomationException
subtractDuration in interface ITimeDurationtimeDuration - 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.public boolean isZero()
throws java.io.IOException,
AutomationException
isZero in interface ITimeDurationjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public int compare(ITimeDuration otherDuration) throws java.io.IOException, AutomationException
compare in interface ITimeDurationotherDuration - 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.public void serialize(IXMLSerializeData data) throws java.io.IOException, AutomationException
serialize in interface IXMLSerializedata - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void deserialize(IXMLSerializeData data) throws java.io.IOException, AutomationException
deserialize in interface IXMLSerializedata - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String getMinNamespaceSupported()
throws java.io.IOException,
AutomationException
getMinNamespaceSupported in interface IXMLVersionSupportjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IClone esri_clone() throws java.io.IOException, AutomationException
esri_clone in interface IClonejava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void assign(IClone src) throws java.io.IOException, AutomationException
assign in interface IClonesrc - A reference to a com.esri.arcgis.system.IClone (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws java.io.IOException, AutomationException
isEqual in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws java.io.IOException, AutomationException
isIdentical in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void isDirty()
throws java.io.IOException,
AutomationException
isDirty in interface IPersistStreamjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void load(IStream pstm) throws java.io.IOException, AutomationException
load in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws java.io.IOException, AutomationException
save in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)fClearDirty - The fClearDirty (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws java.io.IOException, AutomationException
getSizeMax in interface IPersistStreampcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws java.io.IOException, AutomationException
getClassID in interface IPersistpClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isSupportedAtVersion(int docVersion)
throws java.io.IOException,
AutomationException
Use IsSupportedAtVersion to identify if a particular object should be saved to the ObjectStream. This result is based on the esriArcGISVersion enumeration. In some instances, if the object is not supported at a particular ArcGIS version, the object may support conversion to another similar object; use IDocumentVersionSupportGEN::ConvertToSupportedObject to accomplish this.
isSupportedAtVersion in interface IDocumentVersionSupportGENdocVersion - A com.esri.arcgis.system.esriArcGISVersion constant (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.Object convertToSupportedObject(int docVersion)
throws java.io.IOException,
AutomationException
This method should be used when IDocumentVersionSupportGEN::IsSupportedAtVersion returns FALSE. Calling ConvertToSupportedObject will return an IUnknown pointer to a relevant object supported at the particular ArcGIS version. Not all objects will return a supported object; in these cases a null pointer will be returned.
convertToSupportedObject in interface IDocumentVersionSupportGENdocVersion - A com.esri.arcgis.system.esriArcGISVersion constant (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException