Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

FormatterToDOM.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(FORMATTERTODOM_HEADER_GUARD_1357924680)
17 #define FORMATTERTODOM_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
27 
28 
29 
30 // Base class header file.
32 
33 
34 
36 
37 
38 
39 XALAN_CPP_NAMESPACE_BEGIN
40 
41 
42 
43 class XalanDocument;
45 class XalanElement;
46 class XalanNode;
47 
48 
49 
57 {
58 public:
59 
61 
71  XalanDocument* doc,
72  XalanDocumentFragment* docFrag,
73  XalanElement* currentElement,
75 
84  XalanDocument* doc,
85  XalanElement* elem,
87 
88  virtual
89  ~FormatterToDOM();
90 
91 
92  // These methods are inherited from DocumentHandler ...
93 
94  virtual void
96  const XMLCh* const chars,
97  const unsigned int length);
98 
99  virtual void
100  comment(const XMLCh* const data);
101 
102  virtual void
103  cdata(
104  const XMLCh* const ch,
105  const unsigned int length);
106 
107  virtual void
108  entityReference(const XMLCh* const name);
109 
110  virtual void
111  setDocumentLocator(const LocatorType* const locator);
112 
113  virtual void
114  startDocument();
115 
116  virtual void
117  endDocument();
118 
119  virtual void
120  startElement(
121  const XMLCh* const name,
122  AttributeListType& attrs);
123 
124  virtual void
125  endElement(const XMLCh* const name);
126 
127  virtual void
128  characters(
129  const XMLCh* const chars,
130  const unsigned int length);
131 
132  virtual void
134  const XMLCh* const chars,
135  const unsigned int length);
136 
137  virtual void
139  const XMLCh* const target,
140  const XMLCh* const data);
141 
142  virtual void
143  resetDocument();
144 
146  getDocument() const
147  {
148  return m_doc;
149  }
150 
151  void
152  setDocument(XalanDocument* theDocument)
153  {
154  m_doc = theDocument;
155  }
156 
158  getDocumentFragment() const
159  {
160  return m_docFrag;
161  }
162 
163  void
164  setDocumentFragment(XalanDocumentFragment* theDocumentFragment)
165  {
166  m_docFrag = theDocumentFragment;
167  }
168 
169  XalanElement*
170  getCurrentElement() const
171  {
172  return m_currentElem;
173  }
174 
175  void
176  setCurrentElement(XalanElement* theElement)
177  {
178  m_currentElem = theElement;
179  }
180 
181 private:
182 
186  void
187  append(XalanNode* newNode);
188 
196  XalanElement*
197  createElement(
198  const XalanDOMChar* theElementName,
199  AttributeListType& attrs);
200 
201  void
202  addAttributes(
203  XalanElement* theElement,
204  AttributeListType& attrs);
205 
206 
207  // Data members...
208  XalanDocument* m_doc;
209 
210  XalanDocumentFragment* m_docFrag;
211 
212  XalanElement* m_currentElem;
213 
214  ElementStackType m_elemStack;
215 
216  XalanDOMString m_buffer1;
217 
218  XalanDOMString m_buffer2;
219 
220  static const XalanDOMString s_emptyString;
221 };
222 
223 
224 
225 XALAN_CPP_NAMESPACE_END
226 
227 
228 
229 #endif // FORMATTERTODOM_HEADER_GUARD_1357924680

Interpreting class diagrams

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

dot

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

Apache Logo