|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jinterop.dcom.core.JIParameterObject
public final class JIParameterObject
Provides a way to express parameters for a particular method. These are only In Params the
Out params are decided at the implementation level. If the IDL method being described by this
class is returning multiple objects then use the return type of the implementation as an Object[]
For example:-
IDL from Microsoft Internet Explorer is:-
[id(0x000000fb), helpstring("A new, hidden, non-navigated WebBrowser window is needed.")]
void NewWindow2( [in, out] IDispatch** ppDisp,
[in, out] VARIANT_BOOL* Cancel);
Corresponding JIParameterObject
would be :-
JIParameterObject paramObject = new JIParameterObject();
and the Java implementation must return an
paramObject.addInParamAsObject(new JIPointer(JIInterfacePointer.class,false), JIFlags.FLAG_NULL);
paramObject.addInParamAsType(JIVariant.class,JIFlags.FLAG_NULL);
Object[]
in this case, for returning the 2 params back.
Constructor Summary | |
---|---|
JIParameterObject()
|
Method Summary | |
---|---|
void |
addInParamAsObject(java.lang.Object param,
int FLAGS)
Add IN parameter at the end of the out parameter list. |
void |
addInParamAsType(java.lang.Class clazz,
int FLAGS)
Add IN parameter of the type clazz at the end of the out parameter list. |
void |
removeInParamAt(int index,
int FLAGS)
Removes IN parameter at the specified index from the Parameter list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JIParameterObject()
Method Detail |
---|
public void addInParamAsType(java.lang.Class clazz, int FLAGS)
clazz
at the end of the out parameter list.
clazz
- FLAGS
- public void addInParamAsObject(java.lang.Object param, int FLAGS)
param
- FLAGS
- public void removeInParamAt(int index, int FLAGS)
index
- 0 based indexFLAGS
- from JIFlags (if need be).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |