Xalan-C++ API Reference 1.12.0
XalanDefaultDocumentBuilder.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(XALANDEFAULTDOCUMENTBUILDER_HEADER_GUARD)
19#define XALANDEFAULTDOCUMENTBUILDER_HEADER_GUARD
20
21
22
23// Base include file. Must be first.
25
26
27
29
30
31
35
36
37
38namespace XALAN_CPP_NAMESPACE {
39
40
41
42/**
43 * This is class is designed to allow a XalanTranfomer object
44 * to use a document that is build dynamically by a user.
45 */
47{
48
49public:
50
51 /**
52 * Create a XalanDefaultDocumentBuilder instance,
53 *
54 * @param theURI An optional string to identify the document.
55 */
57
59 create(MemoryManager& theManager, const XalanDOMString& theURI);
60
61 virtual
63
64 virtual XalanDocument*
65 getDocument() const;
66
68 createHelper(MemoryManager& theManager) const;
69
70 virtual const XalanDOMString&
71 getURI() const;
72
73 virtual ContentHandlerType*
75
76 virtual DTDHandlerType*
78
79 virtual LexicalHandlerType*
81
82private:
83
84 // not implemented...
86
88 operator=(const XalanDefaultDocumentBuilder&);
89
90 // Data members...
91 XalanSourceTreeDOMSupport m_domSupport;
92
93 XalanSourceTreeParserLiaison m_parserLiaison;
94
95 XalanSourceTreeContentHandler m_contentHandler;
96
97 const XalanDOMString m_uri;
98};
99
100
101
102}
103
104
105
106#endif // XALANDEFAULTDOCUMENTBUILDER_HEADER_GUARD
#define XALAN_TRANSFORMER_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
This is class is designed to allow a XalanTranfomer object to use a document that is build dynamicall...
virtual ContentHandlerType * getContentHandler()
virtual XalanParsedSourceHelper * createHelper(MemoryManager &theManager) const
Create the appropriate XalanParsedSourceHelper instance to use for transforming with the instance.
XalanDefaultDocumentBuilder(MemoryManager &theManager, const XalanDOMString &theURI)
Create a XalanDefaultDocumentBuilder instance,.
virtual DTDHandlerType * getDTDHandler()
static XalanDefaultDocumentBuilder * create(MemoryManager &theManager, const XalanDOMString &theURI)
virtual LexicalHandlerType * getLexicalHandler()
virtual XalanDocument * getDocument() const
Get a pointer to the XalanDocument instance for the source document.
virtual const XalanDOMString & getURI() const
Get the URI for the parsed source, if any.
This is abstract base class designed to allow a XalanTranfomer object to use a document that is build...
xercesc::DTDHandler DTDHandlerType
xercesc::LexicalHandler LexicalHandlerType
xercesc::ContentHandler ContentHandlerType