Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanDefaultParsedSource.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(XALANDEFAULTPARSEDSOURCE_HEADER_GUARD)
17 #define XALANDEFAULTPARSEDSOURCE_HEADER_GUARD
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
29 
30 
31 
33 
34 
35 
36 XALAN_CPP_NAMESPACE_BEGIN
37 
38 
39 
40 class XSLTInputSource;
41 
42 
43 
45 {
46 public:
47 
49  const XalanSourceTreeParserLiaison& theParserLiaison,
50  const XalanSourceTreeDOMSupport& theDOMSupport);
51 
52  virtual
54 
55  virtual void
56  reset();
57 
58  // These interfaces are inherited from DOMSupport...
59 
60  virtual const XalanDOMString&
62  const XalanDOMString& theName,
63  const XalanDocument& theDocument) const;
64 
65  virtual bool
67  const XalanNode& node1,
68  const XalanNode& node2) const;
69 
70 private:
71 
72  // Not implemented...
74 
76  operator=(const XalanDefaultParsedSourceDOMSupport&);
77 
78 
79  // Data members...
80  const XalanSourceTreeDOMSupport& m_domSupport;
81 };
82 
83 
84 
86 {
87 public:
88 
91 
93  create(const XalanSourceTreeDOMSupport& theSourceDOMSupport,
94  MemoryManagerType& theManager);
95 
97 
98  virtual DOMSupport&
99  getDOMSupport();
100 
101  virtual XMLParserLiaison&
103 
104 private:
105 
106  // Not implemented...
108 
110  operator=(const XalanDefaultParsedSourceHelper&);
111 
112 
113  // Data members...
114  XalanSourceTreeParserLiaison m_parserLiaison;
115 
117 };
118 
119 
120 
126 {
127 public:
128 
130  const InputSourceType& theInputSource,
131  bool fValidate = false,
132  ErrorHandlerType* theErrorHandler = 0,
133  EntityResolverType* theEntityResolver = 0,
134  const XalanDOMChar* theExternalSchemaLocation = 0,
135  const XalanDOMChar* theExternalNoNamespaceSchemaLocation = 0,
136  bool fPoolAllTextNodes = XalanSourceTreeDocument::getPoolAllTextNodes(),
138 
140  create(
141  MemoryManagerType& theManager,
142  const InputSourceType& theInputSource,
143  bool fValidate = false,
144  ErrorHandlerType* theErrorHandler = 0,
145  EntityResolverType* theEntityResolver = 0,
146  const XalanDOMChar* theExternalSchemaLocation = 0,
147  const XalanDOMChar* theExternalNoNamespaceSchemaLocation = 0,
148  bool fPoolAllTextNodes = XalanSourceTreeDocument::getPoolAllTextNodes());
149 
150  virtual
152 
153  virtual XalanDocument*
154  getDocument() const;
155 
156  virtual XalanParsedSourceHelper*
158 
159  virtual const XalanDOMString&
160  getURI() const;
161 
162 private:
163 
164  // Not implemented...
166 
168  operator=(const XalanDefaultParsedSource&);
169 
170 
171  // Data members...
172  XalanSourceTreeParserLiaison m_parserLiaison;
173 
174  XalanSourceTreeDOMSupport m_domSupport;
175 
176  XalanSourceTreeDocument* m_parsedSource;
177 
178  XalanDOMString m_uri;
179 };
180 
181 
182 
183 XALAN_CPP_NAMESPACE_END
184 
185 
186 
187 #endif // XALANDEFAULTPARSEDSOURCE_HEADER_GUARD
188 
189 
190 
virtual bool isNodeAfter(const XalanNode &node1, const XalanNode &node2) const
Determine if a node is after another node, in document order.
#define XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR
Definition: XalanMemoryManagement.hpp:401
Definition: XalanNode.hpp:44
Definition: XalanDefaultParsedSource.hpp:44
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
virtual XMLParserLiaison & getParserLiaison()=0
Get the XMLParserLiaison instance.
Definition: DOMSupport.hpp:39
virtual XalanDocument * getDocument() const =0
Get a pointer to the XalanDocument instance for the source document.
XERCES_CPP_NAMESPACE_QUALIFIER InputSource InputSourceType
Definition: XMLParserLiaison.hpp:44
Definition: XalanDefaultParsedSource.hpp:85
virtual const XalanDOMString & getURI() const =0
Get the URI for the parsed source, if any.
#define XALAN_DEFAULT_MEMMGR
Definition: XalanMemoryManagement.hpp:402
Definition: XalanSourceTreeDOMSupport.hpp:38
Definition: XSLTInputSource.hpp:61
XERCES_CPP_NAMESPACE_QUALIFIER ErrorHandler ErrorHandlerType
Definition: XalanCompiledStylesheetDefault.hpp:53
virtual const XalanDOMString & getUnparsedEntityURI(const XalanDOMString &theName, const XalanDocument &theDocument) const
Retrieves the URI of the named unparsed entity from the supplied document.
Definition: XalanSourceTreeParserLiaison.hpp:57
virtual DOMSupport & getDOMSupport()=0
Get the DOMSupport instance.
Definition: XalanParsedSource.hpp:43
virtual XalanParsedSourceHelper * createHelper(MemoryManagerType &theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR) const =0
Create the appropriate XalanParsedSourceHelper instance to use for transforming with the instance...
This is abstract base class designed to allow a XalanTranfomer object to reuse a parsed document...
Definition: XalanParsedSource.hpp:75
Definition: XMLParserLiaison.hpp:54
Definition: XalanDocument.hpp:51
Definition: XalanDOMString.hpp:42
XalanDefaultParsedSourceDOMSupport(const XalanSourceTreeParserLiaison &theParserLiaison, const XalanSourceTreeDOMSupport &theDOMSupport)
This is designed to allow a XalanTranfomer object to reuse a parsed document.
Definition: XalanDefaultParsedSource.hpp:125
Definition: XalanSourceTreeDocument.hpp:73
XERCES_CPP_NAMESPACE_QUALIFIER EntityResolver EntityResolverType
Definition: XMLParserLiaison.hpp:42
static bool getPoolAllTextNodes()
Definition: XalanSourceTreeDocument.hpp:341
#define XALAN_TRANSFORMER_EXPORT
Definition: XalanTransformerDefinitions.hpp:37

Interpreting class diagrams

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

dot

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

Apache Logo