Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / configuration / backend / XVersionedSchemaSupplier.idl
blob97dc99ca8caa58d85e1c23a95ff91259e61a5462
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XVersionedSchemaSupplier.idl,v $
10 * $Revision: 1.4 $
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_backend_XVersionedSchemaSupplier_idl__
31 #define __com_sun_star_configuration_backend_XVersionedSchemaSupplier_idl__
33 #ifndef __com_sun_star_configuration_backend_XSchemaSupplier_idl__
34 #include <com/sun/star/configuration/backend/XSchemaSupplier.idl>
35 #endif
37 #ifndef __com_sun_star_configuration_backend_BackendAccessException_idl__
38 #include <com/sun/star/configuration/backend/BackendAccessException.idl>
39 #endif
41 #ifndef __com_sun_star_lang_IllegalArgumentException_idl__
42 #include <com/sun/star/lang/IllegalArgumentException.idl>
43 #endif
45 //=============================================================================
47 module com { module sun { module star { module configuration { module backend {
49 //=============================================================================
51 /**
52 provides access to versioned configuration component schemas.
54 @since OOo 2.0
56 interface XVersionedSchemaSupplier : XSchemaSupplier
58 //-------------------------------------------------------------------------
60 /**
61 Returns the schema version for a particular component.
63 @param aComponent
64 component whose schema version will be determined
66 @returns
67 a <atom>string</atom> that identifies the schema version for
68 the given component.
70 <p> The format of the version string is arbitrary. No meaning
71 should be attached to it, unless an implementing service
72 defines one. If no version can be determined, an empty
73 <atom>string</atom> may be returned.
74 </p>
76 <p> Clients may assume that all instances of a schema with the
77 same version are identical. The converse is not true.
78 In particular an implementation may return the same version
79 string for all schemas it supplies (i.e. return a version for
80 the complete schema, including all components)
81 </p>
83 @throws com::sun::star::lang::IllegalArgumentException
84 if the component identifier is invalid.
86 @throws com::sun::star::configuration::backend::BackendAccessException
87 if an error occurs while accessing the version data.
89 string getSchemaVersion([in] string aComponent)
90 raises (BackendAccessException,
91 com::sun::star::lang::IllegalArgumentException) ;
93 //-------------------------------------------------------------------------
94 } ;
96 //=============================================================================
98 } ; } ; } ; } ; } ;
100 #endif