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
24#if ! defined INCLUDED_com_sun_star_sax_input_XUidMapping_idl
25#define INCLUDED_com_sun_star_sax_input_XUidMapping_idl
26
27#include <com/sun/star/container/NoSuchElementException.idl>
28
29
30module com { module sun { module star { module xml { module input {
31
32/** Interface to map XML namespace URI strings to ordinals (URI-id, short uid).
33
34    @internal
35*/
36interface XNamespaceMapping : com::sun::star::uno::XInterface
37{
38    /** Creates a unique ordinal passing an XML namespace URI.
39
40        @param uri
41               XML namespace URI
42        @return
43                uid
44     */
45    long getUidByUri( [in] string uri );
46
47    /** Gets the corresponding XML namespace URI passing a uid (created using
48        getUidByUri()).
49
50        @param uid
51               uid
52        @return
53               XML namespace URI
54    */
55    string getUriByUid( [in] long uid )
56        raises (com::sun::star::container::NoSuchElementException);
57};
58
59}; }; }; }; };
60
61#endif
62