com.esri.arcgis.version
Class VersionManager

java.lang.Object
  extended by com.esri.arcgis.version.VersionManager
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IArcGISVersion, IEnumVersions, IVersionHost, java.io.Serializable

public class VersionManager
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IArcGISVersion, IVersionHost, IEnumVersions

COM Class 'VersionManager'. Generated 3/19/2015 1:20:50 PM from 'c:\PROGRA~1\COMMON~1\ArcGIS\bin\ArcGISVersion.dll'

Description 'VersionManager Class' 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.version.IArcGISVersion
IID, IID4b666ca0_021e_408c_9abe_a1cc182729fa, xxDummy
 
Fields inherited from interface com.esri.arcgis.version.IVersionHost
IID, IIDa4092e33_e459_4b9c_b04e_263fb7a8e1d1, xxDummy
 
Fields inherited from interface com.esri.arcgis.version.IEnumVersions
IID, IID18f07a02_956a_4d44_979b_b006ecc81d93, xxDummy
 
Constructor Summary
VersionManager()
          Constructs a VersionManager using ArcGIS Engine.
VersionManager(java.lang.Object obj)
          Construct a VersionManager using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 java.lang.Object createObject(GUID clsid)
          Used to create objects within a remote host process such as dllhost.
 boolean equals(java.lang.Object o)
          Compare this object with another
 void getActiveVersion(int[] pCode, java.lang.String[] pVer, java.lang.String[] pPath)
          Returns the runtime that the calling application is currently bound to.
static java.lang.String getClsid()
          getClsid.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 void getVersions(IEnumVersions[] ppVersions)
          Returns an enumerator over the currently installed runtimes.
 int hashCode()
          the hashcode for this object
 boolean loadVersion(int productCode, java.lang.String engineVersion)
          Binds the client engine application against the specified ArcGIS runtime.
 void next(int[] pCode, java.lang.String[] pVer, java.lang.String[] path)
          Returns the next version in the sequence of installed versions.
 java.lang.String productNameFromCode(int __MIDL__IArcGISVersion0000)
          Returns a product name given a product code.
 void release()
          Release a VersionManager.
 void reset()
          Resets the enumerator to the beggining of the sequence.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionManager

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

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

VersionManager

public VersionManager(java.lang.Object obj)
               throws java.io.IOException
Construct a VersionManager using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to VersionManager.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems VersionManager theVersionManager = (VersionManager) obj;
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 VersionManager.

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

loadVersion

public boolean loadVersion(int productCode,
                           java.lang.String engineVersion)
                    throws java.io.IOException,
                           AutomationException
Binds the client engine application against the specified ArcGIS runtime.

Specified by:
loadVersion in interface IArcGISVersion
Parameters:
productCode - A com.esri.arcgis.version.esriProductCode constant (in)
engineVersion - The engineVersion (in)
Returns:
The succeeded
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getActiveVersion

public void getActiveVersion(int[] pCode,
                             java.lang.String[] pVer,
                             java.lang.String[] pPath)
                      throws java.io.IOException,
                             AutomationException
Returns the runtime that the calling application is currently bound to.

Specified by:
getActiveVersion in interface IArcGISVersion
Parameters:
pCode - A com.esri.arcgis.version.esriProductCode constant (out: use single element array)
pVer - The pVer (out: use single element array)
pPath - The pPath (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getVersions

public void getVersions(IEnumVersions[] ppVersions)
                 throws java.io.IOException,
                        AutomationException
Returns an enumerator over the currently installed runtimes.

Specified by:
getVersions in interface IArcGISVersion
Parameters:
ppVersions - A reference to a com.esri.arcgis.version.IEnumVersions (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

productNameFromCode

public java.lang.String productNameFromCode(int __MIDL__IArcGISVersion0000)
                                     throws java.io.IOException,
                                            AutomationException
Returns a product name given a product code.

Specified by:
productNameFromCode in interface IArcGISVersion
Parameters:
__MIDL__IArcGISVersion0000 - A com.esri.arcgis.version.esriProductCode constant (in)
Returns:
The pProductName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createObject

public java.lang.Object createObject(GUID clsid)
                              throws java.io.IOException,
                                     AutomationException
Used to create objects within a remote host process such as dllhost.

Specified by:
createObject in interface IVersionHost
Parameters:
clsid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Returns:
A reference to another Object (IUnknown)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reset

public void reset()
           throws java.io.IOException,
                  AutomationException
Resets the enumerator to the beggining of the sequence.

Specified by:
reset in interface IEnumVersions
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

next

public void next(int[] pCode,
                 java.lang.String[] pVer,
                 java.lang.String[] path)
          throws java.io.IOException,
                 AutomationException
Returns the next version in the sequence of installed versions.

Specified by:
next in interface IEnumVersions
Parameters:
pCode - A com.esri.arcgis.version.esriProductCode constant (out: use single element array)
pVer - The pVer (out: use single element array)
path - The path (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.