Xalan-C++ API Reference  1.12.0
XalanDocumentBuilder.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(XALANDOCUMENTBUILDER_HEADER_GUARD)
19 #define XALANDOCUMENTBUILDER_HEADER_GUARD
20 
21 
22 
23 // Base include file. Must be first.
25 
26 
28 
29 
30 // Base class include file.
32 
33 
34 
35 namespace XERCES_CPP_NAMESPACE
36 {
37  class ContentHandler;
38  class DTDHandler;
39  class LexicalHandler;
40 }
41 
42 
43 
44 namespace XALAN_CPP_NAMESPACE {
45 
46 
47 
48 typedef xercesc::ContentHandler ContentHandlerType;
49 typedef xercesc::DTDHandler DTDHandlerType;
50 typedef xercesc::LexicalHandler LexicalHandlerType;
51 
52 
53 
54 class DOMSupport;
55 class XalanDocument;
56 
57 
58 
59 /**
60  * This is abstract base class designed to allow a XalanTranfomer
61  * object to use a document that is build dynamically by a user.
62  */
64 {
65 public:
66 
67  virtual
69  {
70  }
71 
72  // These are inherited from XalanParsedSource...
73  virtual XalanDocument*
74  getDocument() const = 0;
75 
77  createHelper(MemoryManager& theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR) const = 0;
78 
79  virtual const XalanDOMString&
80  getURI() const = 0;
81 
82  // These are new to XalanDocumentBuilder...
83  virtual ContentHandlerType*
84  getContentHandler() = 0;
85 
86  virtual DTDHandlerType*
87  getDTDHandler() = 0;
88 
89  virtual LexicalHandlerType*
90  getLexicalHandler() = 0;
91 
92 private:
93 };
94 
95 
96 
97 }
98 
99 
100 
101 #endif // XALANDOCUMENTBUILDER_HEADER_GUARD
xalanc::ContentHandlerType
xercesc::ContentHandler ContentHandlerType
Definition: XalanSourceTreeContentHandler.hpp:65
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::XalanDocumentBuilder::~XalanDocumentBuilder
virtual ~XalanDocumentBuilder()
Definition: XalanDocumentBuilder.hpp:68
xalanc::XalanParsedSource
This is abstract base class designed to allow a XalanTranfomer object to reuse a parsed document.
Definition: XalanParsedSource.hpp:77
xalanc::XalanDocument
Definition: XalanDocument.hpp:36
xalanc::LexicalHandlerType
xercesc::LexicalHandler LexicalHandlerType
Definition: XalanSourceTreeContentHandler.hpp:67
xalanc::XalanParsedSourceHelper
Definition: XalanParsedSource.hpp:45
XalanMemoryManagement.hpp
xalanc::XalanDocumentBuilder
This is abstract base class designed to allow a XalanTranfomer object to use a document that is build...
Definition: XalanDocumentBuilder.hpp:63
XalanParsedSource.hpp
xalanc::DTDHandlerType
xercesc::DTDHandler DTDHandlerType
Definition: XalanSourceTreeContentHandler.hpp:66
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:45
XALAN_TRANSFORMER_EXPORT
#define XALAN_TRANSFORMER_EXPORT
Definition: XalanTransformerDefinitions.hpp:39
XalanTransformerDefinitions.hpp
XALAN_DEFAULT_CONSTRUCTOR_MEMMGR
#define XALAN_DEFAULT_CONSTRUCTOR_MEMMGR
Definition: XalanMemoryManagement.hpp:515