org.jinterop.dcom.core
Class JIParameterObject

java.lang.Object
  extended by org.jinterop.dcom.core.JIParameterObject
All Implemented Interfaces:
java.io.Serializable

public final class JIParameterObject
extends java.lang.Object
implements java.io.Serializable

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();
paramObject.addInParamAsObject(new JIPointer(JIInterfacePointer.class,false), JIFlags.FLAG_NULL);
paramObject.addInParamAsType(JIVariant.class,JIFlags.FLAG_NULL);
and the Java implementation must return an Object[] in this case, for returning the 2 params back.


Please refer to MSInternetExplorer example for more details on how to use this class.

Since:
1.0
See Also:
Serialized Form

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

JIParameterObject

public JIParameterObject()
Method Detail

addInParamAsType

public void addInParamAsType(java.lang.Class clazz,
                             int FLAGS)
Add IN parameter of the type clazz at the end of the out parameter list.

Parameters:
clazz -
FLAGS -

addInParamAsObject

public void addInParamAsObject(java.lang.Object param,
                               int FLAGS)
Add IN parameter at the end of the out parameter list. Typically callers are composite in nature JIStruct, JIUnions, JIPointer and JIString .

Parameters:
param -
FLAGS -

removeInParamAt

public void removeInParamAt(int index,
                            int FLAGS)
Removes IN parameter at the specified index from the Parameter list.

Parameters:
index - 0 based index
FLAGS - from JIFlags (if need be).