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(XALAN_PROBLEMLISTENER_HEADER_GUARD) 00019 #define XALAN_PROBLEMLISTENER_HEADER_GUARD 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include "xalanc/XSLT/XSLTDefinitions.hpp" 00025 00026 00027 00028 #include "xalanc/PlatformSupport/ProblemListenerBase.hpp" 00029 00030 00031 00032 XALAN_CPP_NAMESPACE_BEGIN 00033 00034 00035 00036 class ElemTemplateElement; 00037 class XalanNode; 00038 class PrintWriter; 00039 00040 00041 00042 /** 00043 * This is the abstract class that the XSL processor uses when it has a 00044 * problem of some kind, that requires a message, an error or a warning. Users 00045 * should ask the XSLTProcessor class to setProblemListener if they wish an 00046 * object instance to be called when a problem event occurs. 00047 */ 00048 class XALAN_XSLT_EXPORT ProblemListener : public ProblemListenerBase 00049 { 00050 public: 00051 00052 // A typedef for compatibility. 00053 typedef eSource eProblemSource; 00054 00055 ProblemListener(); 00056 00057 virtual 00058 ~ProblemListener(); 00059 00060 // These interfaces are inherited from ProblemListenerBase... 00061 virtual void 00062 setPrintWriter(PrintWriter* pw) = 0; 00063 00064 virtual void 00065 problem( 00066 eSource source, 00067 eClassification classification, 00068 const XalanDOMString& msg, 00069 const Locator* locator, 00070 const XalanNode* sourceNode) = 0; 00071 00072 virtual void 00073 problem( 00074 eSource source, 00075 eClassification classification, 00076 const XalanDOMString& msg, 00077 const XalanNode* sourceNode) = 0; 00078 00079 00080 // This interface is new to ProblemListenerBase... 00081 /** 00082 * Function that is called when a problem event occurs. This function 00083 * is deprecated. Use the overload with the Locator parameter instead. 00084 * @deprecated 00085 * 00086 * @param source either eXMLPARSER, eXSLPROCESSOR, or eXPATH 00087 * @param classification either eMESSAGE, eERROR or eWARNING 00088 * @param sourceNode source tree node where the problem occurred 00089 * (may be 0) 00090 * @param styleNode style tree node where the problem occurred 00091 * (may be 0) 00092 * @param msg string message explaining the problem. 00093 * @param uri the URI of the document where the problem occurred. May be 0. 00094 * @param lineNo line number where the problem occurred. 00095 * @param charOffset character offset where the problem. 00096 */ 00097 virtual void 00098 problem( 00099 eSource source, 00100 eClassification classification, 00101 const XalanNode* sourceNode, 00102 const ElemTemplateElement* styleNode, 00103 const XalanDOMString& msg, 00104 const XalanDOMChar* uri, 00105 XalanFileLoc lineNo, 00106 XalanFileLoc charOffset) = 0; 00107 }; 00108 00109 00110 00111 XALAN_CPP_NAMESPACE_END 00112 00113 00114 00115 #endif // XALAN_PROBLEMLISTENER_HEADER_GUARD
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|