org.jinterop.dcom.core
Class JIProgId

java.lang.Object
  extended by org.jinterop.dcom.core.JIProgId

public class JIProgId
extends java.lang.Object

Wrapper class used to define user friendly ProgId. This class uses the WINREG service to get the mapping between the ProgId and the Clsid. The Winreg package of j-Interop is capable of querying the Windows registry in a platform independent way using SMB. The internal database is looked up first before making calls to WINREG service.

Since:
1.0

Method Summary
 JIClsid getCorrespondingCLSID()
          Gets the clsid for this ProgId.
 boolean isAutoRegistrationSet()
          Returns true is auto registration is enabled.
 void setAutoRegistration(boolean autoRegister)
          Pass true if, this is an OCX\DLL component and you want the library to do auto registration.
static JIProgId valueOf(JISession session, java.lang.String progId)
          Creates a JIProgId.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setAutoRegistration

public void setAutoRegistration(boolean autoRegister)
Pass true if, this is an OCX\DLL component and you want the library to do auto registration.

Parameters:
autoRegister -

isAutoRegistrationSet

public boolean isAutoRegistrationSet()
Returns true is auto registration is enabled.

Returns:

valueOf

public static JIProgId valueOf(JISession session,
                               java.lang.String progId)
Creates a JIProgId.

Parameters:
session -
progId -
Returns:

getCorrespondingCLSID

public JIClsid getCorrespondingCLSID()
                              throws JIException
Gets the clsid for this ProgId.

Returns:
Throws:
JIException