|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jinterop.dcom.core.JILocalParamsDescriptor
public final class JILocalParamsDescriptor
Provides a way to express parameters for a particular method. These are only [in]
parameters, the [out]
parameters 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.")]
Corresponding
void NewWindow2( [in, out] IDispatch** ppDisp,
[in, out] VARIANT_BOOL* Cancel); JILocalParamsDescriptor
would be :-
JILocalParamsDescriptor paramObject = new JILocalParamsDescriptor();
and the Java implementation must return an
paramObject.addInParamAsObject(new JIPointer(IJIComObject.class,false), JIFlags.FLAG_NULL);
paramObject.addInParamAsType(JIVariant.class,JIFlags.FLAG_NULL);
Object[]
in this case, for returning the 2 parameters back.
Please refer to MSInternetExplorer, Test_ITestServer2_Impl, SampleTestServer
and MSShell examples for more details on how to use this class.
Constructor Summary | |
---|---|
JILocalParamsDescriptor()
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JILocalParamsDescriptor()
Method Detail |
---|
public void addInParamAsType(java.lang.Class clazz, int FLAGS)
[in]
parameter of the type clazz
at the end of the out parameter list.
clazz
- FLAGS
- public void addInParamAsObject(java.lang.Object param, int FLAGS)
[in]
parameter at the end of the out parameter list. Typically callers are
composite in nature JIStruct
, JIUnions
, JIPointer
and JIString
.
param
- FLAGS
- public void removeInParamAt(int index, int FLAGS)
[in]
parameter at the specified index from the parameter list.
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 |