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_PROBLEMLISTENERDEFAULT_HEADER_GUARD) 00019 #define XALAN_PROBLEMLISTENERDEFAULT_HEADER_GUARD 00020 00021 00022 00023 // Base include file. Must be first. 00024 #include "XSLTDefinitions.hpp" 00025 00026 00027 00028 // Xalan header files. 00029 #include <xalanc/XSLT/ProblemListener.hpp> 00030 00031 00032 00033 XALAN_DECLARE_XERCES_CLASS(MemoryManager) 00034 00035 00036 00037 XALAN_CPP_NAMESPACE_BEGIN 00038 00039 00040 00041 XALAN_USING_XERCES(MemoryManager) 00042 00043 00044 00045 /** 00046 * The implementation of the default error handling for Xalan. 00047 */ 00048 class XALAN_XSLT_EXPORT ProblemListenerDefault : public ProblemListener 00049 { 00050 public: 00051 00052 ProblemListenerDefault( 00053 MemoryManager& theManager, 00054 PrintWriter* pw = 0); 00055 00056 virtual 00057 ~ProblemListenerDefault(); 00058 00059 00060 // These methods are inherited from ProblemListener ... 00061 00062 virtual void 00063 setPrintWriter(PrintWriter* pw); 00064 00065 virtual void 00066 problem( 00067 eSource source, 00068 eClassification classification, 00069 const XalanDOMString& msg, 00070 const Locator* locator, 00071 const XalanNode* sourceNode); 00072 00073 virtual void 00074 problem( 00075 eSource source, 00076 eClassification classification, 00077 const XalanDOMString& msg, 00078 const XalanNode* sourceNode); 00079 00080 virtual void 00081 problem( 00082 eSource source, 00083 eClassification classification, 00084 const XalanNode* sourceNode, 00085 const ElemTemplateElement* styleNode, 00086 const XalanDOMString& msg, 00087 const XalanDOMChar* uri, 00088 XalanFileLoc lineNo, 00089 XalanFileLoc charOffset); 00090 00091 // These methods are new... 00092 00093 PrintWriter* 00094 getPrintWriter() const 00095 { 00096 return m_pw; 00097 } 00098 00099 static void 00100 defaultFormat( 00101 PrintWriter& pw, 00102 eSource source, 00103 eClassification classification, 00104 const XalanDOMString& msg, 00105 const Locator* locator, 00106 const XalanNode* sourceNode) 00107 { 00108 ProblemListenerBase::defaultFormat( 00109 pw, 00110 source, 00111 classification, 00112 msg, 00113 locator, 00114 sourceNode); 00115 } 00116 00117 static void 00118 defaultFormat( 00119 PrintWriter& pw, 00120 eSource source, 00121 eClassification classification, 00122 const XalanDOMString& msg, 00123 const XalanNode* sourceNode) 00124 { 00125 ProblemListenerBase::defaultFormat( 00126 pw, 00127 source, 00128 classification, 00129 msg, 00130 sourceNode); 00131 } 00132 00133 static void 00134 defaultFormat( 00135 PrintWriter& pw, 00136 eSource source, 00137 eClassification classification, 00138 const XalanNode* sourceNode, 00139 const ElemTemplateElement* styleNode, 00140 const XalanDOMString& msg, 00141 const XalanDOMChar* uri, 00142 XalanFileLoc lineNo, 00143 XalanFileLoc charOffset); 00144 00145 private: 00146 00147 MemoryManager& m_memoryManager; 00148 00149 PrintWriter* m_pw; 00150 }; 00151 00152 00153 00154 XALAN_CPP_NAMESPACE_END 00155 00156 00157 00158 #endif // XALAN_PROBLEMLISTENERDEFAULT_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 |
|