1 | // tlb2java |
2 | package com.moesol.bindings.microsoft.dao; |
3 | |
4 | |
5 | /** |
6 | * <code>IDL: [ helpstring(""), dual, nonextensible, oleautomation, dispatchable ] interface</code> |
7 | */ |
8 | public interface Error extends com.moesol.bindings.platform_sdk.component_services.IDispatch { |
9 | public static final Class TYPELIB = TYPELIB_00025E01_0000_0000_C000_000000000046.class; |
10 | /** |
11 | * <code>IDL: [uuid(00000023-0000-0010-8000-00AA006D2EA4)]</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 | 0x00000023, (short)0x0000, (short)0x0010, |
15 | new byte[] { |
16 | (byte)0x80, (byte)0x00, |
17 | (byte)0x00, (byte)0xaa, (byte)0x00, (byte)0x6d, (byte)0x2e, (byte)0xa4 |
18 | } ); |
19 | |
20 | /** |
21 | * <code>IDL: [ helpstring("") ]</code> |
22 | * |
23 | * @return |
24 | * <code>IDL: [out] [retval] LONG*</code> |
25 | */ |
26 | public int getNumber(); |
27 | |
28 | /** |
29 | * <code>IDL: [ helpstring("") ]</code> |
30 | * |
31 | * @return |
32 | * <code>IDL: [out] [retval] BSTR*</code> |
33 | */ |
34 | public String getSource(); |
35 | |
36 | /** |
37 | * <code>IDL: [ helpstring("") ]</code> |
38 | * |
39 | * @return |
40 | * <code>IDL: [out] [retval] BSTR*</code> |
41 | */ |
42 | public String getDescription(); |
43 | |
44 | /** |
45 | * <code>IDL: [ helpstring("") ]</code> |
46 | * |
47 | * @return |
48 | * <code>IDL: [out] [retval] BSTR*</code> |
49 | */ |
50 | public String getHelpFile(); |
51 | |
52 | /** |
53 | * <code>IDL: [ helpstring("") ]</code> |
54 | * |
55 | * @return |
56 | * <code>IDL: [out] [retval] LONG*</code> |
57 | */ |
58 | public int getHelpContext(); |
59 | |
60 | |
61 | /** <em>Implementation</em>, <small>Java to COM</small>. */ |
62 | public static class Jni extends com.moesol.bindings.platform_sdk.component_services.IDispatch.Jni implements Error { |
63 | |
64 | protected Jni () { |
65 | } |
66 | protected void internalOnSetInterface() { |
67 | MoeSolInternal.recordApartment(this); |
68 | } |
69 | |
70 | |
71 | private native int jni_getNumber(); |
72 | public int getNumber() { |
73 | |
74 | MoeSolInternal.checkApartment(this); |
75 | return jni_getNumber(); |
76 | } |
77 | |
78 | private native String jni_getSource(); |
79 | public String getSource() { |
80 | |
81 | MoeSolInternal.checkApartment(this); |
82 | return jni_getSource(); |
83 | } |
84 | |
85 | private native String jni_getDescription(); |
86 | public String getDescription() { |
87 | |
88 | MoeSolInternal.checkApartment(this); |
89 | return jni_getDescription(); |
90 | } |
91 | |
92 | private native String jni_getHelpFile(); |
93 | public String getHelpFile() { |
94 | |
95 | MoeSolInternal.checkApartment(this); |
96 | return jni_getHelpFile(); |
97 | } |
98 | |
99 | private native int jni_getHelpContext(); |
100 | public int getHelpContext() { |
101 | |
102 | MoeSolInternal.checkApartment(this); |
103 | return jni_getHelpContext(); |
104 | } |
105 | |
106 | } |
107 | |
108 | /** <em>Implementation</em>, <small>COM to Java</small>. */ |
109 | public static class Disp extends com.moesol.bindings.platform_sdk.component_services.IDispatch.Disp { |
110 | public static com.moesol.bindings.platform_sdk.component_services.IUnknown.Disp instance() { |
111 | return s_instance; |
112 | } |
113 | |
114 | private static Disp s_instance = new Disp(); |
115 | |
116 | protected Disp() { |
117 | addEntry(1610743808, (short)2, "getNumber", "()I"); |
118 | addEntry(1610743809, (short)2, "getSource", "()Ljava/lang/String;"); |
119 | addEntry(0, (short)2, "getDescription", "()Ljava/lang/String;"); |
120 | addEntry(1610743811, (short)2, "getHelpFile", "()Ljava/lang/String;"); |
121 | addEntry(1610743812, (short)2, "getHelpContext", "()I"); |
122 | } |
123 | } |
124 | } |