Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanSourceTreeParserLiaison.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(XALANSOURCETREEPARSERLIAISON_HEADER_GUARD_1357924680)
17 #define XALANSOURCETREEPARSERLIAISON_HEADER_GUARD_1357924680
18 
19 
20 // Base include file. Must be first.
22 
23 
24 
26 
27 
28 
31 
32 
33 
34 XALAN_DECLARE_XERCES_CLASS(ContentHandler)
35 XALAN_DECLARE_XERCES_CLASS(DTDHandler)
36 XALAN_DECLARE_XERCES_CLASS(LexicalHandler)
37 XALAN_DECLARE_XERCES_CLASS(SAX2XMLReader)
38 
39 
40 
41 XALAN_CPP_NAMESPACE_BEGIN
42 
43 
44 
47 
48 
49 
50 typedef XERCES_CPP_NAMESPACE_QUALIFIER ContentHandler ContentHandlerType;
51 typedef XERCES_CPP_NAMESPACE_QUALIFIER DTDHandler DTDHandlerType;
52 typedef XERCES_CPP_NAMESPACE_QUALIFIER LexicalHandler LexicalHandlerType;
53 typedef XERCES_CPP_NAMESPACE_QUALIFIER SAX2XMLReader SAX2XMLReaderType;
54 
55 
56 
58 {
59 
60 public:
61 
70  XalanSourceTreeDOMSupport& theSupport,
72 
76  XalanSourceTreeParserLiaison(MemoryManagerType& theManager XALAN_DEFAULT_MEMMGR);
77 
80  {
81  return m_documentMap.getMemoryManager();
82  }
83 
84  virtual
86 
93  bool
95  {
96  return m_poolAllText;
97  }
98 
105  void
106  setPoolAllText(bool fValue)
107  {
108  m_poolAllText = fValue;
109  }
110 
111  // These interfaces are inherited from XMLParserLiaison...
112 
113  virtual void
114  reset();
115 
116  virtual ExecutionContext*
117  getExecutionContext() const;
118 
119  virtual void
120  setExecutionContext(ExecutionContext& theContext);
121 
122  virtual XalanDocument*
123  parseXMLStream(
124  const InputSourceType& reader,
126 
127  virtual void
128  parseXMLStream(
129  const InputSourceType& inputSource,
130  DocumentHandlerType& handler,
132 
133  virtual void
134  destroyDocument(XalanDocument* theDocument);
135 
136  virtual int
137  getIndent() const;
138 
139  virtual void
140  setIndent(int i);
141 
142  virtual bool
143  getUseValidation() const;
144 
145  virtual void
146  setUseValidation(bool b);
147 
148  virtual const XalanDOMString&
149  getParserDescription(XalanDOMString& theResult) const;
150 
151  virtual EntityResolverType*
152  getEntityResolver() const;
153 
154  virtual void
155  setEntityResolver(EntityResolverType* resolver);
156 
157 
158  // These interfaces are new to XalanSourceTreeParserLiaison...
159 
169  virtual void
170  parseXMLStream(
171  const InputSourceType& theInputSource,
172  ContentHandlerType& theContentHandler,
173  const XalanDOMString& theIdentifier,
174  DTDHandlerType* theDTDHandler = 0,
175  LexicalHandlerType* theLexicalHandler = 0
176  );
177 
178  virtual DOMDocument_Type*
179  createDOMFactory();
180 
181  virtual void
182  destroyDocument(DOMDocument_Type* theDocument);
183 
194  virtual bool
195  getIncludeIgnorableWhitespace() const;
196 
215  virtual void
216  setIncludeIgnorableWhitespace(bool include);
217 
223  virtual ErrorHandlerType*
224  getErrorHandler() const;
225 
236  virtual void
237  setErrorHandler(ErrorHandlerType* handler);
238 
248  virtual bool
249  getDoNamespaces() const;
250 
268  virtual void
269  setDoNamespaces(bool newState);
270 
280  virtual bool
281  getExitOnFirstFatalError() const;
282 
298  virtual void
299  setExitOnFirstFatalError(bool newState);
300 
307  virtual const XalanDOMChar*
308  getExternalSchemaLocation() const;
309 
316  virtual void
317  setExternalSchemaLocation(const XalanDOMChar* location);
318 
325  virtual const XalanDOMChar*
326  getExternalNoNamespaceSchemaLocation() const;
327 
334  virtual void
335  setExternalNoNamespaceSchemaLocation(const XalanDOMChar* location);
336 
346  XalanSourceTreeDocument*
347  mapDocument(const XalanDocument* theDocument) const;
348 
354  XalanSourceTreeDocument*
355  createXalanSourceTreeDocument();
356 
357  typedef XalanMap<const XalanDocument*,
358  XalanSourceTreeDocument*> DocumentMapType;
359 
360 
361 protected:
362 
363  virtual SAX2XMLReaderType*
364  createReader();
365 
366 private:
367 
368  void
369  ensureReader();
370 
371 
372  // Not implemented...
374 
376  operator=(const XalanSourceTreeParserLiaison&);
377 
378 
379  // Data members...
380  XercesParserLiaison m_xercesParserLiaison;
381 
382  DocumentMapType m_documentMap;
383 
384  bool m_poolAllText;
385 
386  SAX2XMLReaderType* m_xmlReader;
387 
388  static const XalanDOMChar s_validationString[];
389 
390  static const XalanDOMChar s_dynamicValidationString[];
391 
392  static const XalanDOMChar s_namespacesString[];
393 
394  static const XalanDOMChar s_namespacePrefixesString[];
395 
396  static const XalanDOMChar s_schemaString[];
397 
398  static const XalanDOMChar s_externalSchemaLocationString[];
399 
400  static const XalanDOMChar s_externalNoNamespaceSchemaLocationString[];
401 };
402 
403 
404 
405 XALAN_CPP_NAMESPACE_END
406 
407 
408 
409 #endif // XALANSOURCETREEPARSERLIAISON_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