1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SimpleSetAccess.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_configuration_SimpleSetAccess_idl__
31 #define __com_sun_star_configuration_SimpleSetAccess_idl__
33 #ifndef __com_sun_star_container_XNameAccess_idl__
34 #include
<com
/sun
/star
/container
/XNameAccess.idl
>
37 #ifndef __com_sun_star_configuration_XTemplateContainer_idl__
38 #include
<com
/sun
/star
/configuration
/XTemplateContainer.idl
>
41 #ifndef __com_sun_star_util_XStringEscape_idl__
42 #include
<com
/sun
/star
/util
/XStringEscape.idl
>
45 #ifndef __com_sun_star_container_XContainer_idl__
46 #include
<com
/sun
/star
/container
/XContainer.idl
>
49 //=============================================================================
51 module com
{ module sun
{ module star
{ module configuration
{
53 //=============================================================================
54 /** provides access to a dynamic, homogeneous, nonhierarchical set of values
57 <p>Also provides information about the template for elements.
58 Allows normalizing externally generated names.
61 <p><em>Sets</em> are dynamic containers.</p>
63 <p>The number and names of contained elements is not fixed in advance,
64 but all elements have to be of one predetermined type.
67 published service SimpleSetAccess
69 /** is the basic service for accessing child and descendent nodes.
71 <p>External names from foreign namespaces should be normalized using
72 <member scope="com::sun::star::util">XStringEscape::escapeString()</member>,
73 if available, before using them as element names.
76 interface com
::sun
::star
::container
::XNameAccess
;
78 /** provides additional information about the element type. [optional]
80 <p>All set elements, if they are not just simple values, but whole trees,
81 must have a predetermined structure (their <em>type</em>)
82 that is described by and can be generated from a <em>template</em>.
83 The semantics of the information provided about the template depends on the
87 <p>This interface may be missing, if the implementation can support only
88 one predefined type or if the elements are of a simple type and
89 no further information is available. In the latter case,
90 <member scope="com::sun::star::container">XElementAccess::getElementType()</member>
91 provides all the information there is about the element's type.
94 [optional] interface com
::sun
::star
::configuration
::XTemplateContainer
;
96 /** allows normalizing and denormalizing external names. [optional]
98 <p>Elements of a <em>set</em> often correspond to external entities,
99 for example, files, web pages, and people whose names obey different rules and
100 restrictions than names that are valid in the hierarchical naming scheme.
103 <p>This interface may be missing if there are no naming restrictions,
104 if the implementation handles any such conversions internally,
105 or if clients must enforce such restrictions themselves. In the last case,
106 the naming scheme documentation must fully document any restrictions.
109 [optional] interface com
::sun
::star
::util
::XStringEscape
;
111 /** allows attaching listeners to this node to monitor changes to the set. [optional]
113 <p>This interface may be missing if the implementation does not support
117 [optional] interface com
::sun
::star
::container
::XContainer
;
121 //=============================================================================