Xalan-C++ API Reference  1.12.0
ElementPrefixResolverProxy.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(ELEMENTPREFIXRESOLVERPROXY_HEADER_GUARD_1357924680)
19 #define ELEMENTPREFIXRESOLVERPROXY_HEADER_GUARD_1357924680
20 
21 
22 
23 // Base include file. Must be first.
25 
26 
27 
29 
30 
31 
32 // Base class header file...
34 
35 
36 
37 namespace XALAN_CPP_NAMESPACE {
38 
39 
40 
41 class DOMSupport;
42 class XPathEnvSupport;
43 class XalanElement;
44 
45 
46 
48 {
49 public:
50 
51  /**
52  * Construct an instance of an element prefix resolver proxy.
53  *
54  * @param namespaceContext context object for namespace resolution
55  * @param envSupport XPath environment support class instance
56  * @param domSupport DOMSupport class instance
57  *
58  * @deprecated
59  */
61  const XalanElement* namespaceContext,
62  const XPathEnvSupport& envSupport,
63  const DOMSupport& domSupport,
64  MemoryManager& theManager XALAN_DEFAULT_MEMMGR);
65 
66  /**
67  * Construct an instance of an element prefix resolver proxy.
68  *
69  * @param namespaceContext context object for namespace resolution
70  * @param envSupport XPath environment support class instance
71  *
72  */
74  const XalanElement* namespaceContext,
75  MemoryManager& theManager XALAN_DEFAULT_MEMMGR,
76  const XPathEnvSupport* envSupport = 0);
77 
78  virtual
80 
81  // These methods are inherited from PrefixResolver ...
82 
83  virtual const XalanDOMString*
84  getNamespaceForPrefix(const XalanDOMString& prefix) const;
85 
86  virtual const XalanDOMString&
87  getURI() const;
88 
89 private:
90  //notimplemented
92 
93  const XalanElement* const m_namespaceContext;
94 
95  const XPathEnvSupport* const m_envSupport;
96 
97  mutable XalanDOMString m_uri;
98 };
99 
100 
101 
102 }
103 
104 
105 
106 #endif // ELEMENTPREFIXRESOLVERPROXY_HEADER_GUARD_1357924680
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
PrefixResolver.hpp
XalanDOMString.hpp
XALAN_DEFAULT_MEMMGR
#define XALAN_DEFAULT_MEMMGR
Definition: XalanMemoryManagement.hpp:516
XALAN_XPATH_EXPORT
#define XALAN_XPATH_EXPORT
Definition: XPathDefinitions.hpp:35
xalanc::PrefixResolver
This class defines an interface for classes that resolve namespace prefixes to their URIs.
Definition: PrefixResolver.hpp:39
xalanc::ElementPrefixResolverProxy
Definition: ElementPrefixResolverProxy.hpp:47
xalanc::DOMSupport
Definition: DOMSupport.hpp:41
xalanc::XPathEnvSupport
Definition: XPathEnvSupport.hpp:60
xalanc::XalanElement
Definition: XalanElement.hpp:44
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:45
XPathDefinitions.hpp