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.environments.remote;
24 
25 
26 import com.sun.star.uno.Type;
27 
28 import com.sun.star.uno.ITypeDescription;
29 
30 
31 class TestMessage implements IMessage {
32 	boolean  _synchron;
33 	ITypeDescription     _iTypeDescription;
34 	String   _oid;
35 	ThreadId _threadId;
36 	Object   _result;
37 	String   _operation;
38 	Object   _params[];
39 
TestMessage(boolean synchron, ITypeDescription iTypeDescription, String oid, ThreadId threadId, Object result, String operation, Object params[])40 	TestMessage(boolean synchron, ITypeDescription iTypeDescription, String oid, ThreadId threadId, Object result, String operation, Object params[]) {
41 		_synchron  = synchron;
42 		_iTypeDescription      = iTypeDescription;
43 		_oid       = oid;
44 		_threadId  = threadId;
45 		_result    = result;
46 		_operation = operation;
47 		_params    = params;
48 	}
49 
getOperation()50 	public String getOperation() {
51 		return _operation;
52 	}
53 
getThreadId()54 	public ThreadId getThreadId() {
55 		return _threadId;
56 	}
57 
getInterface()58 	public ITypeDescription getInterface() {
59 		return _iTypeDescription;
60 	}
61 
isSynchron()62 	public boolean isSynchron() {
63 		return _synchron;
64 	}
65 
mustReply()66 	public boolean mustReply() {
67 		return _synchron;
68 	}
69 
isException()70 	public boolean isException() {
71 		return false;
72 	}
73 
getOid()74 	public String getOid() {
75 		return _oid;
76 	}
77 
getData(Object params[][])78 	public Object getData(Object params[][]) {
79 		params[0] = _params;
80 		return _result;
81 //  			return new Integer(_requestId);
82 	}
83 }
84 
85 
86