merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / configuration / SimpleSetAccess.idl
blob35f8745fe977bf6a31dbd7cd70c5a66bf9ca024e
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_configuration_SimpleSetAccess_idl__
28 #define __com_sun_star_configuration_SimpleSetAccess_idl__
30 #ifndef __com_sun_star_container_XNameAccess_idl__
31 #include <com/sun/star/container/XNameAccess.idl>
32 #endif
34 #ifndef __com_sun_star_configuration_XTemplateContainer_idl__
35 #include <com/sun/star/configuration/XTemplateContainer.idl>
36 #endif
38 #ifndef __com_sun_star_util_XStringEscape_idl__
39 #include <com/sun/star/util/XStringEscape.idl>
40 #endif
42 #ifndef __com_sun_star_container_XContainer_idl__
43 #include <com/sun/star/container/XContainer.idl>
44 #endif
46 //=============================================================================
48 module com { module sun { module star { module configuration {
50 //=============================================================================
51 /** provides access to a dynamic, homogeneous, nonhierarchical set of values
52 or objects.
54 <p>Also provides information about the template for elements.
55 Allows normalizing externally generated names.
56 </p>
58 <p><em>Sets</em> are dynamic containers.</p>
60 <p>The number and names of contained elements is not fixed in advance,
61 but all elements have to be of one predetermined type.
62 </p>
64 published service SimpleSetAccess
66 /** is the basic service for accessing child and descendent nodes.
68 <p>External names from foreign namespaces should be normalized using
69 <member scope="com::sun::star::util">XStringEscape::escapeString()</member>,
70 if available, before using them as element names.
71 </p>
73 interface com::sun::star::container::XNameAccess;
75 /** provides additional information about the element type. [optional]
77 <p>All set elements, if they are not just simple values, but whole trees,
78 must have a predetermined structure (their <em>type</em>)
79 that is described by and can be generated from a <em>template</em>.
80 The semantics of the information provided about the template depends on the
81 implementation.
82 </p>
84 <p>This interface may be missing, if the implementation can support only
85 one predefined type or if the elements are of a simple type and
86 no further information is available. In the latter case,
87 <member scope="com::sun::star::container">XElementAccess::getElementType()</member>
88 provides all the information there is about the element's type.
89 </p>
91 [optional] interface com::sun::star::configuration::XTemplateContainer;
93 /** allows normalizing and denormalizing external names. [optional]
95 <p>Elements of a <em>set</em> often correspond to external entities,
96 for example, files, web pages, and people whose names obey different rules and
97 restrictions than names that are valid in the hierarchical naming scheme.
98 </p>
100 <p>This interface may be missing if there are no naming restrictions,
101 if the implementation handles any such conversions internally,
102 or if clients must enforce such restrictions themselves. In the last case,
103 the naming scheme documentation must fully document any restrictions.
104 </p>
106 [optional] interface com::sun::star::util::XStringEscape;
108 /** allows attaching listeners to this node to monitor changes to the set. [optional]
110 <p>This interface may be missing if the implementation does not support
111 notifications.
112 </p>
114 [optional] interface com::sun::star::container::XContainer;
118 //=============================================================================
120 }; }; }; };
122 #endif