com.esri.arcgis.system
Class TimeZoneFactory

java.lang.Object
  extended by com.esri.arcgis.system.TimeZoneFactory
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, ITimeZoneFactory, ITimeZoneFactory2, java.io.Serializable

public class TimeZoneFactory
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, ITimeZoneFactory, ITimeZoneFactory2

COM Class 'TimeZoneFactory'. Generated 3/19/2015 1:20:47 PM from 'C:\ArcGIS\COM\esriSystem.olb'

Description 'An object that creates TimeZoneInfo instances.' 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 =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.system.ITimeZoneFactory2
IID, IID4caa06be_7199_40b3_adb6_78bae35d5227, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.ITimeZoneFactory
IID1b4768dd_508e_4946_ab04_e042dfceb29f
 
Constructor Summary
TimeZoneFactory()
          Constructs a TimeZoneFactory using ArcGIS Engine.
TimeZoneFactory(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
TimeZoneFactory theTimeZoneFactory = (TimeZoneFactory) obj;
 
Method Summary
 ILocaleInfo createLocaleInfoFromLocaleID(int localeID)
          Obtains the locale display name that corresponds to the given locale ID.
 ITimeReference createTimeReferenceFromWindowsID(java.lang.String windowsID)
          Creates a time reference from a windows ID.
 ITimeZoneInfo createTimeZoneInfoFromWindowsID(java.lang.String windowsID)
          Creates a time zone info from a windows ID.
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 int getFirstLocaleID()
          The first locale ID.
 java.lang.String getFirstTimeZoneWindowsID()
          The first time zone windows ID.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int getNextLocaleID(int currenteLocaleID)
          The locale ID that cyclicly proceeds the given locale ID.
 java.lang.String getNextTimeZoneWindowsID(java.lang.String currentTimeZoneWindowsID)
          The time zone windows ID that cyclicly proceeds the given time zone windows ID.
 int hashCode()
          the hashcode for this object
 boolean isValidLocaleID(int localeID)
          Returns whether a given locale ID is valid for creating a locale info.
 boolean isValidTimeZoneWindowsID(java.lang.String windowsID)
          Returns whether a given time zone windows ID is valid for creating a time zone info or a time reference.
 ITimeReference queryLocalTimeReference(boolean exactMatch)
          Obtains the machine's current local time reference.
 java.lang.String queryLocalTimeZoneWindowsID()
          Obtains the machine's current local time zone Windows ID.
 java.lang.String[] queryTimeZoneOlsonIDsFromWindowsID(java.lang.String windowsID)
          Obtains all the olson time zone IDs that correspond to the given time zone windows ID.
 java.lang.String queryTimeZoneWindowsIDFromOlsonID(java.lang.String olsonID)
          Returns the time zone windows ID that corresponds to the given olson time zone ID.
 void release()
          Release a TimeZoneFactory.
 void reloadTimeZones(java.lang.String fileName)
          Reload time zones.
 void saveTimeZones(java.lang.String fileName)
          Save time zones.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeZoneFactory

public TimeZoneFactory()
                throws java.io.IOException,
                       java.net.UnknownHostException
Constructs a TimeZoneFactory using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

TimeZoneFactory

public TimeZoneFactory(java.lang.Object obj)
                throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
TimeZoneFactory theTimeZoneFactory = (TimeZoneFactory) obj;

Construct a TimeZoneFactory using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to TimeZoneFactory.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a TimeZoneFactory.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

createTimeZoneInfoFromWindowsID

public ITimeZoneInfo createTimeZoneInfoFromWindowsID(java.lang.String windowsID)
                                              throws java.io.IOException,
                                                     AutomationException
Creates a time zone info from a windows ID.

Specified by:
createTimeZoneInfoFromWindowsID in interface ITimeZoneFactory
Parameters:
windowsID - The windowsID (in)
Returns:
A reference to a com.esri.arcgis.system.ITimeZoneInfo
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createTimeReferenceFromWindowsID

public ITimeReference createTimeReferenceFromWindowsID(java.lang.String windowsID)
                                                throws java.io.IOException,
                                                       AutomationException
Creates a time reference from a windows ID.

Specified by:
createTimeReferenceFromWindowsID in interface ITimeZoneFactory
Parameters:
windowsID - The windowsID (in)
Returns:
A reference to a com.esri.arcgis.system.ITimeReference
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryTimeZoneWindowsIDFromOlsonID

public java.lang.String queryTimeZoneWindowsIDFromOlsonID(java.lang.String olsonID)
                                                   throws java.io.IOException,
                                                          AutomationException
Returns the time zone windows ID that corresponds to the given olson time zone ID.

Specified by:
queryTimeZoneWindowsIDFromOlsonID in interface ITimeZoneFactory
Parameters:
olsonID - The olsonID (in)
Returns:
The windowsID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryTimeZoneOlsonIDsFromWindowsID

public java.lang.String[] queryTimeZoneOlsonIDsFromWindowsID(java.lang.String windowsID)
                                                      throws java.io.IOException,
                                                             AutomationException
Obtains all the olson time zone IDs that correspond to the given time zone windows ID.

Specified by:
queryTimeZoneOlsonIDsFromWindowsID in interface ITimeZoneFactory
Parameters:
windowsID - The windowsID (in)
Returns:
The olsonIDs
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryLocalTimeZoneWindowsID

public java.lang.String queryLocalTimeZoneWindowsID()
                                             throws java.io.IOException,
                                                    AutomationException
Obtains the machine's current local time zone Windows ID.

Specified by:
queryLocalTimeZoneWindowsID in interface ITimeZoneFactory
Returns:
The localTimeZoneWindowsID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFirstTimeZoneWindowsID

public java.lang.String getFirstTimeZoneWindowsID()
                                           throws java.io.IOException,
                                                  AutomationException
The first time zone windows ID.

Specified by:
getFirstTimeZoneWindowsID in interface ITimeZoneFactory
Returns:
The firstTimeZoneWindowsID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNextTimeZoneWindowsID

public java.lang.String getNextTimeZoneWindowsID(java.lang.String currentTimeZoneWindowsID)
                                          throws java.io.IOException,
                                                 AutomationException
The time zone windows ID that cyclicly proceeds the given time zone windows ID.

Specified by:
getNextTimeZoneWindowsID in interface ITimeZoneFactory
Parameters:
currentTimeZoneWindowsID - The currentTimeZoneWindowsID (in)
Returns:
The nextTimeZoneWindowsID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFirstLocaleID

public int getFirstLocaleID()
                     throws java.io.IOException,
                            AutomationException
The first locale ID.

Specified by:
getFirstLocaleID in interface ITimeZoneFactory
Returns:
The firstLocaleID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNextLocaleID

public int getNextLocaleID(int currenteLocaleID)
                    throws java.io.IOException,
                           AutomationException
The locale ID that cyclicly proceeds the given locale ID.

Specified by:
getNextLocaleID in interface ITimeZoneFactory
Parameters:
currenteLocaleID - The currenteLocaleID (in)
Returns:
The nextLocaleID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createLocaleInfoFromLocaleID

public ILocaleInfo createLocaleInfoFromLocaleID(int localeID)
                                         throws java.io.IOException,
                                                AutomationException
Obtains the locale display name that corresponds to the given locale ID.

Specified by:
createLocaleInfoFromLocaleID in interface ITimeZoneFactory
Parameters:
localeID - The localeID (in)
Returns:
A reference to a com.esri.arcgis.system.ILocaleInfo
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isValidTimeZoneWindowsID

public boolean isValidTimeZoneWindowsID(java.lang.String windowsID)
                                 throws java.io.IOException,
                                        AutomationException
Returns whether a given time zone windows ID is valid for creating a time zone info or a time reference.

Specified by:
isValidTimeZoneWindowsID in interface ITimeZoneFactory
Parameters:
windowsID - The windowsID (in)
Returns:
The isValid
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isValidLocaleID

public boolean isValidLocaleID(int localeID)
                        throws java.io.IOException,
                               AutomationException
Returns whether a given locale ID is valid for creating a locale info.

Specified by:
isValidLocaleID in interface ITimeZoneFactory
Parameters:
localeID - The localeID (in)
Returns:
The isValid
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryLocalTimeReference

public ITimeReference queryLocalTimeReference(boolean exactMatch)
                                       throws java.io.IOException,
                                              AutomationException
Obtains the machine's current local time reference. Set exactMatch to true to ensure exact retrieval of a customized machine's local time reference, or to false to obtain a pre-defined time reference, which is the closest match to the machine's current local t?T???&

Specified by:
queryLocalTimeReference in interface ITimeZoneFactory2
Parameters:
exactMatch - The exactMatch (in)
Returns:
A reference to a com.esri.arcgis.system.ITimeReference
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reloadTimeZones

public void reloadTimeZones(java.lang.String fileName)
                     throws java.io.IOException,
                            AutomationException
Reload time zones.

Specified by:
reloadTimeZones in interface ITimeZoneFactory2
Parameters:
fileName - The fileName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

saveTimeZones

public void saveTimeZones(java.lang.String fileName)
                   throws java.io.IOException,
                          AutomationException
Save time zones.

Specified by:
saveTimeZones in interface ITimeZoneFactory2
Parameters:
fileName - The fileName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.