Xalan-C++ API Reference  1.12.0
XercesDOMParsedSource.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(XERCESDOMPARSEDSOURCE_HEADER_GUARD)
19 #define XERCESDOMPARSEDSOURCE_HEADER_GUARD
20 
21 
22 
23 // Base include file. Must be first.
25 
26 
27 
30 
31 
32 
34 
35 
36 
37 namespace XALAN_CPP_NAMESPACE {
38 
39 
40 
42 {
43 public:
44 
46 
48 
50  create(MemoryManager& theManager);
51 
52  virtual DOMSupport&
53  getDOMSupport();
54 
55  virtual XMLParserLiaison&
56  getParserLiaison();
57 
58 private:
59 
60  // There is an order dependency, because
61  // XercesDOMSupport requires a XercesParserLiaison
62  // instance.
63  XercesParserLiaison m_parserLiaison;
64 
65  XercesDOMSupport m_domSupport;
66 };
67 
68 
69 
70 /**
71  * This is designed to allow a XalanTranfomer object to reuse a parsed
72  * document.
73  */
75 {
76 public:
77 
79  const InputSource& theInputSource,
80  bool fValidate = false,
81  ErrorHandler* theErrorHandler = 0,
82  EntityResolver* theEntityResolver = 0,
83  XMLEntityResolver* theXMLEntityResolver = 0,
84  const XalanDOMChar* theExternalSchemaLocation = 0,
85  const XalanDOMChar* theExternalNoNamespaceSchemaLocation = 0,
86  MemoryManager& theManager XALAN_DEFAULT_MEMMGR);
87 
88  static XercesDOMParsedSource*
89  create(
90  MemoryManager& theManager,
91  const InputSource& theInputSource,
92  bool fValidate = false,
93  ErrorHandler* theErrorHandler = 0,
94  EntityResolver* theEntityResolver = 0,
95  XMLEntityResolver* theXMLEntityResolver = 0,
96  const XalanDOMChar* theExternalSchemaLocation = 0,
97  const XalanDOMChar* theExternalNoNamespaceSchemaLocation = 0);
98 
99  virtual
101 
102  virtual XalanDocument*
103  getDocument() const;
104 
105  virtual XalanParsedSourceHelper*
106  createHelper(MemoryManager& theManager) const;
107 
108  virtual const XalanDOMString&
109  getURI() const;
110 
111 private:
112 
113  XercesParserLiaison m_parserLiaison;
114 
115  XalanDocument* m_parsedSource;
116 
117  XalanDOMString m_uri;
118 };
119 
120 
121 
122 }
123 
124 
125 
126 #endif // XERCESDOMPARSEDSOURCE_HEADER_GUARD
xalanc::XercesDOMParsedSourceHelper
Definition: XercesDOMParsedSource.hpp:41
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
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
XercesDOMSupport.hpp
xalanc::XercesDOMSupport
Definition: XercesDOMSupport.hpp:40
xalanc::XalanParsedSourceHelper
Definition: XalanParsedSource.hpp:45
xalanc::DOMSupport
Definition: DOMSupport.hpp:41
XercesParserLiaison.hpp
xalanc::XMLParserLiaison
Definition: XMLParserLiaison.hpp:68
XalanParsedSource.hpp
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:45
XALAN_TRANSFORMER_EXPORT
#define XALAN_TRANSFORMER_EXPORT
Definition: XalanTransformerDefinitions.hpp:39
xalanc::XercesDOMParsedSource
This is designed to allow a XalanTranfomer object to reuse a parsed document.
Definition: XercesDOMParsedSource.hpp:74
XalanTransformerDefinitions.hpp
xalanc::XercesParserLiaison
Definition: XercesParserLiaison.hpp:74
XALAN_DEFAULT_CONSTRUCTOR_MEMMGR
#define XALAN_DEFAULT_CONSTRUCTOR_MEMMGR
Definition: XalanMemoryManagement.hpp:515