Xalan-C++ API Reference 1.12.0
XalanSpaceNodeTester.hpp
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18#if !defined(XALAN_SPACENODETESTER_HEADER_GUARD_1357924680)
19#define XALAN_SPACENODETESTER_HEADER_GUARD_1357924680
20
21
22
23// Base include file. Must be first.
24#include "XSLTDefinitions.hpp"
25
26
27
29
30
31
32namespace XALAN_CPP_NAMESPACE {
33
34
35
36class PrefixResolver;
37class StylesheetConstructionContext;
38
39
40
42{
43public:
44
46
47 enum eType
48 {
50 ePreserve
51 };
52
54
56
62 const Locator* theLocator);
63
65
68 {
69 return m_matchScore;
70 }
71
72 eType
73 getType() const
74 {
75 return m_type;
76 }
77
80 {
81 m_matchScore = theRHS.m_matchScore;
82 m_type = theRHS.m_type;
83
84 ParentType::operator=(theRHS);
85
86 return *this;
87 }
88
89private:
90
91 XPath::eMatchScore m_matchScore;
92
93 eType m_type;
94};
95
96
97
98}
99
100
101
102#endif // !defined(XALAN_SPACENODETESTER_HEADER_GUARD_1357924680)
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
This class defines an interface for classes that resolve namespace prefixes to their URIs.
XalanSpaceNodeTester(const XalanSpaceNodeTester &theSource)
XalanSpaceNodeTester & operator=(const XalanSpaceNodeTester &theRHS)
XalanSpaceNodeTester(eType theType, StylesheetConstructionContext &theContext, const XalanDOMString &theNameTest, const PrefixResolver &thePrefixResolver, const Locator *theLocator)
XPath::eMatchScore getMatchScore() const