joynr.interlanguagetest.TestInterfaceAsync Maven / Gradle / Ivy
/*
*
* Copyright (C) 2011 - 2018 BMW Car IT GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// #####################################################
//#######################################################
//### ###
//## WARNING: This file is generated. DO NOT EDIT ##
//## All changes will be lost! ##
//### ###
//#######################################################
// #####################################################
package joynr.interlanguagetest;
import io.joynr.proxy.Callback;
import io.joynr.proxy.ICallbackWithModeledError;
import io.joynr.proxy.CallbackWithModeledError;
import io.joynr.proxy.Future;
import io.joynr.dispatcher.rpc.annotation.JoynrRpcCallback;
import io.joynr.proxy.ICallback;
import io.joynr.Async;
import io.joynr.ProvidedBy;
import io.joynr.UsedBy;
import io.joynr.exceptions.DiscoveryException;
import joynr.interlanguagetest.Enumeration;
import joynr.interlanguagetest.namedTypeCollection1.StructWithStringArray;
import joynr.interlanguagetest.namedTypeCollection2.BaseStruct;
import joynr.interlanguagetest.namedTypeCollection2.BaseStructWithoutElements;
import joynr.interlanguagetest.namedTypeCollection2.ExtendedBaseStruct;
import joynr.interlanguagetest.namedTypeCollection2.ExtendedEnumerationWithPartlyDefinedValues;
import joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedBaseStruct;
import joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedEnumeration;
import joynr.interlanguagetest.namedTypeCollection2.ExtendedInterfaceEnumerationInTypeCollection;
import joynr.interlanguagetest.namedTypeCollection2.ExtendedStructOfPrimitives;
import joynr.interlanguagetest.namedTypeCollection2.ExtendedTypeCollectionEnumerationInTypeCollection;
import joynr.interlanguagetest.namedTypeCollection2.MapStringString;
import joynr.interlanguagetest.TestInterfaceSync.MethodWithMultiplePrimitiveParametersReturned;
import joynr.interlanguagetest.TestInterfaceSync.MethodWithMultipleArrayParametersReturned;
import joynr.interlanguagetest.TestInterfaceSync.MethodWithMultipleEnumParametersReturned;
import joynr.interlanguagetest.TestInterfaceSync.MethodWithMultipleStructParametersReturned;
import joynr.interlanguagetest.TestInterfaceSync.OverloadedMethodOverloadedMethod1Returned;
import joynr.interlanguagetest.TestInterfaceSync.OverloadedMethodWithSelectorOverloadedMethodWithSelector1Returned;
@Async
@ProvidedBy(TestInterfaceProvider.class)
@UsedBy(TestInterfaceProxy.class)
public interface TestInterfaceAsync extends TestInterface, TestInterfaceFireAndForget {
public Future getAttributeUInt8(@JoynrRpcCallback(deserializationType = Byte.class) Callback callback);
Future setAttributeUInt8(@JoynrRpcCallback(deserializationType = Void.class) Callback callback, Byte attributeUInt8) throws DiscoveryException;
public Future getAttributeDouble(@JoynrRpcCallback(deserializationType = Double.class) Callback callback);
Future setAttributeDouble(@JoynrRpcCallback(deserializationType = Void.class) Callback callback, Double attributeDouble) throws DiscoveryException;
public Future getAttributeBooleanReadonly(@JoynrRpcCallback(deserializationType = Boolean.class) Callback callback);
public Future getAttributeStringNoSubscriptions(@JoynrRpcCallback(deserializationType = String.class) Callback callback);
Future setAttributeStringNoSubscriptions(@JoynrRpcCallback(deserializationType = Void.class) Callback callback, String attributeStringNoSubscriptions) throws DiscoveryException;
public Future getAttributeInt8readonlyNoSubscriptions(@JoynrRpcCallback(deserializationType = Byte.class) Callback callback);
public Future getAttributeArrayOfStringImplicit(@JoynrRpcCallback(deserializationType = String[][].class) Callback callback);
Future setAttributeArrayOfStringImplicit(@JoynrRpcCallback(deserializationType = Void.class) Callback callback, String[] attributeArrayOfStringImplicit) throws DiscoveryException;
public Future getAttributeEnumeration(@JoynrRpcCallback(deserializationType = Enumeration.class) Callback callback);
Future setAttributeEnumeration(@JoynrRpcCallback(deserializationType = Void.class) Callback callback, Enumeration attributeEnumeration) throws DiscoveryException;
public Future getAttributeExtendedEnumerationReadonly(@JoynrRpcCallback(deserializationType = ExtendedEnumerationWithPartlyDefinedValues.class) Callback callback);
public Future getAttributeBaseStruct(@JoynrRpcCallback(deserializationType = BaseStruct.class) Callback callback);
Future setAttributeBaseStruct(@JoynrRpcCallback(deserializationType = Void.class) Callback callback, BaseStruct attributeBaseStruct) throws DiscoveryException;
public Future getAttributeExtendedExtendedBaseStruct(@JoynrRpcCallback(deserializationType = ExtendedExtendedBaseStruct.class) Callback callback);
Future setAttributeExtendedExtendedBaseStruct(@JoynrRpcCallback(deserializationType = Void.class) Callback callback, ExtendedExtendedBaseStruct attributeExtendedExtendedBaseStruct) throws DiscoveryException;
public Future getAttributeMapStringString(@JoynrRpcCallback(deserializationType = MapStringString.class) Callback callback);
Future setAttributeMapStringString(@JoynrRpcCallback(deserializationType = Void.class) Callback callback, MapStringString attributeMapStringString) throws DiscoveryException;
public Future getAttributeWithExceptionFromGetter(@JoynrRpcCallback(deserializationType = Boolean.class) Callback callback);
public Future getAttributeWithExceptionFromSetter(@JoynrRpcCallback(deserializationType = Boolean.class) Callback callback);
Future setAttributeWithExceptionFromSetter(@JoynrRpcCallback(deserializationType = Void.class) Callback callback, Boolean attributeWithExceptionFromSetter) throws DiscoveryException;
public Future getAttributeFireAndForget(@JoynrRpcCallback(deserializationType = Integer.class) Callback callback);
Future setAttributeFireAndForget(@JoynrRpcCallback(deserializationType = Void.class) Callback callback, Integer attributeFireAndForget) throws DiscoveryException;
public static class MethodWithMultiplePrimitiveParametersFuture extends Future {
public void resolve(Object... outParameters) {
if (outParameters.length == 0) {
onSuccess(null);
} else {
onSuccess(new MethodWithMultiplePrimitiveParametersReturned(outParameters));
}
}
public static Class>[] getDatatypes() {
return MethodWithMultiplePrimitiveParametersReturned.getDatatypes();
}
}
public static class MethodWithMultipleArrayParametersFuture extends Future {
public void resolve(Object... outParameters) {
if (outParameters.length == 0) {
onSuccess(null);
} else {
onSuccess(new MethodWithMultipleArrayParametersReturned(outParameters));
}
}
public static Class>[] getDatatypes() {
return MethodWithMultipleArrayParametersReturned.getDatatypes();
}
}
public static class MethodWithMultipleEnumParametersFuture extends Future {
public void resolve(Object... outParameters) {
if (outParameters.length == 0) {
onSuccess(null);
} else {
onSuccess(new MethodWithMultipleEnumParametersReturned(outParameters));
}
}
public static Class>[] getDatatypes() {
return MethodWithMultipleEnumParametersReturned.getDatatypes();
}
}
public static class MethodWithMultipleStructParametersFuture extends Future {
public void resolve(Object... outParameters) {
if (outParameters.length == 0) {
onSuccess(null);
} else {
onSuccess(new MethodWithMultipleStructParametersReturned(outParameters));
}
}
public static Class>[] getDatatypes() {
return MethodWithMultipleStructParametersReturned.getDatatypes();
}
}
public static class OverloadedMethodOverloadedMethod1Future extends Future {
public void resolve(Object... outParameters) {
if (outParameters.length == 0) {
onSuccess(null);
} else {
onSuccess(new OverloadedMethodOverloadedMethod1Returned(outParameters));
}
}
public static Class>[] getDatatypes() {
return OverloadedMethodOverloadedMethod1Returned.getDatatypes();
}
}
public static class OverloadedMethodWithSelectorOverloadedMethodWithSelector1Future extends Future {
public void resolve(Object... outParameters) {
if (outParameters.length == 0) {
onSuccess(null);
} else {
onSuccess(new OverloadedMethodWithSelectorOverloadedMethodWithSelector1Returned(outParameters));
}
}
public static Class>[] getDatatypes() {
return OverloadedMethodWithSelectorOverloadedMethodWithSelector1Returned.getDatatypes();
}
}
public abstract class MethodWithMultiplePrimitiveParametersCallback implements ICallback {
public abstract void onSuccess(Double doubleOut, String stringOut);
public void resolve(Object... outParameters) {
if (outParameters.length < 2) {
onSuccess(null, null);
} else {
onSuccess(
(Double) outParameters[0],
(String) outParameters[1]
);
}
}
}
public abstract class MethodWithMultipleArrayParametersCallback implements ICallback {
public abstract void onSuccess(Long[] uInt64ArrayOut, StructWithStringArray[] structWithStringArrayArrayOut);
public void resolve(Object... outParameters) {
if (outParameters.length < 2) {
onSuccess(null, null);
} else {
onSuccess(
(Long[]) outParameters[0],
(StructWithStringArray[]) outParameters[1]
);
}
}
}
public abstract class MethodWithMultipleEnumParametersCallback implements ICallback {
public abstract void onSuccess(ExtendedEnumerationWithPartlyDefinedValues extendedEnumerationOut, Enumeration enumerationOut);
public void resolve(Object... outParameters) {
if (outParameters.length < 2) {
onSuccess(null, null);
} else {
onSuccess(
(ExtendedEnumerationWithPartlyDefinedValues) outParameters[0],
(Enumeration) outParameters[1]
);
}
}
}
public abstract class MethodWithMultipleStructParametersCallback implements ICallback {
public abstract void onSuccess(BaseStructWithoutElements baseStructWithoutElementsOut, ExtendedExtendedBaseStruct extendedExtendedBaseStructOut);
public void resolve(Object... outParameters) {
if (outParameters.length < 2) {
onSuccess(null, null);
} else {
onSuccess(
(BaseStructWithoutElements) outParameters[0],
(ExtendedExtendedBaseStruct) outParameters[1]
);
}
}
}
public abstract class OverloadedMethodOverloadedMethod1Callback implements ICallback {
public abstract void onSuccess(Double doubleOut, String[] stringArrayOut, ExtendedBaseStruct extendedBaseStructOut);
public void resolve(Object... outParameters) {
if (outParameters.length < 3) {
onSuccess(null, null, null);
} else {
onSuccess(
(Double) outParameters[0],
(String[]) outParameters[1],
(ExtendedBaseStruct) outParameters[2]
);
}
}
}
public abstract class OverloadedMethodWithSelectorOverloadedMethodWithSelector1Callback implements ICallback {
public abstract void onSuccess(Double doubleOut, String[] stringArrayOut, ExtendedBaseStruct extendedBaseStructOut);
public void resolve(Object... outParameters) {
if (outParameters.length < 3) {
onSuccess(null, null, null);
} else {
onSuccess(
(Double) outParameters[0],
(String[]) outParameters[1],
(ExtendedBaseStruct) outParameters[2]
);
}
}
}
/*
* methodWithoutParameters
*/
public Future methodWithoutParameters(
@JoynrRpcCallback(deserializationType = Void.class) Callback callback
);
/*
* methodWithoutInputParameter
*/
public Future methodWithoutInputParameter(
@JoynrRpcCallback(deserializationType = Boolean.class) Callback callback
);
/*
* methodWithoutOutputParameter
*/
public Future methodWithoutOutputParameter(
@JoynrRpcCallback(deserializationType = Void.class) Callback callback,
Boolean booleanArg
);
/*
* methodWithSinglePrimitiveParameters
*/
public Future methodWithSinglePrimitiveParameters(
@JoynrRpcCallback(deserializationType = String.class) Callback callback,
Short uInt16Arg
);
/*
* methodWithMultiplePrimitiveParameters
*/
public MethodWithMultiplePrimitiveParametersFuture methodWithMultiplePrimitiveParameters(
@JoynrRpcCallback MethodWithMultiplePrimitiveParametersCallback callback,
Integer int32Arg,
Float floatArg,
Boolean booleanArg
);
/*
* methodWithSingleArrayParameters
*/
public Future methodWithSingleArrayParameters(
@JoynrRpcCallback(deserializationType = String[].class) Callback callback,
Double[] doubleArrayArg
);
/*
* methodWithMultipleArrayParameters
*/
public MethodWithMultipleArrayParametersFuture methodWithMultipleArrayParameters(
@JoynrRpcCallback MethodWithMultipleArrayParametersCallback callback,
String[] stringArrayArg,
Byte[] int8ArrayArg,
ExtendedInterfaceEnumerationInTypeCollection[] enumArrayArg,
StructWithStringArray[] structWithStringArrayArrayArg
);
/*
* methodWithSingleEnumParameters
*/
public Future methodWithSingleEnumParameters(
@JoynrRpcCallback(deserializationType = ExtendedTypeCollectionEnumerationInTypeCollection.class) Callback callback,
ExtendedEnumerationWithPartlyDefinedValues enumerationArg
);
/*
* methodWithMultipleEnumParameters
*/
public MethodWithMultipleEnumParametersFuture methodWithMultipleEnumParameters(
@JoynrRpcCallback MethodWithMultipleEnumParametersCallback callback,
Enumeration enumerationArg,
ExtendedTypeCollectionEnumerationInTypeCollection extendedEnumerationArg
);
/*
* methodWithSingleMapParameters
*/
public Future methodWithSingleMapParameters(
@JoynrRpcCallback(deserializationType = MapStringString.class) Callback callback,
MapStringString mapArg
);
/*
* methodWithSingleStructParameters
*/
public Future methodWithSingleStructParameters(
@JoynrRpcCallback(deserializationType = ExtendedStructOfPrimitives.class) Callback callback,
ExtendedBaseStruct extendedBaseStructArg
);
/*
* methodWithMultipleStructParameters
*/
public MethodWithMultipleStructParametersFuture methodWithMultipleStructParameters(
@JoynrRpcCallback MethodWithMultipleStructParametersCallback callback,
ExtendedStructOfPrimitives extendedStructOfPrimitivesArg,
BaseStruct baseStructArg
);
/*
* methodWithStringsAndSpecifiedStringOutLength
*/
public Future methodWithStringsAndSpecifiedStringOutLength(
@JoynrRpcCallback(deserializationType = String.class) Callback callback,
String stringArg,
Integer int32StringLengthArg
);
/*
* overloadedMethod
*/
public Future overloadedMethod(
@JoynrRpcCallback(deserializationType = String.class) Callback callback
);
/*
* overloadedMethod
*/
public Future overloadedMethod(
@JoynrRpcCallback(deserializationType = String.class) Callback callback,
Boolean booleanArg
);
/*
* overloadedMethod
*/
public OverloadedMethodOverloadedMethod1Future overloadedMethod(
@JoynrRpcCallback OverloadedMethodOverloadedMethod1Callback callback,
ExtendedExtendedEnumeration[] enumArrayArg,
Long int64Arg,
BaseStruct baseStructArg,
Boolean booleanArg
);
/*
* overloadedMethodWithSelector
*/
public Future overloadedMethodWithSelector(
@JoynrRpcCallback(deserializationType = String.class) Callback callback
);
/*
* overloadedMethodWithSelector
*/
public Future overloadedMethodWithSelector(
@JoynrRpcCallback(deserializationType = String.class) Callback callback,
Boolean booleanArg
);
/*
* overloadedMethodWithSelector
*/
public OverloadedMethodWithSelectorOverloadedMethodWithSelector1Future overloadedMethodWithSelector(
@JoynrRpcCallback OverloadedMethodWithSelectorOverloadedMethodWithSelector1Callback callback,
ExtendedExtendedEnumeration[] enumArrayArg,
Long int64Arg,
BaseStruct baseStructArg,
Boolean booleanArg
);
/*
* methodWithoutErrorEnum
*/
public Future methodWithoutErrorEnum(
@JoynrRpcCallback(deserializationType = Void.class) Callback callback,
String wantedExceptionArg
);
/*
* methodWithAnonymousErrorEnum
*/
public Future methodWithAnonymousErrorEnum(
@JoynrRpcCallback(deserializationType = Void.class) CallbackWithModeledError callback,
String wantedExceptionArg
);
/*
* methodWithExistingErrorEnum
*/
public Future methodWithExistingErrorEnum(
@JoynrRpcCallback(deserializationType = Void.class) CallbackWithModeledError callback,
String wantedExceptionArg
);
/*
* methodWithExtendedErrorEnum
*/
public Future methodWithExtendedErrorEnum(
@JoynrRpcCallback(deserializationType = Void.class) CallbackWithModeledError callback,
String wantedExceptionArg
);
/*
* methodToFireBroadcastWithSinglePrimitiveParameter
*/
public Future methodToFireBroadcastWithSinglePrimitiveParameter(
@JoynrRpcCallback(deserializationType = Void.class) Callback callback
);
/*
* methodToFireBroadcastWithMultiplePrimitiveParameters
*/
public Future methodToFireBroadcastWithMultiplePrimitiveParameters(
@JoynrRpcCallback(deserializationType = Void.class) Callback callback
);
/*
* methodToFireBroadcastWithSingleArrayParameter
*/
public Future methodToFireBroadcastWithSingleArrayParameter(
@JoynrRpcCallback(deserializationType = Void.class) Callback callback
);
/*
* methodToFireBroadcastWithMultipleArrayParameters
*/
public Future methodToFireBroadcastWithMultipleArrayParameters(
@JoynrRpcCallback(deserializationType = Void.class) Callback callback
);
/*
* methodToFireBroadcastWithSingleEnumerationParameter
*/
public Future methodToFireBroadcastWithSingleEnumerationParameter(
@JoynrRpcCallback(deserializationType = Void.class) Callback callback
);
/*
* methodToFireBroadcastWithMultipleEnumerationParameters
*/
public Future methodToFireBroadcastWithMultipleEnumerationParameters(
@JoynrRpcCallback(deserializationType = Void.class) Callback callback
);
/*
* methodToFireBroadcastWithSingleStructParameter
*/
public Future methodToFireBroadcastWithSingleStructParameter(
@JoynrRpcCallback(deserializationType = Void.class) Callback callback
);
/*
* methodToFireBroadcastWithMultipleStructParameters
*/
public Future methodToFireBroadcastWithMultipleStructParameters(
@JoynrRpcCallback(deserializationType = Void.class) Callback callback
);
/*
* methodToFireBroadcastWithFiltering
*/
public Future methodToFireBroadcastWithFiltering(
@JoynrRpcCallback(deserializationType = Void.class) Callback callback,
String stringArg
);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy