public class DateFormat extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, INumberFormat, IDateFormat, IClone, IPersist, IPersistStream, java.io.Externalizable
Description 'An object for formatting date time.' 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, IID7e4f470d_8e54_11d2_aad8_000000000000, xxDummyIID, IID9fa0d58f_3fc7_45b4_95a3_db8961ed6e00, xxDummyIID, IID9bff8aeb_e415_11d0_943c_080009eebecb, xxDummyIID, IID00000109_0000_0000_c000_000000000046, xxDummyIID0000010c_0000_0000_c000_000000000046| Constructor and Description |
|---|
DateFormat()
Constructs a DateFormat using ArcGIS Engine.
|
DateFormat(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
DateFormat theDateFormat = (DateFormat) obj; |
| Modifier and Type | Method and Description |
|---|---|
void |
assign(IClone src)
Assigns the properties of src to the receiver.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone.
|
void |
fromOADate(double oadate,
int[] year,
int[] month,
int[] day,
int[] hour,
int[] minute,
int[] second,
int[] millisecond,
int[] dayOfWeek)
Convert OADate to date time with the milliseconds preserved.
|
int |
getCalendar()
Calendar used for date time formating.
|
void |
getClassID(GUID[] pClassID)
getClassID
|
static java.lang.String |
getClsid()
getClsid.
|
java.lang.String |
getFormat()
Format used to convert date time to string, i.e., yyyy/MM/dd.
|
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 |
getLocale()
Locale used for date time formating, i.e., en-US, zh-CN, ja-JP.
|
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.
|
void |
load(IStream pstm)
load
|
void |
readExternal(java.io.ObjectInput in) |
void |
release()
Release this COM object reference
|
void |
save(IStream pstm,
int fClearDirty)
save
|
void |
setCalendar(int calendarType)
Calendar used for date time formating.
|
void |
setFormat(java.lang.String format)
Format used to convert date time to string, i.e., yyyy/MM/dd.
|
void |
setLocale(java.lang.String locale)
Locale used for date time formating, i.e., en-US, zh-CN, ja-JP.
|
double |
stringToValue(java.lang.String str)
Converts a formatted string to a numeric value.
|
double |
toOADate(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond)
Convert date time to OADate with the milliseconds preserved.
|
java.lang.String |
valueToString(double value)
Converts a numeric value to a formatted string.
|
void |
writeExternal(java.io.ObjectOutput out) |
public static final long serialVersionUID
public DateFormat()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problemsjava.net.UnknownHostException - if there are interop problemspublic DateFormat(java.lang.Object obj)
throws java.io.IOException
DateFormat theDateFormat = (DateFormat) obj;obj to DateFormat.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 java.lang.String valueToString(double value)
throws java.io.IOException,
AutomationException
valueToString in interface INumberFormatvalue - The value (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double stringToValue(java.lang.String str)
throws java.io.IOException,
AutomationException
stringToValue in interface INumberFormatstr - The str (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setFormat(java.lang.String format)
throws java.io.IOException,
AutomationException
setFormat in interface IDateFormatformat - The format (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String getFormat()
throws java.io.IOException,
AutomationException
getFormat in interface IDateFormatjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setLocale(java.lang.String locale)
throws java.io.IOException,
AutomationException
setLocale in interface IDateFormatlocale - The locale (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String getLocale()
throws java.io.IOException,
AutomationException
getLocale in interface IDateFormatjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setCalendar(int calendarType)
throws java.io.IOException,
AutomationException
setCalendar in interface IDateFormatcalendarType - A com.esri.arcgis.system.esriCalendarEnum constant (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public int getCalendar()
throws java.io.IOException,
AutomationException
getCalendar in interface IDateFormatjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double toOADate(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond)
throws java.io.IOException,
AutomationException
toOADate in interface IDateFormatyear - The year (in)month - The month (in)day - The day (in)hour - The hour (in)minute - The minute (in)second - The second (in)millisecond - The millisecond (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void fromOADate(double oadate,
int[] year,
int[] month,
int[] day,
int[] hour,
int[] minute,
int[] second,
int[] millisecond,
int[] dayOfWeek)
throws java.io.IOException,
AutomationException
fromOADate in interface IDateFormatoadate - The oadate (in)year - The year (out: use single element array)month - The month (out: use single element array)day - The day (out: use single element array)hour - The hour (out: use single element array)minute - The minute (out: use single element array)second - The second (out: use single element array)millisecond - The millisecond (out: use single element array)dayOfWeek - The dayOfWeek (out: use single element array)java.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 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 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 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