| 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 Container extends com.moesol.bindings.microsoft.dao._DAO { |
| 9 | public static final Class TYPELIB = TYPELIB_00025E01_0000_0000_C000_000000000046.class; |
| 10 | /** |
| 11 | * <code>IDL: [uuid(00000091-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 | 0x00000091, (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] BSTR*</code> |
| 25 | */ |
| 26 | public String getName(); |
| 27 | |
| 28 | /** |
| 29 | * <code>IDL: [ helpstring("") ]</code> |
| 30 | * |
| 31 | * @return |
| 32 | * <code>IDL: [out] [retval] BSTR*</code> |
| 33 | */ |
| 34 | public String getOwner(); |
| 35 | |
| 36 | /** |
| 37 | * <code>IDL: [ helpstring("") ]</code> |
| 38 | * |
| 39 | * @param pbstr |
| 40 | * <code>IDL: [in] BSTR</code> |
| 41 | */ |
| 42 | public void setOwner( |
| 43 | /*[in]*/ String pbstr); |
| 44 | |
| 45 | /** |
| 46 | * <code>IDL: [ helpstring("") ]</code> |
| 47 | * |
| 48 | * @return |
| 49 | * <code>IDL: [out] [retval] BSTR*</code> |
| 50 | */ |
| 51 | public String getUserName(); |
| 52 | |
| 53 | /** |
| 54 | * <code>IDL: [ helpstring("") ]</code> |
| 55 | * |
| 56 | * @param pbstr |
| 57 | * <code>IDL: [in] BSTR</code> |
| 58 | */ |
| 59 | public void setUserName( |
| 60 | /*[in]*/ String pbstr); |
| 61 | |
| 62 | /** |
| 63 | * <code>IDL: [ helpstring("") ]</code> |
| 64 | * |
| 65 | * @return |
| 66 | * <code>IDL: [out] [retval] LONG*</code> |
| 67 | */ |
| 68 | public int getPermissions(); |
| 69 | |
| 70 | /** |
| 71 | * <code>IDL: [ helpstring("") ]</code> |
| 72 | * |
| 73 | * @param pl |
| 74 | * <code>IDL: [in] LONG</code> |
| 75 | */ |
| 76 | public void setPermissions( |
| 77 | /*[in]*/ int pl); |
| 78 | |
| 79 | /** |
| 80 | * <code>IDL: [ helpstring("") ]</code> |
| 81 | * |
| 82 | * @return |
| 83 | * <code>IDL: [out] [retval] VARIANT_BOOL*</code> |
| 84 | */ |
| 85 | public boolean getInherit(); |
| 86 | |
| 87 | /** |
| 88 | * <code>IDL: [ helpstring("") ]</code> |
| 89 | * |
| 90 | * @param pb |
| 91 | * <code>IDL: [in] VARIANT_BOOL</code> |
| 92 | */ |
| 93 | public void setInherit( |
| 94 | /*[in]*/ boolean pb); |
| 95 | |
| 96 | /** |
| 97 | * <code>IDL: [ helpstring("") ]</code> |
| 98 | * |
| 99 | * @return |
| 100 | * <code>IDL: [out] [retval] Documents**</code> |
| 101 | */ |
| 102 | public com.moesol.bindings.microsoft.dao.Documents getDocuments(); |
| 103 | |
| 104 | /** |
| 105 | * <code>IDL: [ helpstring("") ]</code> |
| 106 | * |
| 107 | * @return |
| 108 | * <code>IDL: [out] [retval] LONG*</code> |
| 109 | */ |
| 110 | public int getAllPermissions(); |
| 111 | |
| 112 | |
| 113 | /** <em>Implementation</em>, <small>Java to COM</small>. */ |
| 114 | public static class Jni extends com.moesol.bindings.microsoft.dao._DAO.Jni implements Container { |
| 115 | |
| 116 | protected Jni () { |
| 117 | } |
| 118 | protected void internalOnSetInterface() { |
| 119 | MoeSolInternal.recordApartment(this); |
| 120 | } |
| 121 | |
| 122 | |
| 123 | private native String jni_getName(); |
| 124 | public String getName() { |
| 125 | |
| 126 | MoeSolInternal.checkApartment(this); |
| 127 | return jni_getName(); |
| 128 | } |
| 129 | |
| 130 | private native String jni_getOwner(); |
| 131 | public String getOwner() { |
| 132 | |
| 133 | MoeSolInternal.checkApartment(this); |
| 134 | return jni_getOwner(); |
| 135 | } |
| 136 | |
| 137 | private native void jni_setOwner( |
| 138 | /*[in]*/ String p0); |
| 139 | public void setOwner( |
| 140 | /*[in]*/ String p0) { |
| 141 | |
| 142 | MoeSolInternal.checkApartment(this); |
| 143 | jni_setOwner(p0); |
| 144 | } |
| 145 | |
| 146 | private native String jni_getUserName(); |
| 147 | public String getUserName() { |
| 148 | |
| 149 | MoeSolInternal.checkApartment(this); |
| 150 | return jni_getUserName(); |
| 151 | } |
| 152 | |
| 153 | private native void jni_setUserName( |
| 154 | /*[in]*/ String p0); |
| 155 | public void setUserName( |
| 156 | /*[in]*/ String p0) { |
| 157 | |
| 158 | MoeSolInternal.checkApartment(this); |
| 159 | jni_setUserName(p0); |
| 160 | } |
| 161 | |
| 162 | private native int jni_getPermissions(); |
| 163 | public int getPermissions() { |
| 164 | |
| 165 | MoeSolInternal.checkApartment(this); |
| 166 | return jni_getPermissions(); |
| 167 | } |
| 168 | |
| 169 | private native void jni_setPermissions( |
| 170 | /*[in]*/ int p0); |
| 171 | public void setPermissions( |
| 172 | /*[in]*/ int p0) { |
| 173 | |
| 174 | MoeSolInternal.checkApartment(this); |
| 175 | jni_setPermissions(p0); |
| 176 | } |
| 177 | |
| 178 | private native boolean jni_getInherit(); |
| 179 | public boolean getInherit() { |
| 180 | |
| 181 | MoeSolInternal.checkApartment(this); |
| 182 | return jni_getInherit(); |
| 183 | } |
| 184 | |
| 185 | private native void jni_setInherit( |
| 186 | /*[in]*/ boolean p0); |
| 187 | public void setInherit( |
| 188 | /*[in]*/ boolean p0) { |
| 189 | |
| 190 | MoeSolInternal.checkApartment(this); |
| 191 | jni_setInherit(p0); |
| 192 | } |
| 193 | |
| 194 | private native com.moesol.bindings.microsoft.dao.Documents jni_getDocuments(); |
| 195 | public com.moesol.bindings.microsoft.dao.Documents getDocuments() { |
| 196 | |
| 197 | MoeSolInternal.checkApartment(this); |
| 198 | return jni_getDocuments(); |
| 199 | } |
| 200 | |
| 201 | private native int jni_getAllPermissions(); |
| 202 | public int getAllPermissions() { |
| 203 | |
| 204 | MoeSolInternal.checkApartment(this); |
| 205 | return jni_getAllPermissions(); |
| 206 | } |
| 207 | |
| 208 | } |
| 209 | |
| 210 | /** <em>Implementation</em>, <small>COM to Java</small>. */ |
| 211 | public static class Disp extends com.moesol.bindings.microsoft.dao._DAO.Disp { |
| 212 | public static com.moesol.bindings.platform_sdk.component_services.IUnknown.Disp instance() { |
| 213 | return s_instance; |
| 214 | } |
| 215 | |
| 216 | private static Disp s_instance = new Disp(); |
| 217 | |
| 218 | protected Disp() { |
| 219 | addEntry(1610809344, (short)2, "getName", "()Ljava/lang/String;"); |
| 220 | addEntry(1610809345, (short)2, "getOwner", "()Ljava/lang/String;"); |
| 221 | addEntry(1610809345, (short)4, "setOwner", "(Ljava/lang/String;)V"); |
| 222 | addEntry(1610809347, (short)2, "getUserName", "()Ljava/lang/String;"); |
| 223 | addEntry(1610809347, (short)4, "setUserName", "(Ljava/lang/String;)V"); |
| 224 | addEntry(1610809349, (short)2, "getPermissions", "()I"); |
| 225 | addEntry(1610809349, (short)4, "setPermissions", "(I)V"); |
| 226 | addEntry(1610809351, (short)2, "getInherit", "()Z"); |
| 227 | addEntry(1610809351, (short)4, "setInherit", "(Z)V"); |
| 228 | addEntry(0, (short)2, "getDocuments", "()Lcom/moesol/bindings/microsoft/dao/Documents;"); |
| 229 | addEntry(1610809354, (short)2, "getAllPermissions", "()I"); |
| 230 | } |
| 231 | } |
| 232 | } |