Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanQNameByReference.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(XALANQNAMEBYREFERENCE_HEADER_GUARD_1357924680)
17 #define XALANQNAMEBYREFERENCE_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_CPP_NAMESPACE_BEGIN
32 
33 
34 
36 {
37 public:
38 
42  explicit
44 
54  const XalanDOMString& theNamespace,
55  const XalanDOMString& theLocalPart);
56 
64  XalanQNameByReference(const XalanDOMString& theLocalPart);
65 
72  XalanQNameByReference(const XalanQName& theQName);
73 
74  virtual
76 
82  virtual const XalanDOMString&
83  getLocalPart() const;
84 
90  void
91  setLocalPart(const XalanDOMString& theLocalPart)
92  {
93  m_localpart = &theLocalPart;
94  }
95 
101  virtual const XalanDOMString&
102  getNamespace() const;
103 
109  void
110  setNamespace(const XalanDOMString& theNamespace)
111  {
112  m_namespace = &theNamespace;
113  }
114 
118  void
120  {
121  m_namespace = &s_emptyString;
122  m_localpart = &s_emptyString;
123  }
124 
125 private:
126 
127  // OK, we said reference, but using pointers
128  // allows for copy and assignment semantics.
129  const XalanDOMString* m_namespace;
130 
131  const XalanDOMString* m_localpart;
132 };
133 
134 
135 
136 template<>
138 {
139 };
140 
141 
142 
143 XALAN_CPP_NAMESPACE_END
144 
145 
146 
147 #endif // XALANQNAMEBYREFERENCE_HEADER_GUARD_1357924680
void clear()
Clear the instance.
Definition: XalanQNameByReference.hpp:119
void setLocalPart(const XalanDOMString &theLocalPart)
Set the local part of qualified name.
Definition: XalanQNameByReference.hpp:91
void setNamespace(const XalanDOMString &theNamespace)
Set the Namespace URI of qualified name.
Definition: XalanQNameByReference.hpp:110
Definition: XalanMap.hpp:66
Definition: XalanQNameByReference.hpp:35
virtual const XalanDOMString & getNamespace() const =0
Retrieve the namespace of qualified name.
static const XalanDOMString s_emptyString
Definition: XalanQName.hpp:399
Definition: XalanDOMString.hpp:42
virtual const XalanDOMString & getLocalPart() const =0
Retrieve the local part of qualified name.
#define XALAN_XPATH_EXPORT
Definition: XPathDefinitions.hpp:33
Class to represent a qualified name: "The name of an internal XSLT object, specifically a named templ...
Definition: XalanQName.hpp:68

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