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(XPATHPROCESSOR_HEADER_GUARD_1357924680) 00019 #define XPATHPROCESSOR_HEADER_GUARD_1357924680 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include <xalanc/XPath/XPathDefinitions.hpp> 00025 00026 00027 00028 // $$$ ToDo: This is necessary while XalanDOMString is still a typedef... 00029 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00030 00031 00032 00033 00034 XALAN_DECLARE_XERCES_CLASS(Locator) 00035 00036 00037 00038 XALAN_CPP_NAMESPACE_BEGIN 00039 00040 00041 00042 XALAN_USING_XERCES(Locator) 00043 00044 00045 00046 class Function; 00047 class PrefixResolver; 00048 class XPath; 00049 class XPathConstructionContext; 00050 00051 00052 00053 class XALAN_XPATH_EXPORT XPathProcessor 00054 { 00055 public: 00056 00057 typedef XERCES_CPP_NAMESPACE_QUALIFIER Locator LocatorType; 00058 00059 explicit 00060 XPathProcessor(); 00061 00062 virtual 00063 ~XPathProcessor(); 00064 00065 /** 00066 * Given a string, make an XPath object, in order that a parse doesn't 00067 * have to be done each time the expression is executed. 00068 * 00069 * @param pathObj XPath object to be initialized 00070 * @param constructionContext The construction context 00071 * @param expression expression that will be evaluated 00072 * @param resolver prefix resolver to use 00073 * @param locator the Locator to use for error report. May be null 00074 * @param allowVariableReferences If true, variable references are allowed. 00075 * @param allowKeyFunction If true, calls to the key() function are allowed. 00076 */ 00077 virtual void 00078 initXPath( 00079 XPath& pathObj, 00080 XPathConstructionContext& constructionContext, 00081 const XalanDOMString& expression, 00082 const PrefixResolver& resolver, 00083 const Locator* locator = 0, 00084 bool allowVariableReferences = true, 00085 bool allowKeyFunction = true) = 0; 00086 00087 /** 00088 * Given a string, create an XSLT Match Pattern object. 00089 * 00090 * @param pathObj XPath object to be initialized 00091 * @param constructionContext The construction context 00092 * @param expression expression that will be evaluated 00093 * @param resolver prefix resolver to use 00094 * @param locator the Locator to use for error report. May be null 00095 * @param allowVariableReferences If true, variable references are allowed. 00096 * @param allowKeyFunction If true, calls to the key() function are allowed. 00097 */ 00098 virtual void 00099 initMatchPattern( 00100 XPath& pathObj, 00101 XPathConstructionContext& constructionContext, 00102 const XalanDOMString& expression, 00103 const PrefixResolver& resolver, 00104 const Locator* locator = 0, 00105 bool allowVariableReferences = true, 00106 bool allowKeyFunction = true) = 0; 00107 00108 /** 00109 * Given a string, and a reference to a function object, install the 00110 * function with the given name. 00111 * 00112 * @param theFunctionName name of function 00113 * @param theFunction function object corresponding to name 00114 */ 00115 static void 00116 installFunction( 00117 const XalanDOMString& theFunctionName, 00118 const Function& theFunction); 00119 }; 00120 00121 00122 00123 XALAN_CPP_NAMESPACE_END 00124 00125 00126 00127 #endif // XPATHPROCESSOR_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 |
|