Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.4

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XalanEXSLTSetImpl.hpp

Go to the documentation of this file.
00001 /*
00002  * The Apache Software License, Version 1.1
00003  *
00004  *
00005  * Copyright (c) 2002 The Apache Software Foundation.  All rights 
00006  * reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted provided that the following conditions
00010  * are met:
00011  *
00012  * 1. Redistributions of source code must retain the above copyright
00013  *    notice, this list of conditions and the following disclaimer. 
00014  *
00015  * 2. Redistributions in binary form must reproduce the above copyright
00016  *    notice, this list of conditions and the following disclaimer in
00017  *    the documentation and/or other materials provided with the
00018  *    distribution.
00019  *
00020  * 3. The end-user documentation included with the redistribution,
00021  *    if any, must include the following acknowledgment:  
00022  *       "This product includes software developed by the
00023  *        Apache Software Foundation (http://www.apache.org/)."
00024  *    Alternately, this acknowledgment may appear in the software itself,
00025  *    if and wherever such third-party acknowledgments normally appear.
00026  *
00027  * 4. The names "Xalan" and "Apache Software Foundation" must
00028  *    not be used to endorse or promote products derived from this
00029  *    software without prior written permission. For written 
00030  *    permission, please contact apache@apache.org.
00031  *
00032  * 5. Products derived from this software may not be called "Apache",
00033  *    nor may "Apache" appear in their name, without prior written
00034  *    permission of the Apache Software Foundation.
00035  *
00036  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
00037  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00038  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00039  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
00040  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00041  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00042  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
00043  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00044  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00045  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
00046  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00047  * SUCH DAMAGE.
00048  * ====================================================================
00049  *
00050  * This software consists of voluntary contributions made by many
00051  * individuals on behalf of the Apache Software Foundation and was
00052  * originally based on software copyright (c) 1999, International
00053  * Business Machines, Inc., http://www.ibm.com.  For more
00054  * information on the Apache Software Foundation, please see
00055  * <http://www.apache.org/>.
00056  */
00057 #if !defined(EXSLT_SETIMPL_HEADER_GUARD_1357924680)
00058 #define EXSLT_SETIMPL_HEADER_GUARD_1357924680
00059 
00060 
00061 
00062 #include <XalanEXSLT/XalanEXSLTDefinitions.hpp>
00063 
00064 
00065 
00066 #include <XPath/Function.hpp>
00067 
00068 
00069 
00070 #include <XalanExtensions/FunctionDifference.hpp>
00071 #include <XalanExtensions/FunctionDistinct.hpp>
00072 #include <XalanExtensions/FunctionIntersection.hpp>
00073 
00074 
00075 
00076 class XALAN_EXSLT_EXPORT XalanEXSLTFunctionDifference : public FunctionDifference
00077 {
00078 public:
00079 
00080     XalanEXSLTFunctionDifference() :
00081         FunctionDifference()
00082     {
00083     }
00084 
00085     virtual
00086     ~XalanEXSLTFunctionDifference()
00087     {
00088     }
00089 
00090 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
00091     virtual Function*
00092 #else
00093     virtual XalanEXSLTFunctionDifference*
00094 #endif
00095     clone() const
00096     {
00097         return new XalanEXSLTFunctionDifference(*this);
00098     }
00099 
00100 protected:
00101 
00102     virtual const XalanDOMString
00103     getError() const
00104     {
00105         return StaticStringToDOMString(XALAN_STATIC_UCODE_STRING("The EXLT function difference() function accepts two arguments"));
00106     }
00107 
00108 private:
00109 
00110     // Not implemented...
00111     XalanEXSLTFunctionDifference&
00112     operator=(const XalanEXSLTFunctionDifference&);
00113 
00114     bool
00115     operator==(const XalanEXSLTFunctionDifference&) const;
00116 };
00117 
00118 
00119 
00120 class XALAN_EXSLT_EXPORT XalanEXSLTFunctionDistinct : public FunctionDistinct
00121 {
00122 public:
00123 
00124     XalanEXSLTFunctionDistinct() :
00125         FunctionDistinct()
00126     {
00127     }
00128 
00129     virtual
00130     ~XalanEXSLTFunctionDistinct()
00131     {
00132     }
00133 
00134 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
00135     virtual Function*
00136 #else
00137     virtual XalanEXSLTFunctionDistinct*
00138 #endif
00139     clone() const
00140     {
00141         return new XalanEXSLTFunctionDistinct(*this);
00142     }
00143 
00144 protected:
00145 
00146     virtual const XalanDOMString
00147     getError() const
00148     {
00149         return StaticStringToDOMString(XALAN_STATIC_UCODE_STRING("The EXLT function distinct() function accepts one argument"));
00150     }
00151 
00152 private:
00153 
00154     // Not implemented...
00155     XalanEXSLTFunctionDifference&
00156     operator=(const XalanEXSLTFunctionDifference&);
00157 
00158     bool
00159     operator==(const XalanEXSLTFunctionDifference&) const;
00160 };
00161 
00162 
00163 
00164 class XALAN_EXSLT_EXPORT XalanEXSLTFunctionHasSameNode : public Function
00165 {
00166 public:
00167 
00168     XalanEXSLTFunctionHasSameNode() :
00169         Function()
00170     {
00171     }
00172 
00173     virtual
00174     ~XalanEXSLTFunctionHasSameNode()
00175     {
00176     }
00177 
00178     // These methods are inherited from Function ...
00179 
00180     virtual XObjectPtr
00181     execute(
00182             XPathExecutionContext&          executionContext,
00183             XalanNode*                      context,
00184             const XObjectArgVectorType&     args,
00185             const Locator*                  locator) const;
00186 
00187 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
00188     virtual Function*
00189 #else
00190     virtual XalanEXSLTFunctionHasSameNode*
00191 #endif
00192     clone() const
00193     {
00194         return new XalanEXSLTFunctionHasSameNode(*this);
00195     }
00196 
00197 protected:
00198 
00199     virtual const XalanDOMString
00200     getError() const
00201     {
00202         return StaticStringToDOMString(XALAN_STATIC_UCODE_STRING("The EXLT function has-same-node() function accepts two arguments"));
00203     }
00204 
00205 private:
00206 
00207     // Not implemented...
00208     XalanEXSLTFunctionHasSameNode&
00209     operator=(const XalanEXSLTFunctionHasSameNode&);
00210 
00211     bool
00212     operator==(const XalanEXSLTFunctionHasSameNode&) const;
00213 };
00214 
00215 
00216 
00217 class XALAN_EXSLT_EXPORT XalanEXSLTFunctionIntersection : public FunctionIntersection
00218 {
00219 public:
00220 
00221     XalanEXSLTFunctionIntersection() :
00222         FunctionIntersection()
00223     {
00224     }
00225 
00226     virtual
00227     ~XalanEXSLTFunctionIntersection()
00228     {
00229     }
00230 
00231 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
00232     virtual Function*
00233 #else
00234     virtual XalanEXSLTFunctionIntersection*
00235 #endif
00236     clone() const
00237     {
00238         return new XalanEXSLTFunctionIntersection(*this);
00239     }
00240 
00241 protected:
00242 
00243     virtual const XalanDOMString
00244     getError() const
00245     {
00246         return StaticStringToDOMString(XALAN_STATIC_UCODE_STRING("The EXLT function distinct() function accepts two arguments"));
00247     }
00248 
00249 private:
00250 
00251     // Not implemented...
00252     XalanEXSLTFunctionIntersection&
00253     operator=(const XalanEXSLTFunctionIntersection&);
00254 
00255     bool
00256     operator==(const XalanEXSLTFunctionIntersection&) const;
00257 };
00258 
00259 
00260 
00261 class XALAN_EXSLT_EXPORT XalanEXSLTFunctionLeading : public Function
00262 {
00263 public:
00264 
00265     XalanEXSLTFunctionLeading() :
00266         Function()
00267     {
00268     }
00269 
00270     virtual
00271     ~XalanEXSLTFunctionLeading()
00272     {
00273     }
00274 
00275     // These methods are inherited from Function ...
00276 
00277     virtual XObjectPtr
00278     execute(
00279             XPathExecutionContext&          executionContext,
00280             XalanNode*                      context,
00281             const XObjectArgVectorType&     args,
00282             const Locator*                  locator) const;
00283 
00284 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
00285     virtual Function*
00286 #else
00287     virtual XalanEXSLTFunctionLeading*
00288 #endif
00289     clone() const
00290     {
00291         return new XalanEXSLTFunctionLeading(*this);
00292     }
00293 
00294 protected:
00295 
00296     virtual const XalanDOMString
00297     getError() const
00298     {
00299         return StaticStringToDOMString(XALAN_STATIC_UCODE_STRING("The EXLT function leading() function accepts two arguments"));
00300     }
00301 
00302 private:
00303 
00304     // Not implemented...
00305     XalanEXSLTFunctionHasSameNode&
00306     operator=(const XalanEXSLTFunctionHasSameNode&);
00307 
00308     bool
00309     operator==(const XalanEXSLTFunctionHasSameNode&) const;
00310 };
00311 
00312 
00313 
00314 class XALAN_EXSLT_EXPORT XalanEXSLTFunctionTrailing : public Function
00315 {
00316 public:
00317 
00318     XalanEXSLTFunctionTrailing() :
00319         Function()
00320     {
00321     }
00322 
00323     virtual
00324     ~XalanEXSLTFunctionTrailing()
00325     {
00326     }
00327 
00328     // These methods are inherited from Function ...
00329 
00330     virtual XObjectPtr
00331     execute(
00332             XPathExecutionContext&          executionContext,
00333             XalanNode*                      context,
00334             const XObjectArgVectorType&     args,
00335             const Locator*                  locator) const;
00336 
00337 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
00338     virtual Function*
00339 #else
00340     virtual XalanEXSLTFunctionTrailing*
00341 #endif
00342     clone() const
00343     {
00344         return new XalanEXSLTFunctionTrailing(*this);
00345     }
00346 
00347 protected:
00348 
00349     virtual const XalanDOMString
00350     getError() const
00351     {
00352         return StaticStringToDOMString(XALAN_STATIC_UCODE_STRING("The EXLT function trailing() function accepts two arguments"));
00353     }
00354 
00355 private:
00356 
00357     // Not implemented...
00358     XalanEXSLTFunctionTrailing&
00359     operator=(const XalanEXSLTFunctionTrailing&);
00360 
00361     bool
00362     operator==(const XalanEXSLTFunctionTrailing&) const;
00363 };
00364 
00365 
00366 
00367 #endif  // EXSLT_SETIMPL_HEADER_GUARD_1357924680

Interpreting class diagrams

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

Xalan-C++ XSLT Processor Version 1.4
Copyright © 2000, 2001, 2002 The Apache Software Foundation. All Rights Reserved.