00001 /* 00002 * Copyright 1999-2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #if !defined(EXSLT_COMMONIMPL_HEADER_GUARD_1357924680) 00017 #define EXSLT_COMMONIMPL_HEADER_GUARD_1357924680 00018 00019 00020 00021 #include "XalanEXSLTDefinitions.hpp" 00022 00023 00024 00025 #include <xalanc/PlatformSupport/XalanMessageLoader.hpp> 00026 00027 00028 00029 #include <xalanc/XPath/Function.hpp> 00030 00031 00032 00033 #include <xalanc/XalanExtensions/FunctionNodeSet.hpp> 00034 00035 00036 00037 XALAN_CPP_NAMESPACE_BEGIN 00038 00039 00040 00041 class XALAN_EXSLT_EXPORT XalanEXSLTFunctionNodeSet : public FunctionNodeSet 00042 { 00043 public: 00044 00045 XalanEXSLTFunctionNodeSet() : 00046 FunctionNodeSet(true) 00047 { 00048 } 00049 00050 virtual 00051 ~XalanEXSLTFunctionNodeSet() 00052 { 00053 } 00054 00055 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE) 00056 virtual Function* 00057 #else 00058 virtual XalanEXSLTFunctionNodeSet* 00059 #endif 00060 clone() const 00061 { 00062 return new XalanEXSLTFunctionNodeSet(*this); 00063 } 00064 00065 protected: 00066 00067 virtual const XalanDOMString 00068 getError() const 00069 { 00070 return XalanMessageLoader::getMessage(XalanMessages::EXSLTFunctionAcceptsOneArgument_1Param,"node-set()"); 00071 } 00072 00073 virtual const XalanDOMString 00074 getInvalidArgumentTypeError() const 00075 { 00076 return XalanMessageLoader::getMessage(XalanMessages::InvalidArgumentType_1Param,"node-set()");; 00077 } 00078 00079 private: 00080 00081 // Not implemented... 00082 XalanEXSLTFunctionNodeSet& 00083 operator=(const XalanEXSLTFunctionNodeSet&); 00084 00085 bool 00086 operator==(const XalanEXSLTFunctionNodeSet&) const; 00087 }; 00088 00089 00090 00091 class XALAN_EXSLT_EXPORT XalanEXSLTFunctionObjectType : public Function 00092 { 00093 public: 00094 00095 typedef Function ParentType; 00096 00097 XalanEXSLTFunctionObjectType() : 00098 Function(), 00099 m_boolean(s_booleanString), 00100 m_external(s_externalString), 00101 m_nodeSet(s_nodeSetString), 00102 m_number(s_numberString), 00103 m_rtf(s_rtfString), 00104 m_string(s_stringString) 00105 { 00106 } 00107 00108 // A dummy constructor for use internally. Do not use this one!!!! 00109 XalanEXSLTFunctionObjectType(int /* theDummy */) : 00110 Function(), 00111 m_boolean(), 00112 m_external(), 00113 m_nodeSet(), 00114 m_number(), 00115 m_rtf(), 00116 m_string() 00117 { 00118 } 00119 00120 virtual 00121 ~XalanEXSLTFunctionObjectType() 00122 { 00123 } 00124 00125 // These methods are inherited from Function ... 00126 00127 virtual XObjectPtr 00128 execute( 00129 XPathExecutionContext& executionContext, 00130 XalanNode* context, 00131 const XObjectArgVectorType& args, 00132 const LocatorType* locator) const; 00133 00134 #if !defined(XALAN_NO_USING_DECLARATION) 00135 using ParentType::execute; 00136 #endif 00137 00138 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE) 00139 virtual Function* 00140 #else 00141 virtual XalanEXSLTFunctionObjectType* 00142 #endif 00143 clone() const 00144 { 00145 return new XalanEXSLTFunctionObjectType; 00146 } 00147 00148 protected: 00149 00150 const XalanDOMString 00151 getError() const; 00152 00153 private: 00154 00155 // Not implemented... 00156 XalanEXSLTFunctionObjectType(const XalanEXSLTFunctionObjectType&); 00157 00158 XalanEXSLTFunctionObjectType& 00159 operator=(const XalanEXSLTFunctionObjectType&); 00160 00161 bool 00162 operator==(const XalanEXSLTFunctionObjectType&) const; 00163 00164 00165 // Data members... 00166 const XalanDOMString m_boolean; 00167 const XalanDOMString m_external; 00168 const XalanDOMString m_nodeSet; 00169 const XalanDOMString m_number; 00170 const XalanDOMString m_rtf; 00171 const XalanDOMString m_string; 00172 00173 static const XalanDOMChar s_booleanString[]; 00174 static const XalanDOMChar s_externalString[]; 00175 static const XalanDOMChar s_nodeSetString[]; 00176 static const XalanDOMChar s_numberString[]; 00177 static const XalanDOMChar s_rtfString[]; 00178 static const XalanDOMChar s_stringString[]; 00179 }; 00180 00181 00182 00183 XALAN_CPP_NAMESPACE_END 00184 00185 00186 00187 #endif // EXSLT_COMMONIMPL_HEADER_GUARD_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
![]() |
Xalan-C++ XSLT Processor Version 1.8 |
|