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
38namespace XALAN_CPP_NAMESPACE {
39
40
41
42class XSLTInputSource;
43
44
45
47{
48public:
49
53
54 virtual
56
57 virtual void
59
60 // These interfaces are inherited from DOMSupport...
61
62 virtual const XalanDOMString&
65 const XalanDocument& theDocument) const;
66
67 virtual bool
69 const XalanNode& node1,
70 const XalanNode& node2) const;
71
72private:
73
74 // Not implemented...
76
78 operator=(const XalanDefaultParsedSourceDOMSupport&);
79
80
81 // Data members...
82 const XalanSourceTreeDOMSupport& m_domSupport;
83};
84
85
86
120
121
122
123/**
124 * This is designed to allow a XalanTranfomer object to reuse a parsed
125 * document.
126 */
128{
129public:
130
132 const InputSource& theInputSource,
133 bool fValidate = false,
134 ErrorHandler* theErrorHandler = 0,
135 EntityResolver* theEntityResolver = 0,
136 XMLEntityResolver* theXMLEntityResolver = 0,
139 bool fPoolAllTextNodes = XalanSourceTreeDocument::getPoolAllTextNodes(),
140 MemoryManager& theManager XALAN_DEFAULT_MEMMGR);
141
144 MemoryManager& theManager,
145 const InputSource& theInputSource,
146 bool fValidate = false,
147 ErrorHandler* theErrorHandler = 0,
148 EntityResolver* theEntityResolver = 0,
149 XMLEntityResolver* theXMLEntityResolver = 0,
152 bool fPoolAllTextNodes = XalanSourceTreeDocument::getPoolAllTextNodes());
153
154 virtual
156
157 virtual XalanDocument*
158 getDocument() const;
159
161 createHelper(MemoryManager& theManager) const;
162
163 virtual const XalanDOMString&
164 getURI() const;
165
166private:
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
#define XALAN_DEFAULT_MEMMGR
#define XALAN_TRANSFORMER_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
virtual bool isNodeAfter(const XalanNode &node1, const XalanNode &node2) const
Determine if a node is after another node, in document order.
XalanDefaultParsedSourceDOMSupport(const XalanSourceTreeParserLiaison &theParserLiaison, const XalanSourceTreeDOMSupport &theDOMSupport)
virtual const XalanDOMString & getUnparsedEntityURI(const XalanDOMString &theName, const XalanDocument &theDocument) const
Retrieves the URI of the named unparsed entity from the supplied document.
static XalanDefaultParsedSourceHelper * create(const XalanSourceTreeDOMSupport &theSourceDOMSupport, MemoryManager &theManager)
XalanDefaultParsedSourceHelper(const XalanSourceTreeDOMSupport &theSourceDOMSupport, MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
virtual XMLParserLiaison & getParserLiaison()
Get the XMLParserLiaison instance.
virtual DOMSupport & getDOMSupport()
Get the DOMSupport instance.
This is designed to allow a XalanTranfomer object to reuse a parsed document.
virtual XalanParsedSourceHelper * createHelper(MemoryManager &theManager) const
Create the appropriate XalanParsedSourceHelper instance to use for transforming with the instance.
virtual XalanDocument * getDocument() const
Get a pointer to the XalanDocument instance for the source document.
static XalanDefaultParsedSource * create(MemoryManager &theManager, const InputSource &theInputSource, bool fValidate=false, ErrorHandler *theErrorHandler=0, EntityResolver *theEntityResolver=0, XMLEntityResolver *theXMLEntityResolver=0, const XalanDOMChar *theExternalSchemaLocation=0, const XalanDOMChar *theExternalNoNamespaceSchemaLocation=0, bool fPoolAllTextNodes=XalanSourceTreeDocument::getPoolAllTextNodes())
XalanDefaultParsedSource(const InputSource &theInputSource, bool fValidate=false, ErrorHandler *theErrorHandler=0, EntityResolver *theEntityResolver=0, XMLEntityResolver *theXMLEntityResolver=0, const XalanDOMChar *theExternalSchemaLocation=0, const XalanDOMChar *theExternalNoNamespaceSchemaLocation=0, bool fPoolAllTextNodes=XalanSourceTreeDocument::getPoolAllTextNodes(), MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
virtual const XalanDOMString & getURI() const
Get the URI for the parsed source, if any.
This is abstract base class designed to allow a XalanTranfomer object to reuse a parsed document.