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
37namespace XALAN_CPP_NAMESPACE {
38
39
40
42{
43public:
44
46
48
50 create(MemoryManager& theManager);
51
52 virtual DOMSupport&
54
55 virtual XMLParserLiaison&
57
58private:
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{
76public:
77
79 const InputSource& theInputSource,
80 bool fValidate = false,
81 ErrorHandler* theErrorHandler = 0,
82 EntityResolver* theEntityResolver = 0,
83 XMLEntityResolver* theXMLEntityResolver = 0,
86 MemoryManager& theManager XALAN_DEFAULT_MEMMGR);
87
90 MemoryManager& theManager,
91 const InputSource& theInputSource,
92 bool fValidate = false,
93 ErrorHandler* theErrorHandler = 0,
94 EntityResolver* theEntityResolver = 0,
95 XMLEntityResolver* theXMLEntityResolver = 0,
98
99 virtual
101
102 virtual XalanDocument*
103 getDocument() const;
104
106 createHelper(MemoryManager& theManager) const;
107
108 virtual const XalanDOMString&
109 getURI() const;
110
111private:
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
#define XALAN_DEFAULT_CONSTRUCTOR_MEMMGR
#define XALAN_DEFAULT_MEMMGR
#define XALAN_TRANSFORMER_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
This is abstract base class designed to allow a XalanTranfomer object to reuse a parsed document.
virtual XMLParserLiaison & getParserLiaison()
Get the XMLParserLiaison instance.
virtual DOMSupport & getDOMSupport()
Get the DOMSupport instance.
XercesDOMParsedSourceHelper(MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
static XercesDOMParsedSourceHelper * create(MemoryManager &theManager)
This is designed to allow a XalanTranfomer object to reuse a parsed document.
virtual const XalanDOMString & getURI() const
Get the URI for the parsed source, if any.
virtual XalanDocument * getDocument() const
Get a pointer to the XalanDocument instance for the source document.
static XercesDOMParsedSource * 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)
virtual XalanParsedSourceHelper * createHelper(MemoryManager &theManager) const
Create the appropriate XalanParsedSourceHelper instance to use for transforming with the instance.
XercesDOMParsedSource(const InputSource &theInputSource, bool fValidate=false, ErrorHandler *theErrorHandler=0, EntityResolver *theEntityResolver=0, XMLEntityResolver *theXMLEntityResolver=0, const XalanDOMChar *theExternalSchemaLocation=0, const XalanDOMChar *theExternalNoNamespaceSchemaLocation=0, MemoryManager &theManager XALAN_DEFAULT_MEMMGR)