// tlb2java for tests/lib/ComServer/ComServer.tlb package com.moesol.tests.com_server; /** * IDL: [ helpstring("IDual2 Interface"), dual, oleautomation, dispatchable ] interface */ public interface IDual2 extends com.moesol.tests.com_server.IDual { public static final Class TYPELIB = TYPELIB_E149EE62_34AE_4D0A_B9E2_3ACA3FAD59F8.class; /** * IDL: [uuid(BFD473AA-6E74-4C40-A6C7-9B9718245C23)] */ public static final com.moesol.bindings.platform_sdk.component_services.GUID IID = new com.moesol.bindings.platform_sdk.component_services.GUID( 0xbfd473aa, (short)0x6e74, (short)0x4c40, new byte[] { (byte)0xa6, (byte)0xc7, (byte)0x9b, (byte)0x97, (byte)0x18, (byte)0x24, (byte)0x5c, (byte)0x23 } ); /** * IDL: [ helpstring("property PropLONG") ] * * @return * IDL: [out] [retval] LONG* */ public int getPropLONG(); /** * IDL: [ helpstring("property PropLONG") ] * * @param pVal * IDL: [in] LONG */ public void setPropLONG( /*[in]*/ int pVal); /** * IDL: [ helpstring("method LONGAsOut") ] * * @param pVal * IDL: [out] LONG* */ public void LONGAsOut( /*[out]*/ int[] pVal); /** * IDL: [ helpstring("method FireEvent") ] * */ public void FireEvent(); /** * IDL: [ helpstring("method FireEventWithLong") ] * * @param aLong * IDL: [in] LONG */ public void FireEventWithLong( /*[in]*/ int aLong); /** * IDL: [ helpstring("method FireEventWithLongLong") ] * * @param aLong * IDL: [in] LONG * @param aSecondLong * IDL: [in] LONG */ public void FireEventWithLongLong( /*[in]*/ int aLong, /*[in]*/ int aSecondLong); /** * IDL: [ helpstring("method FireEventWithBoolBstrDouble") ] * * @param aBool * IDL: [in] VARIANT_BOOL * @param aBstr * IDL: [in] BSTR * @param aDouble * IDL: [in] DOUBLE */ public void FireEventWithBoolBstrDouble( /*[in]*/ boolean aBool, /*[in]*/ String aBstr, /*[in]*/ double aDouble); /** * IDL: [ helpstring("method FireEventWithBstrExtraDual") ] * * @param aBstr * IDL: [in] BSTR * @param aExtraDual * IDL: [in] IExtraDual* */ public void FireEventWithBstrExtraDual( /*[in]*/ String aBstr, /*[in]*/ com.moesol.tests.com_server.IExtraDual aExtraDual); /** * IDL: [ helpstring("method FireEventWithByteChar") ] * * @param aByte * IDL: [in] BYTE * @param aChar * IDL: [in] CHAR */ public void FireEventWithByteChar( /*[in]*/ short aByte, /*[in]*/ byte aChar); /** * IDL: [ helpstring("method FireEventWithCyDate") ] * * @param aCy * IDL: [in] CY * @param aDate * IDL: [in] DATE */ public void FireEventWithCyDate( /*[in]*/ long aCy, /*[in]*/ java.util.Date aDate); /** * IDL: [ helpstring("method FireEventWithFloatShort") ] * * @param aFloat * IDL: [in] FLOAT * @param aShort * IDL: [in] SHORT */ public void FireEventWithFloatShort( /*[in]*/ float aFloat, /*[in]*/ short aShort); /** * IDL: [ helpstring("method FireEventWithUshortUlong") ] * * @param aUshort * IDL: [in] USHORT * @param aUlong * IDL: [in] ULONG */ public void FireEventWithUshortUlong( /*[in]*/ char aUshort, /*[in]*/ long aUlong); /** * IDL: [ helpstring("method FireEventWithUintInt") ] * * @param aUint * IDL: [in] UINT * @param aInt * IDL: [in] INT */ public void FireEventWithUintInt( /*[in]*/ long aUint, /*[in]*/ int aInt); /** * IDL: [ helpstring("method FireEventWithScodeDecimal") ] * * @param aScode * IDL: [in] SCODE */ public void FireEventWithScode( /*[in]*/ /* SCODE */ int aScode); /** * IDL: [ helpstring("method FireEventWithVariantVariantRef") ] * * @param aVariantRef * IDL: [in] VARIANT* */ public void FireEventWithVariantRef( /*[in]*/ Object[] aVariantRef); /** * IDL: [ helpstring("method FireEventWithByteUshortRefs") ] * * @param aByteRef * IDL: [in] BYTE* * @param aShortRef * IDL: [in] USHORT* */ public void FireEventWithByteUshortRefs( /*[in]*/ short[] aByteRef, /*[in]*/ char[] aShortRef); /** * IDL: [ helpstring("method FireEventWithUlongUintRefs") ] * * @param aUlongRef * IDL: [in] ULONG* * @param aUintRef * IDL: [in] UINT* */ public void FireEventWithUlongUintRefs( /*[in]*/ long[] aUlongRef, /*[in]*/ long[] aUintRef); /** * IDL: [ helpstring("method FireEventWithIntCharRefs") ] * * @param aIntRef * IDL: [in] INT* * @param aCharRef * IDL: [in] CHAR* */ public void FireEventWithIntCharRefs( /*[in]*/ int[] aIntRef, /*[in]*/ byte[] aCharRef); /** * IDL: [ helpstring("method FireEventWithShortLongRefs") ] * * @param aShortRef * IDL: [in] SHORT* * @param aLongRef * IDL: [in] LONG* */ public void FireEventWithShortLongRefs( /*[in]*/ short[] aShortRef, /*[in]*/ int[] aLongRef); /** * IDL: [ helpstring("method FireEventWithFloatDoubleRefs") ] * * @param aFloatRef * IDL: [in] FLOAT* * @param aDoubleRef * IDL: [in] DOUBLE* */ public void FireEventWithFloatDoubleRefs( /*[in]*/ float[] aFloatRef, /*[in]*/ double[] aDoubleRef); /** * IDL: [ helpstring("method FireEventWithCyBstrRefs") ] * * @param aCyRef * IDL: [in] CY* * @param aBstrRef * IDL: [in] BSTR* */ public void FireEventWithCyBstrRefs( /*[in]*/ long[] aCyRef, /*[in]*/ String[] aBstrRef); /** * IDL: [ helpstring("method FireEventsWithBoolRefDateRef") ] * * @param aBoolRef * IDL: [in] VARIANT_BOOL* * @param aDateRef * IDL: [in] DATE* */ public void FireEventsWithBoolRefDateRef( /*[in]*/ boolean[] aBoolRef, /*[in]*/ java.util.Date[] aDateRef); /** * IDL: [ helpstring("method FireEventWithScodeRef") ] * * @param aScodeRef * IDL: [in] SCODE* */ public void FireEventWithScodeRef( /*[in]*/ /* SCODE */ int[] aScodeRef); /** * IDL: [ helpstring("method FireEventWithArrayOfByte") ] * * @param aByteArray * IDL: [in] SAFEARRAY(BYTE) */ public void FireEventWithArrayOfByte( /*[in]*/ short[] /*sa*/ aByteArray); /** * IDL: [ helpstring("method FireEventWithExtraDualRef") ] * * @param aExtraDualRef * IDL: [in] IExtraDual** */ public void FireEventWithExtraDualRef( /*[in]*/ com.moesol.tests.com_server.IExtraDual[] aExtraDualRef); /** * IDL: [ helpstring("method FireEventWithUshortArray") ] * * @param aUshortArray * IDL: [in] SAFEARRAY(USHORT) */ public void FireEventWithUshortArray( /*[in]*/ char[] /*sa*/ aUshortArray); /** * IDL: [ helpstring("method FireEventWithUlongArray") ] * * @param aUlongArray * IDL: [in] SAFEARRAY(ULONG) */ public void FireEventWithUlongArray( /*[in]*/ long[] /*sa*/ aUlongArray); /** * IDL: [ helpstring("method FireEventWithUintArrayIntArrayCharArrayShortArrayLongArray") ] * * @param aUintArray * IDL: [in] SAFEARRAY(UINT) * @param aIntArray * IDL: [in] SAFEARRAY(INT) * @param aCharArray * IDL: [in] SAFEARRAY(CHAR) * @param aShortArray * IDL: [in] SAFEARRAY(SHORT) * @param aLongArray * IDL: [in] SAFEARRAY(LONG) */ public void FireEventWithUintArrayIntArrayCharArrayShortArrayLongArray( /*[in]*/ long[] /*sa*/ aUintArray, /*[in]*/ int[] /*sa*/ aIntArray, /*[in]*/ byte[] /*sa*/ aCharArray, /*[in]*/ short[] /*sa*/ aShortArray, /*[in]*/ int[] /*sa*/ aLongArray); /** * IDL: [ helpstring("method FireEventWithFloatArrayDoubleArrayCyArrayBstrArray") ] * * @param aFloatArray * IDL: [in] SAFEARRAY(FLOAT) * @param aDoubleArray * IDL: [in] SAFEARRAY(DOUBLE) * @param aCyArray * IDL: [in] SAFEARRAY(CY) * @param aBstrArray * IDL: [in] SAFEARRAY(BSTR) */ public void FireEventWithFloatArrayDoubleArrayCyArrayBstrArray( /*[in]*/ float[] /*sa*/ aFloatArray, /*[in]*/ double[] /*sa*/ aDoubleArray, /*[in]*/ long[] /*sa*/ aCyArray, /*[in]*/ String[] /*sa*/ aBstrArray); /** * IDL: [ helpstring("method FireEventWithBoolArrayDateArray") ] * * @param aBoolArray * IDL: [in] SAFEARRAY(VARIANT_BOOL) * @param aDateArray * IDL: [in] SAFEARRAY(DATE) */ public void FireEventWithBoolArrayDateArray( /*[in]*/ boolean[] /*sa*/ aBoolArray, /*[in]*/ java.util.Date[] /*sa*/ aDateArray); /** * IDL: [ helpstring("method FireEventWithVariantArray") ] * * @param aVariantArray * IDL: [in] SAFEARRAY(VARIANT) */ public void FireEventWithVariantArray( /*[in]*/ Object[] /*sa*/ aVariantArray); /** * IDL: [ helpstring("") ] * * @param eVal * IDL: [in] __MIDL___MIDL_itf_ComServer_0000_0001 * @param pVal * IDL: [in] [out] IUnknown** */ public void EnumIUnknown( /*[in]*/ int eVal, /*[in, out]*/ com.moesol.bindings.platform_sdk.component_services.IUnknown[] pVal); /** Implementation, Java to COM. */ public static class Jni extends com.moesol.tests.com_server.IDual.Jni implements IDual2 { protected Jni () { } protected void internalOnSetInterface() { MoeSolInternal.recordApartment(this); } private native int jni_getPropLONG(); public int getPropLONG() { MoeSolInternal.checkApartment(this); return jni_getPropLONG(); } private native void jni_setPropLONG( /*[in]*/ int p0); public void setPropLONG( /*[in]*/ int p0) { MoeSolInternal.checkApartment(this); jni_setPropLONG(p0); } private native void jni_LONGAsOut( /*[out]*/ int[] p0); public void LONGAsOut( /*[out]*/ int[] p0) { MoeSolInternal.checkApartment(this); jni_LONGAsOut(p0); } private native void jni_FireEvent(); public void FireEvent() { MoeSolInternal.checkApartment(this); jni_FireEvent(); } private native void jni_FireEventWithLong( /*[in]*/ int p0); public void FireEventWithLong( /*[in]*/ int p0) { MoeSolInternal.checkApartment(this); jni_FireEventWithLong(p0); } private native void jni_FireEventWithLongLong( /*[in]*/ int p0, /*[in]*/ int p1); public void FireEventWithLongLong( /*[in]*/ int p0, /*[in]*/ int p1) { MoeSolInternal.checkApartment(this); jni_FireEventWithLongLong(p0, p1); } private native void jni_FireEventWithBoolBstrDouble( /*[in]*/ boolean p0, /*[in]*/ String p1, /*[in]*/ double p2); public void FireEventWithBoolBstrDouble( /*[in]*/ boolean p0, /*[in]*/ String p1, /*[in]*/ double p2) { MoeSolInternal.checkApartment(this); jni_FireEventWithBoolBstrDouble(p0, p1, p2); } private native void jni_FireEventWithBstrExtraDual( /*[in]*/ String p0, /*[in]*/ com.moesol.tests.com_server.IExtraDual p1); public void FireEventWithBstrExtraDual( /*[in]*/ String p0, /*[in]*/ com.moesol.tests.com_server.IExtraDual p1) { MoeSolInternal.checkApartment(this); jni_FireEventWithBstrExtraDual(p0, p1); } private native void jni_FireEventWithByteChar( /*[in]*/ short p0, /*[in]*/ byte p1); public void FireEventWithByteChar( /*[in]*/ short p0, /*[in]*/ byte p1) { MoeSolInternal.checkApartment(this); jni_FireEventWithByteChar(p0, p1); } private native void jni_FireEventWithCyDate( /*[in]*/ long p0, /*[in]*/ java.util.Date p1); public void FireEventWithCyDate( /*[in]*/ long p0, /*[in]*/ java.util.Date p1) { MoeSolInternal.checkApartment(this); jni_FireEventWithCyDate(p0, p1); } private native void jni_FireEventWithFloatShort( /*[in]*/ float p0, /*[in]*/ short p1); public void FireEventWithFloatShort( /*[in]*/ float p0, /*[in]*/ short p1) { MoeSolInternal.checkApartment(this); jni_FireEventWithFloatShort(p0, p1); } private native void jni_FireEventWithUshortUlong( /*[in]*/ char p0, /*[in]*/ long p1); public void FireEventWithUshortUlong( /*[in]*/ char p0, /*[in]*/ long p1) { MoeSolInternal.checkApartment(this); jni_FireEventWithUshortUlong(p0, p1); } private native void jni_FireEventWithUintInt( /*[in]*/ long p0, /*[in]*/ int p1); public void FireEventWithUintInt( /*[in]*/ long p0, /*[in]*/ int p1) { MoeSolInternal.checkApartment(this); jni_FireEventWithUintInt(p0, p1); } private native void jni_FireEventWithScode( /*[in]*/ /* SCODE */ int p0); public void FireEventWithScode( /*[in]*/ /* SCODE */ int p0) { MoeSolInternal.checkApartment(this); jni_FireEventWithScode(p0); } private native void jni_FireEventWithVariantRef( /*[in]*/ Object[] p0); public void FireEventWithVariantRef( /*[in]*/ Object[] p0) { MoeSolInternal.checkApartment(this); jni_FireEventWithVariantRef(p0); } private native void jni_FireEventWithByteUshortRefs( /*[in]*/ short[] p0, /*[in]*/ char[] p1); public void FireEventWithByteUshortRefs( /*[in]*/ short[] p0, /*[in]*/ char[] p1) { MoeSolInternal.checkApartment(this); jni_FireEventWithByteUshortRefs(p0, p1); } private native void jni_FireEventWithUlongUintRefs( /*[in]*/ long[] p0, /*[in]*/ long[] p1); public void FireEventWithUlongUintRefs( /*[in]*/ long[] p0, /*[in]*/ long[] p1) { MoeSolInternal.checkApartment(this); jni_FireEventWithUlongUintRefs(p0, p1); } private native void jni_FireEventWithIntCharRefs( /*[in]*/ int[] p0, /*[in]*/ byte[] p1); public void FireEventWithIntCharRefs( /*[in]*/ int[] p0, /*[in]*/ byte[] p1) { MoeSolInternal.checkApartment(this); jni_FireEventWithIntCharRefs(p0, p1); } private native void jni_FireEventWithShortLongRefs( /*[in]*/ short[] p0, /*[in]*/ int[] p1); public void FireEventWithShortLongRefs( /*[in]*/ short[] p0, /*[in]*/ int[] p1) { MoeSolInternal.checkApartment(this); jni_FireEventWithShortLongRefs(p0, p1); } private native void jni_FireEventWithFloatDoubleRefs( /*[in]*/ float[] p0, /*[in]*/ double[] p1); public void FireEventWithFloatDoubleRefs( /*[in]*/ float[] p0, /*[in]*/ double[] p1) { MoeSolInternal.checkApartment(this); jni_FireEventWithFloatDoubleRefs(p0, p1); } private native void jni_FireEventWithCyBstrRefs( /*[in]*/ long[] p0, /*[in]*/ String[] p1); public void FireEventWithCyBstrRefs( /*[in]*/ long[] p0, /*[in]*/ String[] p1) { MoeSolInternal.checkApartment(this); jni_FireEventWithCyBstrRefs(p0, p1); } private native void jni_FireEventsWithBoolRefDateRef( /*[in]*/ boolean[] p0, /*[in]*/ java.util.Date[] p1); public void FireEventsWithBoolRefDateRef( /*[in]*/ boolean[] p0, /*[in]*/ java.util.Date[] p1) { MoeSolInternal.checkApartment(this); jni_FireEventsWithBoolRefDateRef(p0, p1); } private native void jni_FireEventWithScodeRef( /*[in]*/ /* SCODE */ int[] p0); public void FireEventWithScodeRef( /*[in]*/ /* SCODE */ int[] p0) { MoeSolInternal.checkApartment(this); jni_FireEventWithScodeRef(p0); } private native void jni_FireEventWithArrayOfByte( /*[in]*/ short[] /*sa*/ p0); public void FireEventWithArrayOfByte( /*[in]*/ short[] /*sa*/ p0) { MoeSolInternal.checkApartment(this); jni_FireEventWithArrayOfByte(p0); } private native void jni_FireEventWithExtraDualRef( /*[in]*/ com.moesol.tests.com_server.IExtraDual[] p0); public void FireEventWithExtraDualRef( /*[in]*/ com.moesol.tests.com_server.IExtraDual[] p0) { MoeSolInternal.checkApartment(this); jni_FireEventWithExtraDualRef(p0); } private native void jni_FireEventWithUshortArray( /*[in]*/ char[] /*sa*/ p0); public void FireEventWithUshortArray( /*[in]*/ char[] /*sa*/ p0) { MoeSolInternal.checkApartment(this); jni_FireEventWithUshortArray(p0); } private native void jni_FireEventWithUlongArray( /*[in]*/ long[] /*sa*/ p0); public void FireEventWithUlongArray( /*[in]*/ long[] /*sa*/ p0) { MoeSolInternal.checkApartment(this); jni_FireEventWithUlongArray(p0); } private native void jni_FireEventWithUintArrayIntArrayCharArrayShortArrayLongArray( /*[in]*/ long[] /*sa*/ p0, /*[in]*/ int[] /*sa*/ p1, /*[in]*/ byte[] /*sa*/ p2, /*[in]*/ short[] /*sa*/ p3, /*[in]*/ int[] /*sa*/ p4); public void FireEventWithUintArrayIntArrayCharArrayShortArrayLongArray( /*[in]*/ long[] /*sa*/ p0, /*[in]*/ int[] /*sa*/ p1, /*[in]*/ byte[] /*sa*/ p2, /*[in]*/ short[] /*sa*/ p3, /*[in]*/ int[] /*sa*/ p4) { MoeSolInternal.checkApartment(this); jni_FireEventWithUintArrayIntArrayCharArrayShortArrayLongArray(p0, p1, p2, p3, p4); } private native void jni_FireEventWithFloatArrayDoubleArrayCyArrayBstrArray( /*[in]*/ float[] /*sa*/ p0, /*[in]*/ double[] /*sa*/ p1, /*[in]*/ long[] /*sa*/ p2, /*[in]*/ String[] /*sa*/ p3); public void FireEventWithFloatArrayDoubleArrayCyArrayBstrArray( /*[in]*/ float[] /*sa*/ p0, /*[in]*/ double[] /*sa*/ p1, /*[in]*/ long[] /*sa*/ p2, /*[in]*/ String[] /*sa*/ p3) { MoeSolInternal.checkApartment(this); jni_FireEventWithFloatArrayDoubleArrayCyArrayBstrArray(p0, p1, p2, p3); } private native void jni_FireEventWithBoolArrayDateArray( /*[in]*/ boolean[] /*sa*/ p0, /*[in]*/ java.util.Date[] /*sa*/ p1); public void FireEventWithBoolArrayDateArray( /*[in]*/ boolean[] /*sa*/ p0, /*[in]*/ java.util.Date[] /*sa*/ p1) { MoeSolInternal.checkApartment(this); jni_FireEventWithBoolArrayDateArray(p0, p1); } private native void jni_FireEventWithVariantArray( /*[in]*/ Object[] /*sa*/ p0); public void FireEventWithVariantArray( /*[in]*/ Object[] /*sa*/ p0) { MoeSolInternal.checkApartment(this); jni_FireEventWithVariantArray(p0); } private native void jni_EnumIUnknown( /*[in]*/ int p0, /*[in, out]*/ com.moesol.bindings.platform_sdk.component_services.IUnknown[] p1); public void EnumIUnknown( /*[in]*/ int p0, /*[in, out]*/ com.moesol.bindings.platform_sdk.component_services.IUnknown[] p1) { MoeSolInternal.checkApartment(this); jni_EnumIUnknown(p0, p1); } } /** Implementation, COM to Java. */ public static class Disp extends com.moesol.tests.com_server.IDual.Disp { public static com.moesol.bindings.platform_sdk.component_services.IUnknown.Disp instance() { return s_instance; } private static Disp s_instance = new Disp(); protected Disp() { addEntry(1001, (short)2, "getPropLONG", "()I"); addEntry(1001, (short)4, "setPropLONG", "(I)V"); addEntry(1002, (short)1, "LONGAsOut", "([I)V"); addEntry(2000, (short)1, "FireEvent", "()V"); addEntry(2001, (short)1, "FireEventWithLong", "(I)V"); addEntry(2002, (short)1, "FireEventWithLongLong", "(II)V"); addEntry(2003, (short)1, "FireEventWithBoolBstrDouble", "(ZLjava/lang/String;D)V"); addEntry(2004, (short)1, "FireEventWithBstrExtraDual", "(Ljava/lang/String;Lcom/moesol/tests/com_server/IExtraDual;)V"); addEntry(2005, (short)1, "FireEventWithByteChar", "(SB)V"); addEntry(2006, (short)1, "FireEventWithCyDate", "(JLjava/util/Date;)V"); addEntry(2007, (short)1, "FireEventWithFloatShort", "(FS)V"); addEntry(2008, (short)1, "FireEventWithUshortUlong", "(CJ)V"); addEntry(2009, (short)1, "FireEventWithUintInt", "(JI)V"); addEntry(2010, (short)1, "FireEventWithScode", "(I)V"); addEntry(2011, (short)1, "FireEventWithVariantRef", "([Ljava/lang/Object;)V"); addEntry(2012, (short)1, "FireEventWithByteUshortRefs", "([S[C)V"); addEntry(2013, (short)1, "FireEventWithUlongUintRefs", "([J[J)V"); addEntry(2014, (short)1, "FireEventWithIntCharRefs", "([I[B)V"); addEntry(2015, (short)1, "FireEventWithShortLongRefs", "([S[I)V"); addEntry(2017, (short)1, "FireEventWithFloatDoubleRefs", "([F[D)V"); addEntry(2018, (short)1, "FireEventWithCyBstrRefs", "([J[Ljava/lang/String;)V"); addEntry(2019, (short)1, "FireEventsWithBoolRefDateRef", "([Z[Ljava/util/Date;)V"); addEntry(2020, (short)1, "FireEventWithScodeRef", "([I)V"); addEntry(2021, (short)1, "FireEventWithArrayOfByte", "([S)V"); addEntry(2022, (short)1, "FireEventWithExtraDualRef", "([Lcom/moesol/tests/com_server/IExtraDual;)V"); addEntry(2023, (short)1, "FireEventWithUshortArray", "([C)V"); addEntry(2024, (short)1, "FireEventWithUlongArray", "([J)V"); addEntry(2025, (short)1, "FireEventWithUintArrayIntArrayCharArrayShortArrayLongArray", "([J[I[B[S[I)V"); addEntry(2026, (short)1, "FireEventWithFloatArrayDoubleArrayCyArrayBstrArray", "([F[D[J[Ljava/lang/String;)V"); addEntry(2027, (short)1, "FireEventWithBoolArrayDateArray", "([Z[Ljava/util/Date;)V"); addEntry(2028, (short)1, "FireEventWithVariantArray", "([Ljava/lang/Object;)V"); addEntry(2029, (short)1, "EnumIUnknown", "(I[Lcom/moesol/bindings/platform_sdk/component_services/IUnknown;)V"); } } }