Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


ProblemListenerDefault.hpp
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #if !defined(XALAN_PROBLEMLISTENERDEFAULT_HEADER_GUARD)
19 #define XALAN_PROBLEMLISTENERDEFAULT_HEADER_GUARD
20 
21 
22 
23 // Base include file. Must be first.
24 #include "XSLTDefinitions.hpp"
25 
26 
27 
28 // Xalan header files.
30 
31 
32 
33 XALAN_DECLARE_XERCES_CLASS(MemoryManager)
34 
35 
36 
37 XALAN_CPP_NAMESPACE_BEGIN
38 
39 
40 
41 XALAN_USING_XERCES(MemoryManager)
42 
43 
44 
45 /**
46  * The implementation of the default error handling for Xalan.
47  */
49 {
50 public:
51 
53  MemoryManager& theManager,
54  PrintWriter* pw = 0);
55 
56  virtual
58 
59 
60  // These methods are inherited from ProblemListener ...
61 
62  virtual void
63  setPrintWriter(PrintWriter* pw);
64 
65  virtual void
66  problem(
67  eSource source,
68  eClassification classification,
69  const XalanDOMString& msg,
70  const Locator* locator,
71  const XalanNode* sourceNode);
72 
73  virtual void
74  problem(
75  eSource source,
76  eClassification classification,
77  const XalanDOMString& msg,
78  const XalanNode* sourceNode);
79 
80  virtual void
81  problem(
82  eSource source,
83  eClassification classification,
84  const XalanNode* sourceNode,
85  const ElemTemplateElement* styleNode,
86  const XalanDOMString& msg,
87  const XalanDOMChar* uri,
88  XalanFileLoc lineNo,
89  XalanFileLoc charOffset);
90 
91  // These methods are new...
92 
95  {
96  return m_pw;
97  }
98 
99  static void
101  PrintWriter& pw,
102  eSource source,
103  eClassification classification,
104  const XalanDOMString& msg,
105  const Locator* locator,
106  const XalanNode* sourceNode)
107  {
109  pw,
110  source,
111  classification,
112  msg,
113  locator,
114  sourceNode);
115  }
116 
117  static void
119  PrintWriter& pw,
120  eSource source,
121  eClassification classification,
122  const XalanDOMString& msg,
123  const XalanNode* sourceNode)
124  {
126  pw,
127  source,
128  classification,
129  msg,
130  sourceNode);
131  }
132 
133  static void
134  defaultFormat(
135  PrintWriter& pw,
136  eSource source,
137  eClassification classification,
138  const XalanNode* sourceNode,
139  const ElemTemplateElement* styleNode,
140  const XalanDOMString& msg,
141  const XalanDOMChar* uri,
142  XalanFileLoc lineNo,
143  XalanFileLoc charOffset);
144 
145 private:
146 
147  MemoryManager& m_memoryManager;
148 
149  PrintWriter* m_pw;
150 };
151 
152 
153 
154 XALAN_CPP_NAMESPACE_END
155 
156 
157 
158 #endif // XALAN_PROBLEMLISTENERDEFAULT_HEADER_GUARD
static void defaultFormat(PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode)
This is the abstract class that the XSL processor uses when it has a problem of some kind...
PrintWriter * getPrintWriter() const
static void defaultFormat(PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode)
#define XALAN_XSLT_EXPORT
The implementation of the default error handling for Xalan.
static void defaultFormat(PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode)
Function to format a problem call to a PrintWriter instance.
XALAN_CPP_NAMESPACE_BEGIN XALAN_USING_XERCES(Locator)

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo