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 
36 namespace XERCES_CPP_NAMESPACE
37 {
38  class DOM_Document;
39  class DOMDocument;
40 }
41 
42 
43 
44 namespace XALAN_CPP_NAMESPACE {
45 
46 
47 
48 typedef xercesc::DOM_Document DOM_Document_Type;
49 typedef xercesc::DOMDocument DOMDocument_Type;
50 
51 
52 
54 class XercesDOMSupport;
55 
56 
57 
58 /**
59  * This is designed to allow a XalanTranfomer object to wrap a parsed
60  * Xerces document.
61  */
63 {
64 
65 public:
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  */
79  const DOM_Document_Type& theDocument,
80  XercesParserLiaison& theParserLiaison,
81  XercesDOMSupport& theDOMSupport,
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  */
95  const DOMDocument_Type* theDocument,
96  XercesParserLiaison& theParserLiaison,
97  XercesDOMSupport& theDOMSupport,
98  const XalanDOMString& theURI = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
99  MemoryManager& theManager XALAN_DEFAULT_MEMMGR);
100 
101  virtual
103 
104  virtual XalanDocument*
105  getDocument() const;
106 
107  virtual XalanParsedSourceHelper*
108  createHelper(MemoryManager& theManager XALAN_DEFAULT_MEMMGR) const;
109 
110  virtual const XalanDOMString&
111  getURI() const;
112 
113 private:
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
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
XalanDOMString.hpp
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
XALAN_DEFAULT_MEMMGR
#define XALAN_DEFAULT_MEMMGR
Definition: XalanMemoryManagement.hpp:516
xalanc::DOM_Document_Type
xercesc::DOM_Document DOM_Document_Type
Definition: XercesDOMWrapperParsedSource.hpp:48
xalanc::XercesDOMSupport
Definition: XercesDOMSupport.hpp:40
xalanc::XalanParsedSourceHelper
Definition: XalanParsedSource.hpp:45
xalanc::XercesDOMWrapperParsedSource
This is designed to allow a XalanTranfomer object to wrap a parsed Xerces document.
Definition: XercesDOMWrapperParsedSource.hpp:62
XalanParsedSource.hpp
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:45
XALAN_TRANSFORMER_EXPORT
#define XALAN_TRANSFORMER_EXPORT
Definition: XalanTransformerDefinitions.hpp:39
XalanTransformerDefinitions.hpp
xalanc::XercesParserLiaison
Definition: XercesParserLiaison.hpp:74
xalanc::DOMDocument_Type
xercesc::DOMDocument DOMDocument_Type
Definition: XercesDOMWrapperParsedSource.hpp:49