1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 package com.sun.star.lib.uno.protocols.urp; 24 25 26 27 class TestObject implements TestXInterface { method1( java.lang.Object itf )28 public void method1( /*IN*/java.lang.Object itf ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException { 29 } 30 method2( java.lang.Object[] itf )31 public void method2( /*OUT*/java.lang.Object[] itf ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException { 32 } 33 method3( java.lang.Object[] itf )34 public void method3( /*INOUT*/java.lang.Object[] itf ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException { 35 } 36 method4( )37 public Object method4( ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException { 38 return null; 39 } 40 returnAny( )41 public Object returnAny( ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException { 42 return null; 43 } 44 45 method()46 public void method() throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException { 47 } 48 methodWithInParameter( String text )49 public void methodWithInParameter( /*IN*/String text ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException { 50 } 51 methodWithOutParameter( String[] text )52 public void methodWithOutParameter( /*OUT*/String[] text ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException { 53 } 54 methodWithInOutParameter( String[] text )55 public void methodWithInOutParameter( /*INOUT*/String[] text ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException { 56 } 57 methodWithResult( )58 public String methodWithResult( ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException { 59 return "TestObject_resultString"; 60 } 61 MethodWithIn_Out_InOut_Paramters_and_result( String text, String[] outtext, String[] inouttext )62 public String MethodWithIn_Out_InOut_Paramters_and_result( /*IN*/String text, /*OUT*/String[] outtext, /*INOUT*/String[] inouttext ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException { 63 return "TestObject_resultString"; 64 } 65 } 66 67