1 | // tlb2java |
2 | package com.moesol.tests.disp.com_server; |
3 | |
4 | |
5 | /** |
6 | * <code>IDL: [ helpstring("DispWithProperties"), dispatchable ] interface</code> |
7 | */ |
8 | public interface DispWithProperties extends com.moesol.bindings.platform_sdk.component_services.IDispatch { |
9 | public static final Class TYPELIB = TYPELIB_E149EE62_34AE_4D0A_B9E2_3ACA3FAD59F8.class; |
10 | /** |
11 | * <code>IDL: [uuid(98463109-7270-4922-9BF1-87EDDF5D11C3)]</code> |
12 | */ |
13 | public static final com.moesol.bindings.platform_sdk.component_services.GUID IID = new com.moesol.bindings.platform_sdk.component_services.GUID( |
14 | 0x98463109, (short)0x7270, (short)0x4922, |
15 | new byte[] { |
16 | (byte)0x9b, (byte)0xf1, |
17 | (byte)0x87, (byte)0xed, (byte)0xdf, (byte)0x5d, (byte)0x11, (byte)0xc3 |
18 | } ); |
19 | |
20 | /** |
21 | * <code>IDL: [ helpstring("") ]</code> |
22 | * |
23 | * @param aInt |
24 | * <code>IDL: [in] INT</code> |
25 | * @param aBstr |
26 | * <code>IDL: [in] BSTR</code> |
27 | * @param aShort |
28 | * <code>IDL: [in] SHORT</code> |
29 | */ |
30 | public void Method( |
31 | /*[in]*/ int aInt, |
32 | /*[in]*/ String aBstr, |
33 | /*[in]*/ short aShort); |
34 | |
35 | |
36 | /** <em>Implementation</em>, <small>Java to COM</small>. */ |
37 | public static class Jni extends com.moesol.bindings.platform_sdk.component_services.IDispatch.Jni implements DispWithProperties { |
38 | |
39 | protected Jni () { |
40 | } |
41 | protected void internalOnSetInterface() { |
42 | MoeSolInternal.recordApartment(this); |
43 | } |
44 | |
45 | |
46 | //readonlyInt |
47 | //aBstr |
48 | //Short |
49 | public void Method( |
50 | /*[in]*/ int p0, |
51 | /*[in]*/ String p1, |
52 | /*[in]*/ short p2) { |
53 | |
54 | MoeSolInternal.checkApartment(this); |
55 | Object[] dispParams = new Object[3]; |
56 | Object[] out_result = new Object[1]; |
57 | |
58 | dispParams[0] = com.moesol.bindings.platform_sdk.component_services.VARIANT.makeINT(p0); // INT |
59 | dispParams[1] = com.moesol.bindings.platform_sdk.component_services.VARIANT.wrapBSTR(p1); // BSTR |
60 | dispParams[2] = com.moesol.bindings.platform_sdk.component_services.VARIANT.makeI2(p2); // SHORT |
61 | |
62 | Invoke(3, null, 0, DISPATCH_METHOD, dispParams, out_result); |
63 | return ; // void |
64 | } |
65 | |
66 | } |
67 | |
68 | /** <em>Implementation</em>, <small>COM to Java</small>. */ |
69 | public static class Disp extends com.moesol.bindings.platform_sdk.component_services.IDispatch.Disp { |
70 | public static com.moesol.bindings.platform_sdk.component_services.IUnknown.Disp instance() { |
71 | return s_instance; |
72 | } |
73 | |
74 | private static Disp s_instance = new Disp(); |
75 | |
76 | protected Disp() { |
77 | addEntry(3, (short)1, "Method", "(ILjava/lang/String;S)V"); |
78 | } |
79 | } |
80 | } |