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#ifndef __com_sun_star_reflection_XMethodParameter_idl__
24#define __com_sun_star_reflection_XMethodParameter_idl__
25
26#ifndef __com_sun_star_uno_XInterface_idl__
27#include <com/sun/star/uno/XInterface.idl>
28#endif
29
30#ifndef __com_sun_star_reflection_XTypeDescription_idl__
31#include <com/sun/star/reflection/XTypeDescription.idl>
32#endif
33
34
35//=============================================================================
36
37 module com {  module sun {  module star {  module reflection {
38
39//=============================================================================
40
41/** Reflects a method parameter.
42
43    <p>This type is superseded by <type>XParameter</type>, which supports
44    parameters of service constructors as well as parameters of interface
45    methods.</p>
46
47    @see XInterfaceMethodTypeDescription
48*/
49published interface XMethodParameter: com::sun::star::uno::XInterface
50{
51	/** Returns the name of the parameter
52
53        @return
54                name of parameter
55    */
56	string getName();
57
58	/** Returns the type of the parameter.
59
60        @return
61                type of parameter
62    */
63	com::sun::star::reflection::XTypeDescription getType();
64
65	/** Returns true, if the parameter is declared as [in] or [inout] in IDL.
66
67        @return
68                true, if declared [in] or [inout] parameter
69    */
70	boolean isIn();
71
72	/** Returns true, if the parameter is declared as [out] or [inout] in IDL.
73
74        @return
75                true, if declared [out] or [inout] parameter
76    */
77	boolean isOut();
78
79	/** Returns the position of the parameter regarding the IDL method declaration.
80
81        @return
82                position of the parameter
83    */
84	long getPosition();
85};
86
87//=============================================================================
88
89}; }; }; };
90
91/*=============================================================================
92
93=============================================================================*/
94#endif
95