Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


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 
38 XALAN_CPP_NAMESPACE_BEGIN
39 
40 
41 
42 class XSLTInputSource;
43 
44 
45 
47 {
48 public:
49 
51  const XalanSourceTreeParserLiaison& theParserLiaison,
52  const XalanSourceTreeDOMSupport& theDOMSupport);
53 
54  virtual
56 
57  virtual void
58  reset();
59 
60  // These interfaces are inherited from DOMSupport...
61 
62  virtual const XalanDOMString&
64  const XalanDOMString& theName,
65  const XalanDocument& theDocument) const;
66 
67  virtual bool
69  const XalanNode& node1,
70  const XalanNode& node2) const;
71 
72 private:
73 
74  // Not implemented...
76 
78  operator=(const XalanDefaultParsedSourceDOMSupport&);
79 
80 
81  // Data members...
82  const XalanSourceTreeDOMSupport& m_domSupport;
83 };
84 
85 
86 
88 {
89 public:
90 
92  MemoryManager& theManager XALAN_DEFAULT_MEMMGR);
93 
95  create(const XalanSourceTreeDOMSupport& theSourceDOMSupport,
96  MemoryManager& theManager);
97 
99 
100  virtual DOMSupport&
101  getDOMSupport();
102 
103  virtual XMLParserLiaison&
105 
106 private:
107 
108  // Not implemented...
110 
112  operator=(const XalanDefaultParsedSourceHelper&);
113 
114 
115  // Data members...
116  XalanSourceTreeParserLiaison m_parserLiaison;
117 
119 };
120 
121 
122 
123 /**
124  * This is designed to allow a XalanTranfomer object to reuse a parsed
125  * document.
126  */
128 {
129 public:
130 
132  const InputSource& theInputSource,
133  bool fValidate = false,
134  ErrorHandler* theErrorHandler = 0,
135  EntityResolver* theEntityResolver = 0,
136  XMLEntityResolver* theXMLEntityResolver = 0,
137  const XalanDOMChar* theExternalSchemaLocation = 0,
138  const XalanDOMChar* theExternalNoNamespaceSchemaLocation = 0,
139  bool fPoolAllTextNodes = XalanSourceTreeDocument::getPoolAllTextNodes(),
140  MemoryManager& theManager XALAN_DEFAULT_MEMMGR);
141 
143  create(
144  MemoryManager& theManager,
145  const InputSource& theInputSource,
146  bool fValidate = false,
147  ErrorHandler* theErrorHandler = 0,
148  EntityResolver* theEntityResolver = 0,
149  XMLEntityResolver* theXMLEntityResolver = 0,
150  const XalanDOMChar* theExternalSchemaLocation = 0,
151  const XalanDOMChar* theExternalNoNamespaceSchemaLocation = 0,
152  bool fPoolAllTextNodes = XalanSourceTreeDocument::getPoolAllTextNodes());
153 
154  virtual
156 
157  virtual XalanDocument*
158  getDocument() const;
159 
160  virtual XalanParsedSourceHelper*
161  createHelper(MemoryManager& theManager) const;
162 
163  virtual const XalanDOMString&
164  getURI() const;
165 
166 private:
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 XALAN_CPP_NAMESPACE_END
188 
189 
190 
191 #endif // XALANDEFAULTPARSEDSOURCE_HEADER_GUARD
192 
193 
194 
#define XALAN_DEFAULT_MEMMGR
virtual bool isNodeAfter(const XalanNode &node1, const XalanNode &node2) const
Determine if a node is after another node, in document order.
This is abstract base class designed to allow a XalanTranfomer object to reuse a parsed document...
XalanDefaultParsedSourceDOMSupport(const XalanSourceTreeParserLiaison &theParserLiaison, const XalanSourceTreeDOMSupport &theDOMSupport)
This is designed to allow a XalanTranfomer object to reuse a parsed document.
const XalanSourceTreeParserLiaison * getParserLiaison() const
#define XALAN_TRANSFORMER_EXPORT
virtual const XalanDOMString & getUnparsedEntityURI(const XalanDOMString &theName, const XalanDocument &theDocument) const
Retrieves the URI of the named unparsed entity from the supplied document.

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