summaryrefslogtreecommitdiff
path: root/udkapi/com/sun/star/beans/XIntrospectionAccess.idl
blob: 790b663905cdcac5ec32643a8eff143ed2ecc06d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
/*************************************************************************
 *
 *  $RCSfile: XIntrospectionAccess.idl,v $
 *
 *  $Revision: 1.2 $
 *
 *  last change: $Author: mi $ $Date: 2000-11-06 13:00:26 $
 *
 *  The Contents of this file are made available subject to the terms of
 *  either of the following licenses
 *
 *         - GNU Lesser General Public License Version 2.1
 *         - Sun Industry Standards Source License Version 1.1
 *
 *  Sun Microsystems Inc., October, 2000
 *
 *  GNU Lesser General Public License Version 2.1
 *  =============================================
 *  Copyright 2000 by Sun Microsystems, Inc.
 *  901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License version 2.1, as published by the Free Software Foundation.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *  MA  02111-1307  USA
 *
 *
 *  Sun Industry Standards Source License Version 1.1
 *  =================================================
 *  The contents of this file are subject to the Sun Industry Standards
 *  Source License Version 1.1 (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.openoffice.org/license.html.
 *
 *  Software provided under this License is provided on an "AS IS" basis,
 *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
 *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 *  See the License for the specific provisions governing your rights and
 *  obligations concerning the Software.
 *
 *  The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 *
 *  Copyright: 2000 by Sun Microsystems, Inc.
 *
 *  All Rights Reserved.
 *
 *  Contributor(s): _______________________________________
 *
 *
 ************************************************************************/
#ifndef __com_sun_star_beans_XIntrospectionAccess_idl__ 
#define __com_sun_star_beans_XIntrospectionAccess_idl__ 
 
#ifndef __com_sun_star_uno_XInterface_idl__ 
#include <com/sun/star/uno/XInterface.idl> 
#endif 
 
#ifndef __com_sun_star_beans_Property_idl__ 
#include <com/sun/star/beans/Property.idl> 
#endif 
 
#ifndef __com_sun_star_container_NoSuchElementException_idl__ 
#include <com/sun/star/container/NoSuchElementException.idl> 
#endif 
 
#ifndef __com_sun_star_reflection_XIdlMethod_idl__ 
#include <com/sun/star/reflection/XIdlMethod.idl> 
#endif 
 
#ifndef __com_sun_star_lang_NoSuchMethodException_idl__ 
#include <com/sun/star/lang/NoSuchMethodException.idl> 
#endif 
 
#ifndef __com_sun_star_reflection_XIdlClass_idl__ 
#include <com/sun/star/reflection/XIdlClass.idl> 
#endif 
 
#ifndef __com_sun_star_beans_IllegalTypeException_idl__ 
#include <com/sun/star/beans/IllegalTypeException.idl> 
#endif 
 
 
//============================================================================= 
 
 module com {  module sun {  module star {  module beans {  
 
//============================================================================= 
 
// DocMerge from xml: interface com::sun::star::beans::XIntrospectionAccess
/** gives access to the result of an interface / object 
    introspection done by the inspect-method of XIntrospection.
    
    
    
    <p>It supports some of the methods that are also defined in
    <type>XPropertySet</type>, but not the methods for listener registration, 
    since this would not be appropriate for an introspection result.
    
    </p>
    <p>The results of the <code>get..()</code> and <code>has..()</code> 
    methods depends on the concepts given in the parameter 
    <var>nConcepts</var>.  The minimum supported concepts should be 
    for the <type>MethodConcept</type>:
    </p>
    <ul>
    <li>
    <const>MethodConcept::PROPERTY</const>, 
    </li>
    <li>
    <const>MethodConcept::LISTENER</const>, 
    </li>
    <li>
    <const>MethodConcept::ENUMERATION</const>,
    </li>
    <li>
    <const>MethodConcept::NAMECONTAINER</const> and
    </li>
    <li>
    <const>MethodConcept::INDEXCONTAINER</const>;
    </li>
    </ul>
    and for the <type>PropertyConcept</type>:
    <ul>
    <li>
    <const>PropertyConcept::PROPERTYSET</const>,
    </li>
    <li>
    <const>PropertyConcept::ATTRIBUTES</const> and
    </li>
    <li>
    <const>PropertyConcept::METHODS</const>. 
    </li>
    </ul>
    Both groups get combined by an arithmetical or-operation.
    
    <p>The <type>XExactName</type> interface has to be supported in order to 
    implement inaccurate name access for all objects which implement the 
    <type scope="com::sun::star::container">XNameAccess</type> interface or <type>XPropertySet</type>.
    </p>@see			XPropertySet 
        @see com::sun::star::beans::XExactName
 */
[ uik(E227A4A9-33D6-11D1-AABE00A0-249D5590), ident( "XIntrospectionAccess", 1.0 ) ]
interface XIntrospectionAccess: com::sun::star::uno::XInterface
{ 
    //------------------------------------------------------------------------- 
     
    // DocMerge from idl: method com::sun::star::beans::XIntrospectionAccess::getSuppliedMethodConcepts
    /** @returns 
                    zero or more constants of the <type>MethodConcept</type>  
                    constants group.
     */
    [const] long getSuppliedMethodConcepts(); 
 
    //------------------------------------------------------------------------- 
     
    // DocMerge from idl: method com::sun::star::beans::XIntrospectionAccess::getSuppliedPropertyConcepts
    /** @returns 
                    zero or more constants of the <type>PropertyConcept</type>  
                    constants group.
     */
    [const] long getSuppliedPropertyConcepts(); 
 
    //------------------------------------------------------------------------- 
     
    // DocMerge from idl: method com::sun::star::beans::XIntrospectionAccess::getProperty
    /** @returns 
                    <TRUE/> if the method exists and fits the	 
                    given MethodConcepts; otherwise <FALSE/> is returned. 
                 
                @param aName  
                    the name of the <type>Property</type>. 
                 
                @param nPropertyConcepts	 
                    zero or more constants of the <type>PropertyConcept</type>  
                    constants group. 
                 
                @throws NoSuchElementException  
                    when an element under Name does not exist.
     */
    [const] com::sun::star::beans::Property getProperty( [in] string aName, 
             [in] long nPropertyConcepts ) 
            raises( com::sun::star::container::NoSuchElementException ); 
 
    //------------------------------------------------------------------------- 
     
    // DocMerge from idl: method com::sun::star::beans::XIntrospectionAccess::hasProperty
    /** @returns 
                    <TRUE/> if the method exists and fits  
                    the given <type>PropertyConcept</type>s;  
                    otherwise <FALSE/> is returned. 
                 
                @param aName  
                    the name of the <type>Property</type>. 
                 
                @param nPropertyConcepts	 
                    zero or more constants of the <type>PropertyConcept</type> 
                    constants group.
     */
    [const] boolean hasProperty( [in] string aName, 
             [in] long nPropertyConcepts ); 
 
    //------------------------------------------------------------------------- 
     
    // DocMerge from idl: method com::sun::star::beans::XIntrospectionAccess::getProperties
    /** @returns 
                    all properties of the introspected object which accord to the 
                    given <type>PropertyConcept</type>s.
     */
    [const] sequence<com::sun::star::beans::Property> getProperties(  
                [in] long nPropertyConcepts ); 
 
    //------------------------------------------------------------------------- 
     
    // DocMerge from idl: method com::sun::star::beans::XIntrospectionAccess::getMethod
    /** @returns  
                    the method with the given name if it exists and fits the 
                    specified <type>MethodConcept</type>s. 
                 
                @param aName  
                    the name of the method. 
                 
                @param nMethodConcepts	 
                    zero or more constants of the MethodConcept group. 
                 
                @throws NoSuchElementException  
                    if no element with the name <var>Name</var> exists.
     */
    [const] com::sun::star::reflection::XIdlMethod getMethod( [in] string aName, 
             [in] long nMethodConcepts ) 
            raises( com::sun::star::lang::NoSuchMethodException ); 
 
    //------------------------------------------------------------------------- 
     
    // DocMerge from idl: method com::sun::star::beans::XIntrospectionAccess::hasMethod
    /** @returns 
                    <TRUE/> if the method exists and fits the  
                    given <type>MethodConcepts</type>s; otherwise <FALSE/>  
                    is returned. 
                 
                @param aName  
                    the name of the method. 
                 
                @param nMethodConcepts 
                    zero or more constants of the <type>MethodConcept</type> 
                    constants group.
     */
    [const] boolean hasMethod( [in] string aName, 
             [in] long nMethodConcepts ); 
 
    //------------------------------------------------------------------------- 
     
    // DocMerge from idl: method com::sun::star::beans::XIntrospectionAccess::getMethods
    /** @returns 
                    all methods of the introspected object which accord to the 
                    given <type>MethodConcept</type>s.
     */
    [const] sequence<com::sun::star::reflection::XIdlMethod> getMethods(  
            [in] long nMethodConcepts ); 
 
    //------------------------------------------------------------------------- 
     
    // DocMerge from idl: method com::sun::star::beans::XIntrospectionAccess::getSupportedListeners
    /** @returns 
                    a sequence of the types of listener interfaces which are 
                    supported by the introspected object.
     */
    [const] sequence<TYPE_XIDLCLASS> getSupportedListeners(); 
 
    //------------------------------------------------------------------------- 
     
    // DocMerge from xml: method com::sun::star::beans::XIntrospectionAccess::queryAdapter
    /** creates an adapter that implements an interface 
        with the specified type.
        
        
        
        <p>The supplied concepts (see the methods 
        
        
        
        
        
        ) 
        and the 
        
        
        
        
        method 
        determine the interfaces returned by this method.
        
        </p>
        <p>To access properties, query for the <type>XPropertySet</type> 
        interface. If the <type>XPropertySet</type> can be queried,
        the <type>XFastPropertySet</type> interface must be 
        supported too.
        
        </p>
        <p>If the introspected object implements a name container, the 
        introspection should return the <type scope="com::sun::star::container">XNameAccess</type> and 
        <type scope="com::sun::star::container">XNameContainer</type> interfaces.
        
        </p>
        <p>If the introspected object implements an index container, the 
        introspection should return the <type scope="com::sun::star::container">XIndexAccess</type> and 
        <type scope="com::sun::star::container">XIndexContainer</type> interfaces.
        
        </p>
        <p>If the introspected object implements an enumeration container, 
        the introspection should return the <type scope="com::sun::star::container">XEnumerationAccess</type>
        interface.
        
        </p>
        <p>If the introspected object implements the <type scope="com::sun::star::reflection">XIdlArray</type> 
        interface, the introspection should return this.
        
        </p>
        <p>To implement inaccurate name access, at all objects, which 
        implement the <type scope="com::sun::star::container">XNameAccess</type> or <type>XPropertySet</type> 
        interface, the <type>XExactName</type> interface has to be supported. 
        </p>@see com::sun::star::beans::XExactName
     */
    [const] com::sun::star::uno::XInterface queryAdapter( [in] TYPE_XIDLCLASS aInterfaceType ) 
            raises( com::sun::star::beans::IllegalTypeException ); 
 
}; 
 
//============================================================================= 
 
}; }; }; };  
 
/*============================================================================= 
 
    $Log: not supported by cvs2svn $
    Revision 1.2  2000/10/09 14:24:53  mi
    #78715# exchanged stardiv::... by com::sun::star::... (especially in @see tags)
    
    Revision 1.1.1.1  2000/09/18 23:34:56  hjs
    initial import
    
    Revision 1.8  2000/09/11 11:52:11  mi
    documentation merged from XML
     
    Revision 1.6  2000/02/23 12:43:24  mi 
    missing documentations 
     
    Revision 1.5  2000/02/17 09:30:05  mi 
    proofreading in layouted version 
     
    Revision 1.4  2000/02/07 11:24:18  mi 
    zu #70728# missing documentation marked 
     
    Revision 1.3  2000/01/14 11:05:18  jsc 
    #71616# Typumstellung 
     
    Revision 1.2  1999/11/24 17:48:16  mi 
    documentation welformed 
     
    Revision 1.1.1.1  1999/11/11 09:48:40  jsc 
    new 
     
 
=============================================================================*/ 
#endif