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(XSLTPROCESSORENVSUPPORTDEFAULT_HEADER_GUARD_1357924680) 00019 #define XSLTPROCESSORENVSUPPORTDEFAULT_HEADER_GUARD_1357924680 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/XSLT/XSLTDefinitions.hpp> 00025 00026 00027 00028 // Base class header file... 00029 #include <xalanc/XSLT/XSLTProcessorEnvSupport.hpp> 00030 00031 00032 00033 #include <xalanc/XPath/XPathEnvSupportDefault.hpp> 00034 00035 00036 00037 XALAN_CPP_NAMESPACE_BEGIN 00038 00039 00040 00041 class XSLTProcessor; 00042 00043 00044 00045 class XALAN_XSLT_EXPORT XSLTProcessorEnvSupportDefault : public XSLTProcessorEnvSupport 00046 { 00047 public: 00048 00049 XSLTProcessorEnvSupportDefault( 00050 MemoryManager& theManager, 00051 XSLTProcessor* theProcessor = 0); 00052 00053 virtual 00054 ~XSLTProcessorEnvSupportDefault(); 00055 00056 /** 00057 * Reset the XLST processor instance 00058 * 00059 * @param theProcessor pointer to new processor instance 00060 */ 00061 void 00062 setProcessor(XSLTProcessor* theProcessor) 00063 { 00064 m_processor = theProcessor; 00065 } 00066 00067 00068 /** 00069 * Install an external function in the global space. 00070 * 00071 * @param theNamespace The namespace for the functionl 00072 * @param functionName The name of the function. 00073 * @param function The function to install. 00074 */ 00075 static void 00076 installExternalFunctionGlobal( 00077 const XalanDOMString& theNamespace, 00078 const XalanDOMString& functionName, 00079 const Function& function); 00080 00081 /** 00082 * Uninstall an external function from the global space. 00083 * 00084 * @param theNamespace The namespace for the functionl 00085 * @param functionName The name of the function. 00086 */ 00087 static void 00088 uninstallExternalFunctionGlobal( 00089 const XalanDOMString& theNamespace, 00090 const XalanDOMString& functionName); 00091 00092 // Interfaces to install and uninstall external functions in this instance. 00093 00094 /** 00095 * Install an external function in the local space. 00096 * 00097 * @param theNamespace The namespace for the functionl 00098 * @param functionName The name of the function. 00099 * @param function The function to install. 00100 */ 00101 virtual void 00102 installExternalFunctionLocal( 00103 const XalanDOMString& theNamespace, 00104 const XalanDOMString& functionName, 00105 const Function& function); 00106 00107 /** 00108 * Uninstall an external function from the local space. 00109 * 00110 * @param theNamespace The namespace for the functionl 00111 * @param functionName The name of the function. 00112 */ 00113 virtual void 00114 uninstallExternalFunctionLocal( 00115 const XalanDOMString& theNamespace, 00116 const XalanDOMString& functionName); 00117 00118 00119 // These interfaces are inherited from XSLTProcessorEnvSupport... 00120 00121 virtual void 00122 problem( 00123 eSource source, 00124 eClassification classification, 00125 const XalanDOMString& msg, 00126 const Locator* locator, 00127 const XalanNode* sourceNode); 00128 00129 virtual void 00130 problem( 00131 eSource source, 00132 eClassification classification, 00133 const XalanDOMString& msg, 00134 const XalanNode* sourceNode); 00135 00136 virtual XalanDocument* 00137 parseXML( 00138 MemoryManager& theManager, 00139 const XalanDOMString& urlString, 00140 const XalanDOMString& base, 00141 ErrorHandler* theErrorHandler = 0); 00142 00143 virtual XalanDocument* 00144 getSourceDocument(const XalanDOMString& theURI) const; 00145 00146 virtual void 00147 setSourceDocument( 00148 const XalanDOMString& theURI, 00149 XalanDocument* theDocument); 00150 00151 virtual const XalanDOMString& 00152 findURIFromDoc(const XalanDocument* owner) const; 00153 00154 virtual bool 00155 elementAvailable( 00156 const XalanDOMString& theNamespace, 00157 const XalanDOMString& elementName) const; 00158 00159 virtual bool 00160 functionAvailable( 00161 const XalanDOMString& theNamespace, 00162 const XalanDOMString& functionName) const; 00163 00164 virtual XObjectPtr 00165 extFunction( 00166 XPathExecutionContext& executionContext, 00167 const XalanDOMString& theNamespace, 00168 const XalanDOMString& functionName, 00169 XalanNode* context, 00170 const XObjectArgVectorType& argVec, 00171 const Locator* locator) const; 00172 00173 virtual void 00174 reset(); 00175 00176 00177 // These are not implemented... 00178 XSLTProcessorEnvSupportDefault(const XSLTProcessorEnvSupportDefault&); 00179 00180 XSLTProcessorEnvSupportDefault& 00181 operator=(const XSLTProcessorEnvSupportDefault&); 00182 00183 bool 00184 operator==(const XSLTProcessorEnvSupportDefault&) const; 00185 00186 00187 // Data members... 00188 00189 XPathEnvSupportDefault m_defaultSupport; 00190 00191 XSLTProcessor* m_processor; 00192 }; 00193 00194 00195 00196 XALAN_CPP_NAMESPACE_END 00197 00198 00199 00200 #endif // XSLTPROCESSORENVSUPPORTDEFAULT_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 |
|