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
37namespace XALAN_CPP_NAMESPACE {
38
39
40
41class DOMSupport;
42class XPathEnvSupport;
43class XalanElement;
44
45
46
48{
49public:
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 */
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 */
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*
85
86 virtual const XalanDOMString&
87 getURI() const;
88
89private:
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
#define XALAN_XPATH_EXPORT
#define XALAN_DEFAULT_MEMMGR
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
virtual const XalanDOMString * getNamespaceForPrefix(const XalanDOMString &prefix) const
Retrieve a namespace corresponding to a prefix.
virtual const XalanDOMString & getURI() const
Retrieve the base URI for the resolver.
ElementPrefixResolverProxy(const XalanElement *namespaceContext, MemoryManager &theManager XALAN_DEFAULT_MEMMGR, const XPathEnvSupport *envSupport=0)
Construct an instance of an element prefix resolver proxy.
ElementPrefixResolverProxy(const XalanElement *namespaceContext, const XPathEnvSupport &envSupport, const DOMSupport &domSupport, MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
Construct an instance of an element prefix resolver proxy.
This class defines an interface for classes that resolve namespace prefixes to their URIs.