Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanMatchPatternData.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 
17 #if !defined(XALAN_MATCHPATTERNDATA_HEADER_GUARD)
18 #define XALAN_MATCHPATTERNDATA_HEADER_GUARD
19 
20 
21 
22 // Base include file. Must be first.
24 
25 
26 
27 #include <cstddef>
28 
29 
30 
32 
33 
34 
35 #include "xalanc/XPath/XPath.hpp"
36 
37 
38 
39 XALAN_CPP_NAMESPACE_BEGIN
40 
41 
42 class ElemTemplate;
43 
44 
45 
51 {
52 
53 public:
54 
56 
57 #if defined(XALAN_STRICT_ANSI_HEADERS)
58  typedef std::size_t size_type;
59 #else
60  typedef size_t size_type;
61 #endif
62 
63 
75  MemoryManagerType& theManager,
76  const ElemTemplate& theTemplate,
77  size_type thePosition,
78  const XalanDOMString& theTargetString,
79  const XPath& theMatchPattern,
80  const XalanDOMString& thePatternString,
81  eMatchScore thePriority) :
82  m_template(&theTemplate),
83  m_position(thePosition),
84  m_targetString(theTargetString, theManager),
85  m_matchPattern(&theMatchPattern),
86  m_pattern(&thePatternString),
87  m_priority(thePriority)
88  {
89  }
90 
92  {
93  }
94 
100  const XalanDOMString&
102  {
103  return m_targetString;
104  }
105 
111  const XPath*
113  {
114  return m_matchPattern;
115  }
116 
122  size_type
123  getPosition() const
124  {
125  return m_position;
126  }
127 
133  const XalanDOMString*
134  getPattern() const
135  {
136  return m_pattern;
137  }
138 
144  const ElemTemplate*
145  getTemplate() const
146  {
147  return m_template;
148  }
149 
150  eMatchScore
152  {
153  return m_priority;
154  }
155 
156  double
157  getPriorityOrDefault() const;
158 
159 private:
160  // not implemented
163 
164  const ElemTemplate* m_template;
165 
166  size_type m_position;
167 
168  XalanDOMString m_targetString;
169 
170  const XPath* m_matchPattern;
171 
172  const XalanDOMString* m_pattern;
173 
174  eMatchScore m_priority;
175 };
176 
177 
178 
179 XALAN_CPP_NAMESPACE_END
180 
181 
182 
183 #endif // XALAN_MATCHPATTERNDATA_HEADER_GUARD
const XPath * getExpression() const
Retrieve the match pattern associated with pattern.
Definition: XalanMatchPatternData.hpp:112
Definition: ElemTemplate.hpp:41
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
This class contains information concerning a match pattern in a stylesheet.
Definition: XalanMatchPatternData.hpp:50
size_t size_type
Definition: XalanMatchPatternData.hpp:60
eMatchScore
Definition: XPath.hpp:84
const XalanDOMString & getTargetString() const
Retrieve string for target.
Definition: XalanMatchPatternData.hpp:101
~XalanMatchPatternData()
Definition: XalanMatchPatternData.hpp:91
const XalanDOMString * getPattern() const
Retrieve pattern string.
Definition: XalanMatchPatternData.hpp:134
size_type getPosition() const
Retrieve position of pattern in stylesheet.
Definition: XalanMatchPatternData.hpp:123
XalanMatchPatternData(MemoryManagerType &theManager, const ElemTemplate &theTemplate, size_type thePosition, const XalanDOMString &theTargetString, const XPath &theMatchPattern, const XalanDOMString &thePatternString, eMatchScore thePriority)
Construct a XalanMatchPatternData from a pattern and template.
Definition: XalanMatchPatternData.hpp:74
eMatchScore getDefaultPriority() const
Definition: XalanMatchPatternData.hpp:151
const ElemTemplate * getTemplate() const
Retrieve node that contains the template for this pattern.
Definition: XalanMatchPatternData.hpp:145
Definition: XPath.hpp:62
XPath::eMatchScore eMatchScore
Definition: XalanMatchPatternData.hpp:55
XALAN_CPP_NAMESPACE_BEGIN typedef size_t size_type
Definition: XalanMap.hpp:44
#define XALAN_XSLT_EXPORT
Definition: XSLTDefinitions.hpp:25
Definition: XalanDOMString.hpp:42

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