Xalan-C++ API Reference 1.12.0
XSLTProcessorEnvSupportDefault.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(XSLTPROCESSORENVSUPPORTDEFAULT_HEADER_GUARD_1357924680)
19#define XSLTPROCESSORENVSUPPORTDEFAULT_HEADER_GUARD_1357924680
20
21
22
23// Base include file. Must be first.
25
26
27
28// Base class header file...
30
31
32
34
35
36
37namespace XALAN_CPP_NAMESPACE {
38
39
40
41class XSLTProcessor;
42
43
44
46{
47public:
48
50 MemoryManager& theManager,
52
53 virtual
55
56 /**
57 * Reset the XLST processor instance
58 *
59 * @param theProcessor pointer to new processor instance
60 */
61 void
63 {
64 m_processor = theProcessor;
65 }
66
67
68 /**
69 * Install an external function in the global space.
70 *
71 * @param theNamespace The namespace for the functionl
72 * @param functionName The name of the function.
73 * @param function The function to install.
74 */
75 static void
78 const XalanDOMString& functionName,
79 const Function& function);
80
81 /**
82 * Uninstall an external function from the global space.
83 *
84 * @param theNamespace The namespace for the functionl
85 * @param functionName The name of the function.
86 */
87 static void
90 const XalanDOMString& functionName);
91
92 // Interfaces to install and uninstall external functions in this instance.
93
94 /**
95 * Install an external function in the local space.
96 *
97 * @param theNamespace The namespace for the functionl
98 * @param functionName The name of the function.
99 * @param function The function to install.
100 */
101 virtual void
104 const XalanDOMString& functionName,
105 const Function& function);
106
107 /**
108 * Uninstall an external function from the local space.
109 *
110 * @param theNamespace The namespace for the functionl
111 * @param functionName The name of the function.
112 */
113 virtual void
116 const XalanDOMString& functionName);
117
118
119 // These interfaces are inherited from XSLTProcessorEnvSupport...
120
121 virtual void
123 eSource source,
125 const XalanDOMString& msg,
126 const Locator* locator,
127 const XalanNode* sourceNode);
128
129 virtual void
131 eSource source,
133 const XalanDOMString& msg,
134 const XalanNode* sourceNode);
135
136 virtual XalanDocument*
138 MemoryManager& theManager,
140 const XalanDOMString& base,
141 ErrorHandler* theErrorHandler = 0);
142
143 virtual XalanDocument*
145
146 virtual void
148 const XalanDOMString& theURI,
150
151 virtual const XalanDOMString&
153
154 virtual bool
157 const XalanDOMString& elementName) const;
158
159 virtual bool
162 const XalanDOMString& functionName) const;
163
164 virtual XObjectPtr
168 const XalanDOMString& functionName,
171 const Locator* locator) const;
172
173 virtual void
175
176
177 // These are not implemented...
179
182
183 bool
185
186
187 // Data members...
188
190
192};
193
194
195
196}
197
198
199
200#endif // XSLTPROCESSORENVSUPPORTDEFAULT_HEADER_GUARD_1357924680
#define XALAN_XSLT_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Class to hold XObjectPtr return types.
Definition XObject.hpp:884
virtual XObjectPtr extFunction(XPathExecutionContext &executionContext, const XalanDOMString &theNamespace, const XalanDOMString &functionName, XalanNode *context, const XObjectArgVectorType &argVec, const Locator *locator) const
Handle an extension function.
virtual void reset()
Reset the instance.
virtual XalanDocument * getSourceDocument(const XalanDOMString &theURI) const
Get the source document for the given URI.
virtual bool elementAvailable(const XalanDOMString &theNamespace, const XalanDOMString &elementName) const
Determine if an external element is available.
void setProcessor(XSLTProcessor *theProcessor)
Reset the XLST processor instance.
static void uninstallExternalFunctionGlobal(const XalanDOMString &theNamespace, const XalanDOMString &functionName)
Uninstall an external function from the global space.
virtual void installExternalFunctionLocal(const XalanDOMString &theNamespace, const XalanDOMString &functionName, const Function &function)
Install an external function in the local space.
XSLTProcessorEnvSupportDefault(MemoryManager &theManager, XSLTProcessor *theProcessor=0)
virtual void uninstallExternalFunctionLocal(const XalanDOMString &theNamespace, const XalanDOMString &functionName)
Uninstall an external function from the local space.
virtual void setSourceDocument(const XalanDOMString &theURI, XalanDocument *theDocument)
Associate a document with a given URI.
static void installExternalFunctionGlobal(const XalanDOMString &theNamespace, const XalanDOMString &functionName, const Function &function)
Install an external function in the global space.
virtual const XalanDOMString & findURIFromDoc(const XalanDocument *owner) const
Given a DOM Document, tell what URI was used to parse it.
virtual bool functionAvailable(const XalanDOMString &theNamespace, const XalanDOMString &functionName) const
Determine if a function is available.
bool operator==(const XSLTProcessorEnvSupportDefault &) const
virtual void problem(eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode)
Function that is called when a problem event occurs.
virtual void problem(eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode)
Function that is called when a problem event occurs.
XSLTProcessorEnvSupportDefault(const XSLTProcessorEnvSupportDefault &)
virtual XalanDocument * parseXML(MemoryManager &theManager, const XalanDOMString &urlString, const XalanDOMString &base, ErrorHandler *theErrorHandler=0)
Provides support for XML parsing service.
XSLTProcessorEnvSupportDefault & operator=(const XSLTProcessorEnvSupportDefault &)
This is an interface for an XSLT Processor engine.