Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanQNameByValue.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(XALANQNAMEBYVALUE_HEADER_GUARD_1357924680)
17 #define XALANQNAMEBYVALUE_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base header file. Must be first.
23 
24 
25 
26 // Base class header file...
28 
29 
30 
31 XALAN_DECLARE_XERCES_CLASS(Locator)
32 
33 
34 
35 XALAN_CPP_NAMESPACE_BEGIN
36 
37 
38 
39 class DOMSupport;
40 
41 
42 
44 {
45 public:
46 
47  typedef XERCES_CPP_NAMESPACE_QUALIFIER Locator LocatorType;
48 
52  explicit
54 
57  {
58  return m_namespace.getMemoryManager();
59  }
60 
66  XalanQNameByValue(const XalanQNameByValue& theSource,
67  MemoryManagerType& theManager);
68 
74  explicit
75  XalanQNameByValue(const XalanQName& theSource,
76  MemoryManagerType& theManager);
77 
85  const XalanDOMString& theNamespace,
86  const XalanDOMString& theLocalPart,
87  MemoryManagerType& theManager);
88 
89  static XalanQNameByValue*
90  create(
91  const XalanDOMString& theNamespace,
92  const XalanDOMString& theLocalPart,
93  MemoryManagerType& theManager);
94 
105  const XalanDOMString& qname,
106  const NamespacesStackType& namespaces,
107  MemoryManagerType& theManager,
108  const LocatorType* locator = 0,
109  bool fUseDefault = false);
110 
121  const XalanDOMChar* qname,
122  const NamespacesStackType& namespaces,
123  MemoryManagerType& theManager,
124  const LocatorType* locator = 0,
125  bool fUseDefault = false);
126 
138  const XalanDOMString& qname,
139  const XalanElement* namespaceContext,
140  const XPathEnvSupport& envSupport,
141  const DOMSupport& domSupport,
142  MemoryManagerType& theManager,
143  const LocatorType* locator = 0);
144 
154  const XalanDOMString& qname,
155  MemoryManagerType& theManager,
156  const PrefixResolver* theResolver = 0,
157  const LocatorType* locator = 0);
158 
159  virtual
161 
167  virtual const XalanDOMString&
168  getLocalPart() const;
169 
175  void
176  setLocalPart(const XalanDOMString& theLocalPart)
177  {
178  m_localpart = theLocalPart;
179  }
180 
186  virtual const XalanDOMString&
187  getNamespace() const;
188 
194  void
195  setNamespace(const XalanDOMString& theNamespace)
196  {
197  m_namespace = theNamespace;
198  }
199 
210  void
211  set(
212  const XalanDOMString& qname,
213  const NamespacesStackType& namespaces,
214  const LocatorType* locator = 0,
215  bool fUseDefault = false);
216 
227  void
228  set(
229  const XalanDOMChar* qname,
230  const NamespacesStackType& namespaces,
231  const LocatorType* locator = 0,
232  bool fUseDefault = false);
233 
243  void
244  set(
245  const XalanDOMString& qname,
246  const PrefixResolver* theResolver = 0,
247  const LocatorType* locator = 0);
248 
258  void
259  set(
260  const XalanDOMChar* qname,
261  const PrefixResolver* theResolver = 0,
262  const LocatorType* locator = 0);
266  void
268  {
269  m_namespace.clear();
270  m_localpart.clear();
271  }
272 
275  {
276  m_namespace = theRHS.m_namespace;
277  m_localpart = theRHS.m_localpart;
278 
279  return *this;
280  }
281 
283  operator=(const XalanQName& theRHS)
284  {
285  m_namespace = theRHS.getNamespace();
286  m_localpart = theRHS.getLocalPart();
287 
288  return *this;
289  }
290 
291 private:
292  // not implemented
293  XalanQNameByValue(const XalanQNameByValue& theSource);
294  void
295  initialize(
296  const XalanDOMChar* qname,
298  const NamespacesStackType& namespaces,
299  const LocatorType* locator,
300  bool fUseDefault);
301 
302  void
303  resolvePrefix(
304  const XalanDOMChar* qname,
305  XalanDOMString::size_type theLength,
306  const PrefixResolver* theResolver,
307  const LocatorType* locator);
308 
309  void
310  validate(
311  const XalanDOMChar* qname,
312  XalanDOMString::size_type theLength,
313  const LocatorType* locator);
314 
315  // Data members...
316  XalanDOMString m_namespace;
317 
318  XalanDOMString m_localpart;
319 };
320 
321 
322 
323 XALAN_CPP_NAMESPACE_END
324 
325 
326 
327 #endif // XALANQNAMEBYVALUE_HEADER_GUARD_1357924680

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo