Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


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 XALAN_CPP_NAMESPACE_BEGIN
38 
39 
40 
42 {
43 public:
44 
46 
48 
50  create(MemoryManager& theManager);
51 
52  virtual DOMSupport&
53  getDOMSupport();
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*
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 XALAN_CPP_NAMESPACE_END
123 
124 
125 
126 #endif // XERCESDOMPARSEDSOURCE_HEADER_GUARD
XercesDOMParsedSource
This is designed to allow a XalanTranfomer object to reuse a parsed document.
Definition: XercesDOMParsedSource.hpp:74
XalanParsedSource::getURI
virtual const XalanDOMString & getURI() const =0
Get the URI for the parsed source, if any.
XalanDocument
Definition: XalanDocument.hpp:36
XalanParsedSourceHelper
Definition: XalanParsedSource.hpp:45
XalanParsedSourceHelper::getParserLiaison
virtual XMLParserLiaison & getParserLiaison()=0
Get the XMLParserLiaison instance.
XMLParserLiaison
Definition: XMLParserLiaison.hpp:65
XalanParsedSourceHelper::getDOMSupport
virtual DOMSupport & getDOMSupport()=0
Get the DOMSupport instance.
XALAN_DEFAULT_MEMMGR
#define XALAN_DEFAULT_MEMMGR
Definition: XalanMemoryManagement.hpp:524
XercesDOMSupport.hpp
XalanParsedSource::createHelper
virtual XalanParsedSourceHelper * createHelper(MemoryManager &theManager) const =0
Create the appropriate XalanParsedSourceHelper instance to use for transforming with the instance.
XalanParsedSource::getDocument
virtual XalanDocument * getDocument() const =0
Get a pointer to the XalanDocument instance for the source document.
DOMSupport
Definition: DOMSupport.hpp:41
XalanDOMString
Definition: XalanDOMString.hpp:45
XercesParserLiaison.hpp
XercesDOMParsedSourceHelper
Definition: XercesDOMParsedSource.hpp:41
XalanParsedSource.hpp
XercesParserLiaison
Definition: XercesParserLiaison.hpp:72
XalanParsedSource
This is abstract base class designed to allow a XalanTranfomer object to reuse a parsed document.
Definition: XalanParsedSource.hpp:77
XALAN_TRANSFORMER_EXPORT
#define XALAN_TRANSFORMER_EXPORT
Definition: XalanTransformerDefinitions.hpp:39
XercesDOMSupport
Definition: XercesDOMSupport.hpp:40
XalanTransformerDefinitions.hpp
XALAN_DEFAULT_CONSTRUCTOR_MEMMGR
#define XALAN_DEFAULT_CONSTRUCTOR_MEMMGR
Definition: XalanMemoryManagement.hpp:523

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo