|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.automation.IDispatch
public class IDispatch
| Field Summary | |
|---|---|
int |
m_pIDispatch
|
| Constructor Summary | |
|---|---|
|
IDispatch()
Default c'tor This class is a wrapper for COM's IDispatch This class can be used in javascript, through a predefined javascript object, COMProxy. |
protected |
IDispatch(int pDisp)
c'tor this only gets called from JNI |
|
IDispatch(String progid)
This class is a wrapper for COM's IDispatch It can be used in javascript, through a predefined javascript object, COMProxy. |
| Method Summary | |
|---|---|
static VARIANT |
call(Object disp,
String name,
Object[] args)
Calls invoke. |
static String |
CLSIDfromProgID(String progID)
Gets CLSID for the specified progID |
void |
createInstance(String progid)
Creates a single uninitialized object of the class associated with a specified PROGID |
static Vector |
enumMethods(Object disp)
enumerate methods/properties for the specified dispatch interface |
protected void |
finalize()
|
static int[] |
getIDsOfNames(Object disp,
int lcid,
String[] names)
Native call, calls contained COM's IDispatch's(m_pIDispatch) GetIDsOfNames Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs, which can be used on subsequent calls to IDispatch::Invoke. |
static VARIANT |
invoke(Object disp,
int dispID,
int wFlags,
Object[] oArg,
int[] uArgErr)
Provides access to properties and methods exposed by an object. |
static VARIANT |
invoke(Object disp,
String name,
int dispID,
int lcid,
int wFlags,
Object[] oArg,
int[] uArgErr)
Provides access to properties and methods exposed by an object. |
static VARIANT |
invoke(Object disp,
String name,
int wFlags,
Object[] oArg,
int[] uArgErr)
Provides access to properties and methods exposed by an object. |
static void |
invokeSubv(Object disp,
String name,
int dispID,
int lcid,
int wFlags,
VARIANT[] vArg,
int[] uArgErr)
eliminate _Guid arg in the invoke call |
static VARIANT |
invokev(Object disp,
int dispID,
int wFlags,
VARIANT[] vArg,
int[] uArgErr)
Calls invoke for the property/method exposed by the object |
static VARIANT |
invokev(Object disp,
String name,
int dispID,
int lcid,
int wFlags,
VARIANT[] vArg,
int[] uArgErr)
Native call, calls contained COM's IDispatch's(m_pIDispatch) invoke |
static VARIANT |
invokev(Object disp,
String name,
int wFlags,
VARIANT[] vArg,
int[] uArgErr)
Calls invoke for the property/method exposed by the object |
static VARIANT |
objectToVariant(Object o)
Converts an object to VARIANT, so that it can be passed to various function calls |
static VARIANT[] |
objectToVariant(Object[] o)
Converts an array of objects to array of VARIANTs, so that it can be passed to various function calls |
IDispatch |
QueryInterface(String iid)
Native call, calls contained COM's IDispatch's(m_pIDispatch)QueryInterface |
void |
release()
call this to explicitly release the com object before gc Native call, calls contained COM's IDispatch's(m_pIDispatch) Release Decrements reference count. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int m_pIDispatch
| Constructor Detail |
|---|
public IDispatch()
public IDispatch(String progid)
progid - the progID (Programmatic IDentifier)is a string that uniquely
identifies the COM object, stored in the registry and is of
the form: Project.ClassNameprotected IDispatch(int pDisp)
pDisp - pointer to pointer to COM's IDispatch| Method Detail |
|---|
public static VARIANT objectToVariant(Object o)
throws COMError
o - object to be converted to VARIANT
COMError - throws COMError if o cannot be converted to VARIANT
public static VARIANT[] objectToVariant(Object[] o)
throws COMError
o - array of objects to be converted to VARIANT
COMError - throws COMError if o cannot be converted to VARIANT
public IDispatch QueryInterface(String iid)
throws COMError
iid - Identifier of the interface being requested
COMError
public void createInstance(String progid)
throws COMError
progid - the progID (Programmatic IDentifier)
COMError - if instance cannot be createdpublic void release()
public static void invokeSubv(Object disp,
String name,
int dispID,
int lcid,
int wFlags,
VARIANT[] vArg,
int[] uArgErr)
throws COMError
disp - java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)name - name of method/property to be invokeddispID - Identifies the member. Use GetIDsOfNames or the object's
documentation to obtain the dispatch identifierlcid - The locale context in which to interpret arguments, currently
only LOCALE_SYSTEM_DEFAULT is supportedwFlags - Flags describing the context of the Invoke call, include:
Value Description 1>DISPATCH_METHOD 2>DISPATCH_PROPERTYGET
3>DISPATCH_PROPERTYPUT 4>DISPATCH_PROPERTYPUTREFvArg - array of arguments to be passed to the method invokeduArgErr - The index within rgvarg of the first argument that has an
error
COMError - if the method cannot be invoked
public static int[] getIDsOfNames(Object disp,
int lcid,
String[] names)
throws COMError
disp - java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)lcid - The locale context in which to interpret arguments, currently
only LOCALE_SYSTEM_DEFAULT is supportednames - array of method names
COMError
public static VARIANT call(Object disp,
String name,
Object[] args)
throws COMError
disp - java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)name - name of the method/property to be invoked.args - array of arguments to the method
COMError
public static VARIANT invoke(Object disp,
String name,
int dispID,
int lcid,
int wFlags,
Object[] oArg,
int[] uArgErr)
throws COMError
disp - java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)name - name of the method/property to be invoked.dispID - Identifies the member. Use GetIDsOfNames or the object's
documentation to obtain the dispatch identifierlcid - The locale context in which to interpret arguments, currently
only LOCALE_SYSTEM_DEFAULT is supportedwFlags - Flags describing the context of the Invoke call, include:
Value Description 1>DISPATCH_METHOD 2>DISPATCH_PROPERTYGET
3>DISPATCH_PROPERTYPUT 4>DISPATCH_PROPERTYPUTREFoArg - array of argumentsuArgErr - The index within rgvarg of the first argument that has an
error
COMError
public static VARIANT invoke(Object disp,
String name,
int wFlags,
Object[] oArg,
int[] uArgErr)
throws COMError
disp - java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)name - name of the method/property to be invoked.wFlags - Flags describing the context of the Invoke call, include:
Value Description 1>DISPATCH_METHOD 2>DISPATCH_PROPERTYGET
3>DISPATCH_PROPERTYPUT 4>DISPATCH_PROPERTYPUTREFoArg - array of argumentsuArgErr - The index within rgvarg of the first argument that has an
error
COMError
public static VARIANT invoke(Object disp,
int dispID,
int wFlags,
Object[] oArg,
int[] uArgErr)
throws COMError
disp - java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)dispID - Identifies the member. Use GetIDsOfNames or the object's
documentation to obtain the dispatch identifierwFlags - Flags describing the context of the Invoke call, include:
Value Description 1>DISPATCH_METHOD 2>DISPATCH_PROPERTYGET
3>DISPATCH_PROPERTYPUT 4>DISPATCH_PROPERTYPUTREFoArg - array of argumentsuArgErr - The index within rgvarg of the first argument that has an
error
COMError
public static VARIANT invokev(Object disp,
String name,
int dispID,
int lcid,
int wFlags,
VARIANT[] vArg,
int[] uArgErr)
throws COMError
disp - java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)name - name of the method/property to be invoked.dispID - Identifies the member. Use GetIDsOfNames or the object's
documentation to obtain the dispatch identifierlcid - The locale context in which to interpret arguments, currently
only LOCALE_SYSTEM_DEFAULT is supportedwFlags - Flags describing the context of the Invoke call, include:
Value Description 1>DISPATCH_METHOD 2>DISPATCH_PROPERTYGET
3>DISPATCH_PROPERTYPUT 4>DISPATCH_PROPERTYPUTREFvArg - array of argumentsuArgErr - The index within rgvarg of the first argument that has an
error
COMError
public static VARIANT invokev(Object disp,
String name,
int wFlags,
VARIANT[] vArg,
int[] uArgErr)
throws COMError
disp - java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)name - name of the method/property to be invoked.wFlags - Flags describing the context of the Invoke call, include:
Value Description 1>DISPATCH_METHOD 2>DISPATCH_PROPERTYGET
3>DISPATCH_PROPERTYPUT 4>DISPATCH_PROPERTYPUTREFvArg - array of argumentsuArgErr - The index within rgvarg of the first argument that has an
error
COMError
public static VARIANT invokev(Object disp,
int dispID,
int wFlags,
VARIANT[] vArg,
int[] uArgErr)
throws COMError
disp - java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)dispID - Identifies the member. Use GetIDsOfNames or the object's
documentation to obtain the dispatch identifierwFlags - Flags describing the context of the Invoke call, include:
Value Description 1>DISPATCH_METHOD 2>DISPATCH_PROPERTYGET
3>DISPATCH_PROPERTYPUT 4>DISPATCH_PROPERTYPUTREFvArg - array of argumentsuArgErr - The index within rgvarg of the first argument that has an
error
COMError
public static String CLSIDfromProgID(String progID)
throws COMError
progID - the progID (Programmatic Identifier) for which CLSID is
requested
COMError
public static Vector enumMethods(Object disp)
throws COMError
disp - java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)
COMErrorprotected void finalize()
finalize in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||