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
35namespace XERCES_CPP_NAMESPACE
36{
37 class ContentHandler;
38 class DTDHandler;
39 class LexicalHandler;
40}
41
42
43
44namespace XALAN_CPP_NAMESPACE {
45
46
47
48typedef xercesc::ContentHandler ContentHandlerType;
49typedef xercesc::DTDHandler DTDHandlerType;
50typedef xercesc::LexicalHandler LexicalHandlerType;
51
52
53
54class DOMSupport;
55class 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{
65public:
66
67 virtual
71
72 // These are inherited from XalanParsedSource...
73 virtual XalanDocument*
74 getDocument() const = 0;
75
78
79 virtual const XalanDOMString&
80 getURI() const = 0;
81
82 // These are new to XalanDocumentBuilder...
83 virtual ContentHandlerType*
85
86 virtual DTDHandlerType*
88
89 virtual LexicalHandlerType*
91
92private:
93};
94
95
96
97}
98
99
100
101#endif // XALANDOCUMENTBUILDER_HEADER_GUARD
#define XALAN_DEFAULT_CONSTRUCTOR_MEMMGR
#define XALAN_TRANSFORMER_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
This is abstract base class designed to allow a XalanTranfomer object to use a document that is build...
virtual XalanParsedSourceHelper * createHelper(MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR) const =0
virtual LexicalHandlerType * getLexicalHandler()=0
virtual const XalanDOMString & getURI() const =0
Get the URI for the parsed source, if any.
virtual DTDHandlerType * getDTDHandler()=0
virtual ContentHandlerType * getContentHandler()=0
virtual XalanDocument * getDocument() const =0
Get a pointer to the XalanDocument instance for the source document.
This is abstract base class designed to allow a XalanTranfomer object to reuse a parsed document.
xercesc::DTDHandler DTDHandlerType
xercesc::LexicalHandler LexicalHandlerType
xercesc::ContentHandler ContentHandlerType