Xalan-C++ API Reference  1.12.0
XalanParsedSource.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(XALANPARSEDSOURCE_HEADER_GUARD)
19 #define XALANPARSEDSOURCE_HEADER_GUARD
20 
21 
22 
23 // Base include file. Must be first.
25 
26 
28 
29 
30 // We're bringing in XalanDocument so that its derivation from XalanNode
31 // is known...
33 
34 
35 
36 namespace XALAN_CPP_NAMESPACE {
37 
38 
39 
40 class DOMSupport;
41 class XMLParserLiaison;
42 
43 
44 
46 {
47 public:
48 
49  virtual
51  {
52  }
53 
54  /**
55  * Get the DOMSupport instance.
56  *
57  * @return A reference to a DOMSupport instance.
58  */
59  virtual DOMSupport&
60  getDOMSupport() = 0;
61 
62  /**
63  * Get the XMLParserLiaison instance.
64  *
65  * @return A rerefernce to an XMLParserLiaison instance.
66  */
67  virtual XMLParserLiaison&
68  getParserLiaison() = 0;
69 };
70 
71 
72 
73 /**
74  * This is abstract base class designed to allow a XalanTranfomer
75  * object to reuse a parsed document.
76  */
78 {
79 public:
80 
82 
83  virtual
85 
86  /**
87  * Get a pointer to the XalanDocument instance for the source
88  * document
89  *
90  * @return A pointer to a XalanDocument instance.
91  */
92  virtual XalanDocument*
93  getDocument() const = 0;
94 
95  /**
96  * Create the appropriate XalanParsedSourceHelper instance to
97  * use for transforming with the instance.
98  *
99  * The caller is responsible for deleting the object when finished.
100  *
101  * @return A pointer to a XalanParsedSourceHelper instance.
102  */
103  virtual XalanParsedSourceHelper*
104  createHelper(MemoryManager& theManager) const = 0;
105 
106  /**
107  * Get the URI for the parsed source, if any.
108  * use for transforming with the instance.
109  *
110  * @return A const reference to a string containing the URI
111  */
112  virtual const XalanDOMString&
113  getURI() const = 0;
114 };
115 
116 
117 
118 }
119 
120 
121 
122 #endif // XALANPARSEDSOURCE_HEADER_GUARD
123 
124 
125 
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
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
xalanc::XalanParsedSourceHelper
Definition: XalanParsedSource.hpp:45
XalanMemoryManagement.hpp
XalanDocument.hpp
xalanc::DOMSupport
Definition: DOMSupport.hpp:41
xalanc::XalanParsedSourceHelper::~XalanParsedSourceHelper
virtual ~XalanParsedSourceHelper()
Definition: XalanParsedSource.hpp:50
xalanc::XMLParserLiaison
Definition: XMLParserLiaison.hpp:68
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:45
XALAN_TRANSFORMER_EXPORT
#define XALAN_TRANSFORMER_EXPORT
Definition: XalanTransformerDefinitions.hpp:39
XalanTransformerDefinitions.hpp