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 #include <notationsmap.hxx>
25 
26 #include <documenttype.hxx>
27 
28 
29 namespace DOM
30 {
CNotationsMap(::rtl::Reference<CDocumentType> const & pDocType,::osl::Mutex & rMutex)31     CNotationsMap::CNotationsMap(
32             ::rtl::Reference<CDocumentType> const& pDocType,
33             ::osl::Mutex & rMutex)
34         : m_pDocType(pDocType)
35         , m_rMutex(rMutex)
36     {
37     }
38 
39     /**
40     The number of nodes in this map.
41     */
getLength()42     sal_Int32 SAL_CALL CNotationsMap::getLength() throw (RuntimeException)
43     {
44         OSL_ENSURE(false,
45             "CNotationsMap::getLength: not implemented (#i113683#)");
46         return 0;
47     }
48 
49     /**
50     Retrieves a node specified by local name
51     */
52     Reference< XNode > SAL_CALL
getNamedItem(OUString const &)53     CNotationsMap::getNamedItem(OUString const& /*name*/)
54     throw (RuntimeException)
55     {
56         OSL_ENSURE(false,
57             "CNotationsMap::getNamedItem: not implemented (#i113683#)");
58         return Reference< XNode >();
59     }
60 
61     /**
62     Retrieves a node specified by local name and namespace URI.
63     */
64     Reference< XNode > SAL_CALL
getNamedItemNS(OUString const &,OUString const &)65     CNotationsMap::getNamedItemNS(
66         OUString const& /*namespaceURI*/, OUString const& /*localName*/)
67     throw (RuntimeException)
68     {
69         OSL_ENSURE(false,
70             "CNotationsMap::getNamedItemNS: not implemented (#i113683#)");
71         return Reference< XNode >();
72     }
73 
74     /**
75     Returns the indexth item in the map.
76     */
77     Reference< XNode > SAL_CALL
item(sal_Int32)78     CNotationsMap::item(sal_Int32 /*index*/) throw (RuntimeException)
79     {
80         OSL_ENSURE(false, "CNotationsMap::item: not implemented (#i113683#)");
81         return Reference< XNode >();
82     }
83 
84     /**
85     Removes a node specified by name.
86     */
87     Reference< XNode > SAL_CALL
removeNamedItem(OUString const &)88     CNotationsMap::removeNamedItem(OUString const& /*name*/)
89     throw (RuntimeException)
90     {
91         OSL_ENSURE(false,
92             "CNotationsMap::removeNamedItem: not implemented (#i113683#)");
93         return Reference< XNode >();
94     }
95 
96     /**
97     // Removes a node specified by local name and namespace URI.
98     */
99     Reference< XNode > SAL_CALL
removeNamedItemNS(OUString const &,OUString const &)100     CNotationsMap::removeNamedItemNS(
101         OUString const& /*namespaceURI*/, OUString const& /*localName*/)
102     throw (RuntimeException)
103     {
104         OSL_ENSURE(false,
105             "CNotationsMap::removeNamedItemNS: not implemented (#i113683#)");
106         return Reference< XNode >();
107     }
108 
109     /**
110     // Adds a node using its nodeName attribute.
111     */
112     Reference< XNode > SAL_CALL
setNamedItem(Reference<XNode> const &)113     CNotationsMap::setNamedItem(Reference< XNode > const& /*arg*/)
114     throw (RuntimeException)
115     {
116         OSL_ENSURE(false,
117             "CNotationsMap::setNamedItem: not implemented (#i113683#)");
118         return Reference< XNode >();
119     }
120 
121     /**
122     Adds a node using its namespaceURI and localName.
123     */
124     Reference< XNode > SAL_CALL
setNamedItemNS(Reference<XNode> const &)125     CNotationsMap::setNamedItemNS(Reference< XNode > const& /*arg*/)
126     throw (RuntimeException)
127     {
128         OSL_ENSURE(false,
129             "CNotationsMap::setNamedItemNS: not implemented (#i113683#)");
130         return Reference< XNode >();
131     }
132 }
133