1 | // tlb2java |
2 | package com.moesol.tests.disp.com_server; |
3 | |
4 | |
5 | /** |
6 | * <code>IDL: [ helpstring("IDual Interface"), dual, dispatchable ] interface</code> |
7 | */ |
8 | public interface IExtraDual 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(A79B28C6-C2F0-4A8A-ABD0-9AA3AED4B928)]</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 | 0xa79b28c6, (short)0xc2f0, (short)0x4a8a, |
15 | new byte[] { |
16 | (byte)0xab, (byte)0xd0, |
17 | (byte)0x9a, (byte)0xa3, (byte)0xae, (byte)0xd4, (byte)0xb9, (byte)0x28 |
18 | } ); |
19 | |
20 | /** |
21 | * <code>IDL: [ helpstring("property PropBSTR") ]</code> |
22 | * |
23 | * @return |
24 | * <code>IDL: BSTR</code> |
25 | */ |
26 | public String getPropBSTR(); |
27 | |
28 | /** |
29 | * <code>IDL: [ helpstring("property PropBSTR") ]</code> |
30 | * |
31 | * @param rhs |
32 | * <code>IDL: [in] BSTR</code> |
33 | */ |
34 | public void setPropBSTR( |
35 | /*[in]*/ String rhs); |
36 | |
37 | |
38 | /** <em>Implementation</em>, <small>Java to COM</small>. */ |
39 | public static class Jni extends com.moesol.bindings.platform_sdk.component_services.IDispatch.Jni implements IExtraDual { |
40 | |
41 | protected Jni () { |
42 | } |
43 | protected void internalOnSetInterface() { |
44 | MoeSolInternal.recordApartment(this); |
45 | } |
46 | |
47 | |
48 | public String getPropBSTR() { |
49 | |
50 | MoeSolInternal.checkApartment(this); |
51 | Object[] dispParams = new Object[0]; |
52 | Object[] out_result = new Object[1]; |
53 | |
54 | |
55 | Invoke(1, null, 0, DISPATCH_PROPERTYGET, dispParams, out_result); |
56 | return ((String)out_result[0]); // BSTR |
57 | } |
58 | |
59 | public void setPropBSTR( |
60 | /*[in]*/ String p0) { |
61 | |
62 | MoeSolInternal.checkApartment(this); |
63 | Object[] dispParams = new Object[1]; |
64 | Object[] out_result = null; |
65 | |
66 | dispParams[0] = com.moesol.bindings.platform_sdk.component_services.VARIANT.wrapBSTR(p0); // BSTR |
67 | |
68 | Invoke(1, null, 0, DISPATCH_PROPERTYPUT, dispParams, out_result); |
69 | return ; // void |
70 | } |
71 | |
72 | } |
73 | |
74 | /** <em>Implementation</em>, <small>COM to Java</small>. */ |
75 | public static class Disp extends com.moesol.bindings.platform_sdk.component_services.IDispatch.Disp { |
76 | public static com.moesol.bindings.platform_sdk.component_services.IUnknown.Disp instance() { |
77 | return s_instance; |
78 | } |
79 | |
80 | private static Disp s_instance = new Disp(); |
81 | |
82 | protected Disp() { |
83 | addEntry(1610612736, (short)1, "QueryInterface", "(Lcom/moesol/bindings/platform_sdk/component_services/GUID;[Ljava/nio/ByteBuffer;)V"); |
84 | addEntry(1610612737, (short)1, "AddRef", "()J"); |
85 | addEntry(1610612738, (short)1, "Release", "()J"); |
86 | addEntry(1610678272, (short)1, "GetTypeInfoCount", "([J)V"); |
87 | addEntry(1610678273, (short)1, "GetTypeInfo", "(JJ[Ljava/nio/ByteBuffer;)V"); |
88 | addEntry(1610678274, (short)1, "GetIDsOfNames", "(Lcom/moesol/bindings/platform_sdk/component_services/GUID;[[BJJ[I)V"); |
89 | addEntry(1610678275, (short)1, "Invoke", "(ILcom/moesol/bindings/platform_sdk/component_services/GUID;JCLcom/moesol/bindings/platform_sdk/component_services/DISPPARAMS;[Ljava/lang/Object;[Lcom/moesol/bindings/platform_sdk/component_services/EXCEPINFO;[J)V"); |
90 | addEntry(1, (short)2, "getPropBSTR", "()Ljava/lang/String;"); |
91 | addEntry(1, (short)4, "setPropBSTR", "(Ljava/lang/String;)V"); |
92 | } |
93 | } |
94 | } |