Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


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 XALAN_DECLARE_XERCES_CLASS(DOM_Document)
37 XALAN_DECLARE_XERCES_CLASS(DOMDocument)
38 
39 
40 
41 XALAN_CPP_NAMESPACE_BEGIN
42 
43 
44 
45 typedef XERCES_CPP_NAMESPACE_QUALIFIER DOM_Document DOM_Document_Type;
46 typedef XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument DOMDocument_Type;
47 
48 
49 
51 class XercesDOMSupport;
52 
53 
54 
55 /**
56  * This is designed to allow a XalanTranfomer object to wrap a parsed
57  * Xerces document.
58  */
60 {
61 
62 public:
63 
64 #if defined(XALAN_BUILD_DEPRECATED_DOM_BRIDGE)
65  /**
66  * Constructor
67  *
68  * @param theDocument The Xerces document to wrap
69  * @param theParserLiaison The XercesParserLiaison instance that will own the document.
70  * @param theDOMSupport The XercesDOMSupport instance
71  * @param theURI The URI of the document, if any.
72  *
73  * @deprecated This constructor is deprecated.
74  */
76  const DOM_Document_Type& theDocument,
77  XercesParserLiaison& theParserLiaison,
78  XercesDOMSupport& theDOMSupport,
80  MemoryManager& theManager XALAN_DEFAULT_MEMMGR);
81 #endif
82 
83  /**
84  * Constructor
85  *
86  * @param theDocument The Xerces document to wrap
87  * @param theParserLiaison The XercesParserLiaison instance that will own the document.
88  * @param theDOMSupport The XercesDOMSupport instance
89  * @param theURI The URI of the document, if any.
90  */
92  const DOMDocument_Type* theDocument,
93  XercesParserLiaison& theParserLiaison,
94  XercesDOMSupport& theDOMSupport,
96  MemoryManager& theManager XALAN_DEFAULT_MEMMGR);
97 
98  virtual
100 
101  virtual XalanDocument*
102  getDocument() const;
103 
104  virtual XalanParsedSourceHelper*
105  createHelper(MemoryManager& theManager XALAN_DEFAULT_MEMMGR) const;
106 
107  virtual const XalanDOMString&
108  getURI() const;
109 
110 private:
111  //Not implemented
114 
115  XercesParserLiaison& m_parserLiaison;
116 
117  XercesDOMSupport& m_domSupport;
118 
119  XalanDocument* const m_parsedSource;
120 
121  const XalanDOMString m_uri;
122 };
123 
124 
125 
126 XALAN_CPP_NAMESPACE_END
127 
128 
129 
130 #endif // XERCESDOMWRAPPERPARSEDSOURCE_HEADER_GUARD
virtual XalanDocument * getDocument() const =0
Get a pointer to the XalanDocument instance for the source document.
This is designed to allow a XalanTranfomer object to wrap a parsed Xerces document.
virtual const XalanDOMString & getURI() const =0
Get the URI for the parsed source, if any.
#define XALAN_DEFAULT_MEMMGR
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument DOMDocument_Type
static MemoryManager & getDummyMemMgr()
XERCES_CPP_NAMESPACE_QUALIFIER DOM_Document DOM_Document_Type
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER DOM_Document DOM_Document_Type
virtual XalanParsedSourceHelper * createHelper(MemoryManager &theManager) const =0
Create the appropriate XalanParsedSourceHelper instance to use for transforming with the instance...
This is abstract base class designed to allow a XalanTranfomer object to reuse a parsed document...
#define XALAN_TRANSFORMER_EXPORT

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo