|
||||||||||
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(java.lang.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(java.lang.Object disp,
java.lang.String name,
java.lang.Object[] args)
Calls invoke. |
static java.lang.String |
CLSIDfromProgID(java.lang.String progID)
Gets CLSID for the specified progID |
void |
createInstance(java.lang.String progid)
Creates a single uninitialized object of the class associated with a specified PROGID |
static java.util.Vector |
enumMethods(java.lang.Object disp)
enumerate methods/properties for the specified dispatch interface |
protected void |
finalize()
|
static int[] |
getIDsOfNames(java.lang.Object disp,
int lcid,
java.lang.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(java.lang.Object disp,
int dispID,
int wFlags,
java.lang.Object[] oArg,
int[] uArgErr)
Provides access to properties and methods exposed by an object. |
static VARIANT |
invoke(java.lang.Object disp,
java.lang.String name,
int dispID,
int lcid,
int wFlags,
java.lang.Object[] oArg,
int[] uArgErr)
Provides access to properties and methods exposed by an object. |
static VARIANT |
invoke(java.lang.Object disp,
java.lang.String name,
int wFlags,
java.lang.Object[] oArg,
int[] uArgErr)
Provides access to properties and methods exposed by an object. |
static void |
invokeSubv(java.lang.Object disp,
java.lang.String name,
int dispID,
int lcid,
int wFlags,
VARIANT[] vArg,
int[] uArgErr)
eliminate _Guid arg in the invoke call |
static VARIANT |
invokev(java.lang.Object disp,
int dispID,
int wFlags,
VARIANT[] vArg,
int[] uArgErr)
Calls invoke for the property/method exposed by the object |
static VARIANT |
invokev(java.lang.Object disp,
java.lang.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(java.lang.Object disp,
java.lang.String name,
int wFlags,
VARIANT[] vArg,
int[] uArgErr)
Calls invoke for the property/method exposed by the object |
static VARIANT |
objectToVariant(java.lang.Object o)
Converts an object to VARIANT, so that it can be passed to various function calls |
static VARIANT[] |
objectToVariant(java.lang.Object[] o)
Converts an array of objects to array of VARIANTs, so that it can be passed to various function calls |
IDispatch |
QueryInterface(java.lang.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(java.lang.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 IDispatchMethod Detail |
---|
public static VARIANT objectToVariant(java.lang.Object o) throws COMError
o
- object to be converted to VARIANT
COMError
- throws COMError if o cannot be converted to VARIANTpublic static VARIANT[] objectToVariant(java.lang.Object[] o) throws COMError
o
- array of objects to be converted to VARIANT
COMError
- throws COMError if o cannot be converted to VARIANTpublic IDispatch QueryInterface(java.lang.String iid) throws COMError
iid
- Identifier of the interface being requested
COMError
public void createInstance(java.lang.String progid) throws COMError
progid
- the progID (Programmatic IDentifier)
COMError
- if instance cannot be createdpublic void release()
public static void invokeSubv(java.lang.Object disp, java.lang.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 invokedpublic static int[] getIDsOfNames(java.lang.Object disp, int lcid, java.lang.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(java.lang.Object disp, java.lang.String name, java.lang.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(java.lang.Object disp, java.lang.String name, int dispID, int lcid, int wFlags, java.lang.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(java.lang.Object disp, java.lang.String name, int wFlags, java.lang.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(java.lang.Object disp, int dispID, int wFlags, java.lang.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(java.lang.Object disp, java.lang.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(java.lang.Object disp, java.lang.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(java.lang.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 java.lang.String CLSIDfromProgID(java.lang.String progID) throws COMError
progID
- the progID (Programmatic Identifier) for which CLSID is
requested
COMError
public static java.util.Vector enumMethods(java.lang.Object disp) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)
COMError
protected void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |