Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

KeyDeclaration.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(XALAN_KEYDECLARATION_HEADER_GUARD)
17 #define XALAN_KEYDECLARATION_HEADER_GUARD
18 
19 
20 
21 // Base include file. Must be first.
22 #include "XSLTDefinitions.hpp"
23 
24 
25 
26 XALAN_CPP_NAMESPACE_BEGIN
27 
28 
29 
31 
32 
33 
34 class XPath;
35 
36 
37 
42 {
43 public:
44 
53  const XalanQName& qname,
54  const XPath& matchPattern,
55  const XPath& use,
56  const XalanDOMString& uri,
57  XalanLocator::size_type lineNumber,
58  XalanLocator::size_type columnNumber) :
59  m_qname(&qname),
60  m_match(&matchPattern),
61  m_use(&use),
62  m_uri(&uri),
63  m_lineNumber(lineNumber),
64  m_columnNumber(columnNumber)
65  {
66  }
67 
68  explicit
70  m_qname(0),
71  m_match(0),
72  m_use(0),
73  m_uri(0),
74  m_lineNumber(0),
75  m_columnNumber(0)
76  {
77  }
78 
79  KeyDeclaration(const KeyDeclaration& theSource) :
80  m_qname(theSource.m_qname),
81  m_match(theSource.m_match),
82  m_use(theSource.m_use)
83  {
84  }
85 
87  {
88  }
89 
95  const XalanQName*
96  getQName() const
97  {
98  return m_qname;
99  }
100 
106  const XPath*
107  getUse() const
108  {
109  return m_use;
110  }
111 
117  const XPath*
119  {
120  return m_match;
121  }
122 
128  const XalanDOMString*
129  getURI() const
130  {
131  return m_uri;
132  }
133 
141  {
142  return m_lineNumber;
143  }
144 
152  {
153  return m_columnNumber;
154  }
155 
156 private:
157 
158  const XalanQName* m_qname;
159 
160  const XPath* m_match;
161 
162  const XPath* m_use;
163 
164  const XalanDOMString* m_uri;
165 
166  XalanLocator::size_type m_lineNumber;
167 
168  XalanLocator::size_type m_columnNumber;
169 };
170 
171 
172 
173 XALAN_CPP_NAMESPACE_END
174 
175 
176 
177 #endif // XALAN_KEYDECLARATION_HEADER_GUARD
XalanLocator::size_type getColumnNumber() const
Retrieves the column number where the xsl:key element occurred.
Definition: KeyDeclaration.hpp:151
const XPath * getUse() const
Retrieves "use" XPath.
Definition: KeyDeclaration.hpp:107
~KeyDeclaration()
Definition: KeyDeclaration.hpp:86
Definition: XPath.hpp:62
KeyDeclaration(const XalanQName &qname, const XPath &matchPattern, const XPath &use, const XalanDOMString &uri, XalanLocator::size_type lineNumber, XalanLocator::size_type columnNumber)
Construct an object containing attributes of an "xsl:key" element.
Definition: KeyDeclaration.hpp:52
const XalanDOMString * getURI() const
Retrieves the URI.
Definition: KeyDeclaration.hpp:129
XMLSSize_t size_type
Definition: XalanLocator.hpp:48
const XPath * getMatchPattern() const
Retrieves "match" XPath.
Definition: KeyDeclaration.hpp:118
Holds the attribute declarations for the "xsl:key" element.
Definition: KeyDeclaration.hpp:41
KeyDeclaration(const KeyDeclaration &theSource)
Definition: KeyDeclaration.hpp:79
const XalanQName * getQName() const
Retrieves name of element.
Definition: KeyDeclaration.hpp:96
Definition: XalanDOMString.hpp:42
XalanLocator::size_type getLineNumber() const
Retrieves the line number where the xsl:key element occurred.
Definition: KeyDeclaration.hpp:140
Class to represent a qualified name: "The name of an internal XSLT object, specifically a named templ...
Definition: XalanQName.hpp:68
KeyDeclaration()
Definition: KeyDeclaration.hpp:69

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