Xalan-C++ API Reference 1.12.0
XercesDOMWrapperParsedSource.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(XERCESDOMWRAPPERPARSEDSOURCE_HEADER_GUARD)
19#define XERCESDOMWRAPPERPARSEDSOURCE_HEADER_GUARD
20
21
22
23// Base include file. Must be first.
25
26
27
29
30
31
33
34
35
36namespace XERCES_CPP_NAMESPACE
37{
38 class DOM_Document;
39 class DOMDocument;
40}
41
42
43
44namespace XALAN_CPP_NAMESPACE {
45
46
47
48typedef xercesc::DOM_Document DOM_Document_Type;
49typedef xercesc::DOMDocument DOMDocument_Type;
50
51
52
55
56
57
58/**
59 * This is designed to allow a XalanTranfomer object to wrap a parsed
60 * Xerces document.
61 */
63{
64
65public:
66
67#if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
68 /**
69 * Constructor
70 *
71 * @param theDocument The Xerces document to wrap
72 * @param theParserLiaison The XercesParserLiaison instance that will own the document.
73 * @param theDOMSupport The XercesDOMSupport instance
74 * @param theURI The URI of the document, if any.
75 *
76 * @deprecated This constructor is deprecated.
77 */
82 const XalanDOMString& theURI = XalanDOMString(XalanMemMgrs::getDummyMemMgr())
83 MemoryManager& theManager XALAN_DEFAULT_MEMMGR);
84#endif
85
86 /**
87 * Constructor
88 *
89 * @param theDocument The Xerces document to wrap
90 * @param theParserLiaison The XercesParserLiaison instance that will own the document.
91 * @param theDOMSupport The XercesDOMSupport instance
92 * @param theURI The URI of the document, if any.
93 */
98 const XalanDOMString& theURI = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
99 MemoryManager& theManager XALAN_DEFAULT_MEMMGR);
100
101 virtual
103
104 virtual XalanDocument*
105 getDocument() const;
106
109
110 virtual const XalanDOMString&
111 getURI() const;
112
113private:
114 //Not implemented
117
118 XercesParserLiaison& m_parserLiaison;
119
120 XercesDOMSupport& m_domSupport;
121
122 XalanDocument* const m_parsedSource;
123
124 const XalanDOMString m_uri;
125};
126
127
128
129}
130
131
132
133#endif // XERCESDOMWRAPPERPARSEDSOURCE_HEADER_GUARD
#define XALAN_DEFAULT_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 reuse a parsed document.
This is designed to allow a XalanTranfomer object to wrap a parsed Xerces document.
virtual XalanParsedSourceHelper * createHelper(MemoryManager &theManager XALAN_DEFAULT_MEMMGR) const
virtual const XalanDOMString & getURI() const
Get the URI for the parsed source, if any.
virtual XalanDocument * getDocument() const
Get a pointer to the XalanDocument instance for the source document.
XercesDOMWrapperParsedSource(const DOMDocument_Type *theDocument, XercesParserLiaison &theParserLiaison, XercesDOMSupport &theDOMSupport, const XalanDOMString &theURI=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
Constructor.
xercesc::DOMDocument DOMDocument_Type
xercesc::DOM_Document DOM_Document_Type