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&
54 
55  virtual XMLParserLiaison&
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*
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:42
xalanc::XercesDOMParsedSource::createHelper
virtual XalanParsedSourceHelper * createHelper(MemoryManager &theManager) const
Create the appropriate XalanParsedSourceHelper instance to use for transforming with the instance.
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::XercesDOMParsedSource::getDocument
virtual XalanDocument * getDocument() const
Get a pointer to the XalanDocument instance for the source document.
xalanc::XercesDOMParsedSourceHelper::~XercesDOMParsedSourceHelper
~XercesDOMParsedSourceHelper()
xalanc::XalanParsedSource
This is abstract base class designed to allow a XalanTranfomer object to reuse a parsed document.
Definition: XalanParsedSource.hpp:78
xalanc::XalanDocument
Definition: XalanDocument.hpp:37
XALAN_DEFAULT_MEMMGR
#define XALAN_DEFAULT_MEMMGR
Definition: XalanMemoryManagement.hpp:516
xalanc::XercesDOMParsedSource::XercesDOMParsedSource
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)
XercesDOMSupport.hpp
xalanc::XercesDOMParsedSourceHelper::XercesDOMParsedSourceHelper
XercesDOMParsedSourceHelper(MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
xalanc::XercesDOMSupport
Definition: XercesDOMSupport.hpp:41
xalanc::XalanParsedSourceHelper
Definition: XalanParsedSource.hpp:46
xalanc::XercesDOMParsedSourceHelper::getDOMSupport
virtual DOMSupport & getDOMSupport()
Get the DOMSupport instance.
xalanc::XercesDOMParsedSource::getURI
virtual const XalanDOMString & getURI() const
Get the URI for the parsed source, if any.
xalanc::XercesDOMParsedSource::~XercesDOMParsedSource
virtual ~XercesDOMParsedSource()
xalanc::XercesDOMParsedSourceHelper::getParserLiaison
virtual XMLParserLiaison & getParserLiaison()
Get the XMLParserLiaison instance.
xalanc::DOMSupport
Definition: DOMSupport.hpp:42
XercesParserLiaison.hpp
xalanc::XMLParserLiaison
Definition: XMLParserLiaison.hpp:69
xalanc::XercesDOMParsedSource::create
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)
XalanParsedSource.hpp
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:46
XALAN_TRANSFORMER_EXPORT
#define XALAN_TRANSFORMER_EXPORT
Definition: XalanTransformerDefinitions.hpp:39
xalanc::XercesDOMParsedSourceHelper::create
static XercesDOMParsedSourceHelper * create(MemoryManager &theManager)
xalanc::XercesDOMParsedSource
This is designed to allow a XalanTranfomer object to reuse a parsed document.
Definition: XercesDOMParsedSource.hpp:75
XalanTransformerDefinitions.hpp
xalanc::XercesParserLiaison
Definition: XercesParserLiaison.hpp:77
XALAN_DEFAULT_CONSTRUCTOR_MEMMGR
#define XALAN_DEFAULT_CONSTRUCTOR_MEMMGR
Definition: XalanMemoryManagement.hpp:515