Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

ExtensionFunctionHandler.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 
17 #if !defined(XALAN_EXTENSIONFUNCTIONHANDLER_HEADER_GUARD)
18 #define XALAN_EXTENSIONFUNCTIONHANDLER_HEADER_GUARD
19 
20 
21 
22 // Base include file. Must be first.
24 
25 
26 
28 
29 
30 
33 
34 
35 
37 
38 
39 
40 #include <xalanc/XPath/XObject.hpp>
41 
42 
43 
44 XALAN_CPP_NAMESPACE_BEGIN
45 
46 
47 
48 class XObjectPtr;
49 
50 
51 
59 {
60 
61 public:
62 
69  ExtensionFunctionHandler(const XalanDOMString& namespaceUri,
70  MemoryManagerType& theManager);
71 
85  MemoryManagerType& theManager,
86  const XalanDOMString& namespaceUri,
87  const XalanDOMString& funcNames,
88  const XalanDOMString& lang,
89  const XalanDOMString& srcURL,
90  const XalanDOMString& scriptSrc);
91 
92 
93  virtual
95 
97  getMemoryManager()
98  {
99  return m_namespaceUri.getMemoryManager();
100  }
101 
108  virtual void
109  setFunctions(const XalanDOMString& funcNames);
110 
124  virtual void
125  setScript(
126  const XalanDOMString& lang,
127  const XalanDOMString& srcURL,
128  const XalanDOMString& scriptSrc);
129 
136  virtual bool
137  isFunctionAvailable(const XalanDOMString& function) const;
138 
141 
143 
160  virtual XObjectPtr
161  callFunction(
162  const XalanDOMString& funcName,
163  const ArgVectorType& args);
164 
165 protected:
166 
167  XalanDOMString m_namespaceUri; // uri of the extension namespace
168  XalanDOMString m_scriptLang; // scripting language of implementation
169  XalanDOMString m_scriptSrc; // script source to run (if any)
170  XalanDOMString m_scriptSrcURL; // URL of source of script (if any)
171 
172  void* m_javaObject; // object for javaclass engine
173 
174  StringSetType m_functions; // functions of namespace
175 
176  // BSFManager mgr = new BSFManager (); // mgr used to run scripts
177 
178  bool m_componentStarted; // true when the scripts in a
179 
180  // component description (if any) have been run
181 
189  virtual void
190  startupComponent();
191 
192  static const XalanDOMChar s_tokenDelimiterCharacters[];
193 };
194 
195 
196 
197 XALAN_CPP_NAMESPACE_END
198 
199 
200 
201 #endif // XALAN_EXTENSIONFUNCTIONHANDLER_HEADER_GUARD

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