Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XSLTProcessorEnvSupportDefault.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(XSLTPROCESSORENVSUPPORTDEFAULT_HEADER_GUARD_1357924680)
17 #define XSLTPROCESSORENVSUPPORTDEFAULT_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
26 // Base class header file...
28 
29 
30 
32 
33 
34 
35 XALAN_CPP_NAMESPACE_BEGIN
36 
37 
38 
39 class XSLTProcessor;
40 
41 
42 
44 {
45 public:
46 
48  XSLTProcessor* theProcessor = 0);
49 
50  virtual
52 
58  void
59  setProcessor(XSLTProcessor* theProcessor)
60  {
61  m_processor = theProcessor;
62  }
63 
64 
72  static void
73  installExternalFunctionGlobal(
74  const XalanDOMString& theNamespace,
75  const XalanDOMString& functionName,
76  const Function& function);
77 
84  static void
85  uninstallExternalFunctionGlobal(
86  const XalanDOMString& theNamespace,
87  const XalanDOMString& functionName);
88 
89  // Interfaces to install and uninstall external functions in this instance.
90 
98  virtual void
99  installExternalFunctionLocal(
100  const XalanDOMString& theNamespace,
101  const XalanDOMString& functionName,
102  const Function& function);
103 
110  virtual void
111  uninstallExternalFunctionLocal(
112  const XalanDOMString& theNamespace,
113  const XalanDOMString& functionName);
114 
115 
116  // These interfaces are inherited from XSLTProcessorEnvSupport...
117 
118  virtual bool
119  problem(
120  eSource where,
121  eClassification classification,
122  const XalanNode* sourceNode,
123  const ElemTemplateElement* styleNode,
124  const XalanDOMString& msg,
125  const XalanDOMChar* uri,
126  int lineNo,
127  int charOffset) const;
128 
129  // These interfaces are inherited from XPathEnvSupport...
130 
131  virtual XalanDocument*
132  parseXML(
133  MemoryManagerType& theManager,
134  const XalanDOMString& urlString,
135  const XalanDOMString& base);
136 
137  virtual XalanDocument*
138  getSourceDocument(const XalanDOMString& theURI) const;
139 
140  virtual void
142  const XalanDOMString& theURI,
143  XalanDocument* theDocument);
144 
145  virtual const XalanDOMString&
146  findURIFromDoc(const XalanDocument* owner) const;
147 
148  virtual bool
150  const XalanDOMString& theNamespace,
151  const XalanDOMString& elementName) const;
152 
153  virtual bool
155  const XalanDOMString& theNamespace,
156  const XalanDOMString& functionName) const;
157 
158  virtual XObjectPtr
159  extFunction(
160  XPathExecutionContext& executionContext,
161  const XalanDOMString& theNamespace,
162  const XalanDOMString& functionName,
163  XalanNode* context,
164  const XObjectArgVectorType& argVec,
165  const LocatorType* locator) const;
166 
167  virtual bool
168  problem(
169  eSource where,
170  eClassification classification,
171  const PrefixResolver* resolver,
172  const XalanNode* sourceNode,
173  const XalanDOMString& msg,
174  const XalanDOMChar* uri,
175  int lineNo,
176  int charOffset) const;
177 
178  // These interfaces are inherited from Resettable...
179 
180  virtual void
181  reset();
182 
183 
184  // These are not implemented...
186 
188  operator=(const XSLTProcessorEnvSupportDefault&);
189 
190  bool
192 
193 
194  // Data members...
195 
197 
199 };
200 
201 
202 
203 XALAN_CPP_NAMESPACE_END
204 
205 
206 
207 #endif // XSLTPROCESSORENVSUPPORTDEFAULT_HEADER_GUARD_1357924680
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1111
Definition: XalanNode.hpp:44
Definition: Function.hpp:52
virtual const XalanDOMString & findURIFromDoc(const XalanDocument *owner) const =0
Given a DOM Document, tell what URI was used to parse it.
virtual void setSourceDocument(const XalanDOMString &theURI, XalanDocument *theDocument)=0
Associate a document with a given URI.
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
virtual bool elementAvailable(const XalanDOMString &theNamespace, const XalanDOMString &elementName) const =0
Determine if an external element is available.
Definition: ElemTemplateElement.hpp:74
XSLTProcessor * m_processor
Definition: XSLTProcessorEnvSupportDefault.hpp:198
virtual bool problem(eSource where, eClassification classification, const XalanNode *sourceNode, const ElemTemplateElement *styleNode, const XalanDOMString &msg, const XalanDOMChar *uri, int lineNo, int charOffset) const =0
Function that is called when a problem event occurs.
Definition: XSLTProcessorEnvSupport.hpp:40
Class to hold XObjectPtr return types.
Definition: XObject.hpp:584
Definition: XSLTProcessorEnvSupportDefault.hpp:43
Definition: XPathExecutionContext.hpp:72
virtual XObjectPtr extFunction(XPathExecutionContext &executionContext, const XalanDOMString &theNamespace, const XalanDOMString &functionName, XalanNode *context, const XObjectArgVectorType &argVec, const LocatorType *locator) const =0
Handle an extension function.
virtual XalanDocument * parseXML(MemoryManagerType &theManager, const XalanDOMString &urlString, const XalanDOMString &base)=0
Provides support for XML parsing service.
Dummy class in order to make the XPath object happy for diagnostic purposes.
Definition: XPathEnvSupportDefault.hpp:43
virtual bool functionAvailable(const XalanDOMString &theNamespace, const XalanDOMString &functionName) const =0
Determine if a function is available.
void setProcessor(XSLTProcessor *theProcessor)
Reset the XLST processor instance.
Definition: XSLTProcessorEnvSupportDefault.hpp:59
This class defines an interface for classes that resolve namespace prefixes to their URIs...
Definition: PrefixResolver.hpp:37
XERCES_CPP_NAMESPACE_QUALIFIER Locator LocatorType
Definition: FormatterListener.hpp:47
Definition: XalanDocument.hpp:51
virtual XalanDocument * getSourceDocument(const XalanDOMString &theURI) const =0
Get the source document for the given URI.
virtual void reset()=0
Reset the instance.
#define XALAN_XSLT_EXPORT
Definition: XSLTDefinitions.hpp:25
Definition: XalanDOMString.hpp:42
This is an interface for an XSLT Processor engine.
Definition: XSLTProcessor.hpp:79
XPathEnvSupportDefault m_defaultSupport
Definition: XSLTProcessorEnvSupportDefault.hpp:196

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