00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #if !defined(ELEMENTPREFIXRESOLVERPROXY_HEADER_GUARD_1357924680) 00019 #define ELEMENTPREFIXRESOLVERPROXY_HEADER_GUARD_1357924680 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/XPath/XPathDefinitions.hpp> 00025 00026 00027 00028 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00029 00030 00031 00032 // Base class header file... 00033 #include <xalanc/PlatformSupport/PrefixResolver.hpp> 00034 00035 00036 00037 XALAN_CPP_NAMESPACE_BEGIN 00038 00039 00040 00041 class DOMSupport; 00042 class XPathEnvSupport; 00043 class XalanElement; 00044 00045 00046 00047 class XALAN_XPATH_EXPORT ElementPrefixResolverProxy : public PrefixResolver 00048 { 00049 public: 00050 00051 /** 00052 * Construct an instance of an element prefix resolver proxy. 00053 * 00054 * @param namespaceContext context object for namespace resolution 00055 * @param envSupport XPath environment support class instance 00056 * @param domSupport DOMSupport class instance 00057 * 00058 * @deprecated 00059 */ 00060 ElementPrefixResolverProxy( 00061 const XalanElement* namespaceContext, 00062 const XPathEnvSupport& envSupport, 00063 const DOMSupport& domSupport, 00064 MemoryManager& theManager XALAN_DEFAULT_MEMMGR); 00065 00066 /** 00067 * Construct an instance of an element prefix resolver proxy. 00068 * 00069 * @param namespaceContext context object for namespace resolution 00070 * @param envSupport XPath environment support class instance 00071 * 00072 */ 00073 ElementPrefixResolverProxy( 00074 const XalanElement* namespaceContext, 00075 MemoryManager& theManager XALAN_DEFAULT_MEMMGR, 00076 const XPathEnvSupport* envSupport = 0); 00077 00078 virtual 00079 ~ElementPrefixResolverProxy(); 00080 00081 // These methods are inherited from PrefixResolver ... 00082 00083 virtual const XalanDOMString* 00084 getNamespaceForPrefix(const XalanDOMString& prefix) const; 00085 00086 virtual const XalanDOMString& 00087 getURI() const; 00088 00089 private: 00090 //notimplemented 00091 ElementPrefixResolverProxy(const ElementPrefixResolverProxy&); 00092 00093 const XalanElement* const m_namespaceContext; 00094 00095 const XPathEnvSupport* const m_envSupport; 00096 00097 mutable XalanDOMString m_uri; 00098 }; 00099 00100 00101 00102 XALAN_CPP_NAMESPACE_END 00103 00104 00105 00106 #endif // ELEMENTPREFIXRESOLVERPROXY_HEADER_GUARD_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|