Xalan-C++ API Reference  1.12.0
XalanDefaultParsedSource.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(XALANDEFAULTPARSEDSOURCE_HEADER_GUARD)
19 #define XALANDEFAULTPARSEDSOURCE_HEADER_GUARD
20 
21 
22 
23 // Base include file. Must be first.
25 
26 
27 
31 
32 
33 
35 
36 
37 
38 namespace XALAN_CPP_NAMESPACE {
39 
40 
41 
42 class XSLTInputSource;
43 
44 
45 
47 {
48 public:
49 
51  const XalanSourceTreeParserLiaison& theParserLiaison,
52  const XalanSourceTreeDOMSupport& theDOMSupport);
53 
54  virtual
56 
57  virtual void
58  reset();
59 
60  // These interfaces are inherited from DOMSupport...
61 
62  virtual const XalanDOMString&
63  getUnparsedEntityURI(
64  const XalanDOMString& theName,
65  const XalanDocument& theDocument) const;
66 
67  virtual bool
68  isNodeAfter(
69  const XalanNode& node1,
70  const XalanNode& node2) const;
71 
72 private:
73 
74  // Not implemented...
76 
78  operator=(const XalanDefaultParsedSourceDOMSupport&);
79 
80 
81  // Data members...
82  const XalanSourceTreeDOMSupport& m_domSupport;
83 };
84 
85 
86 
88 {
89 public:
90 
92  MemoryManager& theManager XALAN_DEFAULT_MEMMGR);
93 
95  create(const XalanSourceTreeDOMSupport& theSourceDOMSupport,
96  MemoryManager& theManager);
97 
99 
100  virtual DOMSupport&
101  getDOMSupport();
102 
103  virtual XMLParserLiaison&
104  getParserLiaison();
105 
106 private:
107 
108  // Not implemented...
110 
112  operator=(const XalanDefaultParsedSourceHelper&);
113 
114 
115  // Data members...
116  XalanSourceTreeParserLiaison m_parserLiaison;
117 
119 };
120 
121 
122 
123 /**
124  * This is designed to allow a XalanTranfomer object to reuse a parsed
125  * document.
126  */
128 {
129 public:
130 
132  const InputSource& theInputSource,
133  bool fValidate = false,
134  ErrorHandler* theErrorHandler = 0,
135  EntityResolver* theEntityResolver = 0,
136  XMLEntityResolver* theXMLEntityResolver = 0,
137  const XalanDOMChar* theExternalSchemaLocation = 0,
138  const XalanDOMChar* theExternalNoNamespaceSchemaLocation = 0,
139  bool fPoolAllTextNodes = XalanSourceTreeDocument::getPoolAllTextNodes(),
140  MemoryManager& theManager XALAN_DEFAULT_MEMMGR);
141 
143  create(
144  MemoryManager& theManager,
145  const InputSource& theInputSource,
146  bool fValidate = false,
147  ErrorHandler* theErrorHandler = 0,
148  EntityResolver* theEntityResolver = 0,
149  XMLEntityResolver* theXMLEntityResolver = 0,
150  const XalanDOMChar* theExternalSchemaLocation = 0,
151  const XalanDOMChar* theExternalNoNamespaceSchemaLocation = 0,
152  bool fPoolAllTextNodes = XalanSourceTreeDocument::getPoolAllTextNodes());
153 
154  virtual
156 
157  virtual XalanDocument*
158  getDocument() const;
159 
160  virtual XalanParsedSourceHelper*
161  createHelper(MemoryManager& theManager) const;
162 
163  virtual const XalanDOMString&
164  getURI() const;
165 
166 private:
167 
168  // Not implemented...
170 
172  operator=(const XalanDefaultParsedSource&);
173 
174 
175  // Data members...
176  XalanSourceTreeParserLiaison m_parserLiaison;
177 
178  XalanSourceTreeDOMSupport m_domSupport;
179 
180  XalanSourceTreeDocument* m_parsedSource;
181 
182  XalanDOMString m_uri;
183 };
184 
185 
186 
187 }
188 
189 
190 
191 #endif // XALANDEFAULTPARSEDSOURCE_HEADER_GUARD
192 
193 
194 
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::XalanSourceTreeParserLiaison
Definition: XalanSourceTreeParserLiaison.hpp:68
xalanc::XalanNode
Definition: XalanNode.hpp:38
xalanc::XalanSourceTreeDOMSupport
Definition: XalanSourceTreeDOMSupport.hpp:40
XalanSourceTreeDocument.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::XalanParsedSourceHelper
Definition: XalanParsedSource.hpp:45
XalanSourceTreeDOMSupport.hpp
xalanc::XalanDefaultParsedSourceHelper
Definition: XalanDefaultParsedSource.hpp:87
xalanc::XalanDefaultParsedSource
This is designed to allow a XalanTranfomer object to reuse a parsed document.
Definition: XalanDefaultParsedSource.hpp:127
xalanc::DOMSupport
Definition: DOMSupport.hpp:41
XalanSourceTreeParserLiaison.hpp
xalanc::XMLParserLiaison
Definition: XMLParserLiaison.hpp:68
XalanParsedSource.hpp
xalanc::XalanDefaultParsedSourceDOMSupport
Definition: XalanDefaultParsedSource.hpp:46
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:45
xalanc::XalanSourceTreeDocument
Definition: XalanSourceTreeDocument.hpp:78
XALAN_TRANSFORMER_EXPORT
#define XALAN_TRANSFORMER_EXPORT
Definition: XalanTransformerDefinitions.hpp:39
XalanTransformerDefinitions.hpp