<HTML><HEAD><TITLE>Xalan-C++ API Documentation</TITLE></HEAD> <BODY> <h2 align="center">Xalan-C++ API Documentation</h2> <h3 align="center">The Xalan C++ XSL Transformer Version 1.1</h3> </BODY> <!-- Generated by Doxygen 1.2.0 on Thu Feb 15 10:44:00 2001 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> <hr><h1>ResultTreeFrag.hpp</h1><a href="ResultTreeFrag.hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/* </font>00002 <font class="comment"> * The Apache Software License, Version 1.1 </font>00003 <font class="comment"> * </font>00004 <font class="comment"> * </font>00005 <font class="comment"> * Copyright (c) 1999 The Apache Software Foundation. All rights </font>00006 <font class="comment"> * reserved. </font>00007 <font class="comment"> * </font>00008 <font class="comment"> * Redistribution and use in source and binary forms, with or without </font>00009 <font class="comment"> * modification, are permitted provided that the following conditions </font>00010 <font class="comment"> * are met: </font>00011 <font class="comment"> * </font>00012 <font class="comment"> * 1. Redistributions of source code must retain the above copyright </font>00013 <font class="comment"> * notice, this list of conditions and the following disclaimer. </font>00014 <font class="comment"> * </font>00015 <font class="comment"> * 2. Redistributions in binary form must reproduce the above copyright </font>00016 <font class="comment"> * notice, this list of conditions and the following disclaimer in </font>00017 <font class="comment"> * the documentation and/or other materials provided with the </font>00018 <font class="comment"> * distribution. </font>00019 <font class="comment"> * </font>00020 <font class="comment"> * 3. The end-user documentation included with the redistribution, </font>00021 <font class="comment"> * if any, must include the following acknowledgment: </font>00022 <font class="comment"> * "This product includes software developed by the </font>00023 <font class="comment"> * Apache Software Foundation (http://www.apache.org/)." </font>00024 <font class="comment"> * Alternately, this acknowledgment may appear in the software itself, </font>00025 <font class="comment"> * if and wherever such third-party acknowledgments normally appear. </font>00026 <font class="comment"> * </font>00027 <font class="comment"> * 4. The names "Xalan" and "Apache Software Foundation" must </font>00028 <font class="comment"> * not be used to endorse or promote products derived from this </font>00029 <font class="comment"> * software without prior written permission. For written </font>00030 <font class="comment"> * permission, please contact apache@apache.org. </font>00031 <font class="comment"> * </font>00032 <font class="comment"> * 5. Products derived from this software may not be called "Apache", </font>00033 <font class="comment"> * nor may "Apache" appear in their name, without prior written </font>00034 <font class="comment"> * permission of the Apache Software Foundation. </font>00035 <font class="comment"> * </font>00036 <font class="comment"> * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED </font>00037 <font class="comment"> * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES </font>00038 <font class="comment"> * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE </font>00039 <font class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR </font>00040 <font class="comment"> * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, </font>00041 <font class="comment"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT </font>00042 <font class="comment"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF </font>00043 <font class="comment"> * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND </font>00044 <font class="comment"> * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, </font>00045 <font class="comment"> * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT </font>00046 <font class="comment"> * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF </font>00047 <font class="comment"> * SUCH DAMAGE. </font>00048 <font class="comment"> * ==================================================================== </font>00049 <font class="comment"> * </font>00050 <font class="comment"> * This software consists of voluntary contributions made by many </font>00051 <font class="comment"> * individuals on behalf of the Apache Software Foundation and was </font>00052 <font class="comment"> * originally based on software copyright (c) 1999, International </font>00053 <font class="comment"> * Business Machines, Inc., http://www.ibm.com. For more </font>00054 <font class="comment"> * information on the Apache Software Foundation, please see </font>00055 <font class="comment"> * <http://www.apache.org/>. </font>00056 <font class="comment"> */</font> 00057 <font class="preprocessor">#if !defined(RESULTTREEFRAG_HEADER_GUARD_1357924680) </font><a name="l00058"></a><a class="code" href="ResultTreeFrag.hpp.html#a0">00058</a> <font class="preprocessor"></font><font class="preprocessor">#define RESULTTREEFRAG_HEADER_GUARD_1357924680 </font>00059 <font class="preprocessor"></font> 00060 00061 00062 <font class="comment">// Base include file. Must be first.</font> 00063 <font class="preprocessor">#include <<a class="code" href="XPathDefinitions.hpp.html">XPath/XPathDefinitions.hpp</a>></font> 00064 00065 00066 00067 <font class="preprocessor">#include <vector></font> 00068 00069 00070 00071 <font class="preprocessor">#include <<a class="code" href="XalanNodeList.hpp.html">XalanDOM/XalanNodeList.hpp</a>></font> 00072 <font class="preprocessor">#include <<a class="code" href="XalanDocument.hpp.html">XalanDOM/XalanDocument.hpp</a>></font> 00073 00074 00075 00076 <font class="preprocessor">#include <<a class="code" href="ResultTreeFragBase.hpp.html">XPath/ResultTreeFragBase.hpp</a>></font> 00077 00078 00079 <a name="l00083"></a><a class="code" href="class_resulttreefrag.html">00083</a> <font class="keyword">class </font>XALAN_XPATH_EXPORT <a class="code" href="class_resulttreefrag.html">ResultTreeFrag</a> : <font class="keyword">public</font> <a class="code" href="class_resulttreefragbase.html">ResultTreeFragBase</a>, <font class="keyword">private</font> <a class="code" href="class_xalannodelist.html">XalanNodeList</a> 00084 { 00085 <font class="keyword">public</font>: 00086 00092 <a class="code" href="class_resulttreefrag.html#a0">ResultTreeFrag</a>(<a class="code" href="class_xalandocument.html">XalanDocument</a>* theOwnerDocument = 0); 00093 00100 <a class="code" href="class_resulttreefrag.html#a0">ResultTreeFrag</a>(<font class="keyword">const</font> <a class="code" href="class_resulttreefrag.html">ResultTreeFrag</a>& theSource, 00101 <font class="keywordtype">bool</font> deepClone = <font class="keyword">false</font>); 00102 00103 <font class="keyword">virtual</font> 00104 <a class="code" href="class_resulttreefrag.html#a2">~ResultTreeFrag</a>(); 00105 00106 00107 <font class="comment">// These interfaces are inherited from ResultTreeFragBase...</font> 00108 00109 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00110 <a class="code" href="class_resulttreefragbase.html#a3">clear</a>(); 00111 00112 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00113 <a class="code" href="class_resulttreefragbase.html#a4">setOwnerDocument</a>(<a class="code" href="class_xalandocument.html">XalanDocument</a>* theOwnerDocument); 00114 00115 00116 <font class="comment">// These interfaces are inherited from XalanDocumentFragment...</font> 00117 00118 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& 00119 <a class="code" href="class_resulttreefragbase.html#a5">getNodeName</a>() <font class="keyword">const</font>; 00120 00121 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& 00122 <a class="code" href="class_resulttreefragbase.html#a6">getNodeValue</a>() <font class="keyword">const</font>; 00123 00124 <font class="keyword">virtual</font> NodeType 00125 <a class="code" href="class_resulttreefragbase.html#a7">getNodeType</a>() <font class="keyword">const</font>; 00126 00127 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00128 <a class="code" href="class_resulttreefragbase.html#a8">getParentNode</a>() <font class="keyword">const</font>; 00129 00130 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalannodelist.html">XalanNodeList</a>* 00131 <a class="code" href="class_resulttreefragbase.html#a9">getChildNodes</a>() <font class="keyword">const</font>; 00132 00133 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00134 <a class="code" href="class_resulttreefragbase.html#a10">getFirstChild</a>() <font class="keyword">const</font>; 00135 00136 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00137 <a class="code" href="class_resulttreefragbase.html#a11">getLastChild</a>() <font class="keyword">const</font>; 00138 00139 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00140 <a class="code" href="class_resulttreefragbase.html#a12">getPreviousSibling</a>() <font class="keyword">const</font>; 00141 00142 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00143 <a class="code" href="class_resulttreefragbase.html#a13">getNextSibling</a>() <font class="keyword">const</font>; 00144 00145 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalannamednodemap.html">XalanNamedNodeMap</a>* 00146 <a class="code" href="class_resulttreefragbase.html#a14">getAttributes</a>() <font class="keyword">const</font>; 00147 00148 <font class="keyword">virtual</font> <a class="code" href="class_xalandocument.html">XalanDocument</a>* 00149 <a class="code" href="class_resulttreefragbase.html#a15">getOwnerDocument</a>() <font class="keyword">const</font>; 00150 00151 <font class="preprocessor">#if defined(XALAN_NO_COVARIANT_RETURN_TYPE) </font>00152 <font class="preprocessor"></font> <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00153 <font class="preprocessor">#else </font>00154 <font class="preprocessor"></font> <font class="keyword">virtual</font> <a class="code" href="class_resulttreefrag.html">ResultTreeFrag</a>* 00155 <font class="preprocessor">#endif </font>00156 <font class="preprocessor"></font> <a class="code" href="class_resulttreefragbase.html#a16">cloneNode</a>(<font class="keywordtype">bool</font> deep) <font class="keyword">const</font>; 00157 00158 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00159 <a class="code" href="class_resulttreefragbase.html#a17">insertBefore</a>( 00160 <a class="code" href="class_xalannode.html">XalanNode</a>* newChild, 00161 <a class="code" href="class_xalannode.html">XalanNode</a>* refChild); 00162 00163 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00164 <a class="code" href="class_resulttreefragbase.html#a18">replaceChild</a>( 00165 <a class="code" href="class_xalannode.html">XalanNode</a>* newChild, 00166 <a class="code" href="class_xalannode.html">XalanNode</a>* oldChild); 00167 00168 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00169 <a class="code" href="class_resulttreefragbase.html#a19">removeChild</a>(<a class="code" href="class_xalannode.html">XalanNode</a>* oldChild); 00170 00171 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00172 <a class="code" href="class_resulttreefragbase.html#a20">appendChild</a>(<a class="code" href="class_xalannode.html">XalanNode</a>* newChild); 00173 00174 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> 00175 <a class="code" href="class_resulttreefragbase.html#a21">hasChildNodes</a>() <font class="keyword">const</font>; 00176 00177 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00178 <a class="code" href="class_resulttreefragbase.html#a22">setNodeValue</a>(<font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& nodeValue); 00179 00180 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00181 <a class="code" href="class_resulttreefragbase.html#a23">normalize</a>(); 00182 00183 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> 00184 <a class="code" href="class_resulttreefragbase.html#a24">supports</a>( 00185 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& feature, 00186 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& version) <font class="keyword">const</font>; 00187 00188 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& 00189 <a class="code" href="class_resulttreefragbase.html#a25">getNamespaceURI</a>() <font class="keyword">const</font>; 00190 00191 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& 00192 <a class="code" href="class_resulttreefragbase.html#a26">getPrefix</a>() <font class="keyword">const</font>; 00193 00194 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& 00195 <a class="code" href="class_resulttreefragbase.html#a27">getLocalName</a>() <font class="keyword">const</font>; 00196 00197 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00198 <a class="code" href="class_resulttreefragbase.html#a28">setPrefix</a>(<font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& prefix); 00199 00200 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> 00201 <a class="code" href="class_resulttreefragbase.html#a29">isIndexed</a>() <font class="keyword">const</font>; 00202 00203 <font class="keyword">virtual</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> 00204 <a class="code" href="class_resulttreefragbase.html#a30">getIndex</a>() <font class="keyword">const</font>; 00205 00206 <font class="preprocessor">#if defined(XALAN_NO_COVARIANT_RETURN_TYPE) </font>00207 <font class="preprocessor"></font> <font class="keyword">virtual</font> <a class="code" href="class_resulttreefragbase.html">ResultTreeFragBase</a>* 00208 <font class="preprocessor">#else </font>00209 <font class="preprocessor"></font> <font class="keyword">virtual</font> <a class="code" href="class_resulttreefrag.html">ResultTreeFrag</a>* 00210 <font class="preprocessor">#endif </font>00211 <font class="preprocessor"></font> <a class="code" href="class_resulttreefragbase.html#a31">clone</a>(<font class="keywordtype">bool</font> deep) <font class="keyword">const</font>; 00212 00213 <font class="keyword">private</font>: 00214 00215 <font class="comment">// These methods are inherited from XalanNodeList...</font> 00216 00217 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00218 <a class="code" href="class_xalannodelist.html#a2">item</a>(<font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> index) <font class="keyword">const</font>; 00219 00220 <font class="keyword">virtual</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> 00221 <a class="code" href="class_xalannodelist.html#a3">getLength</a>() <font class="keyword">const</font>; 00222 00223 <font class="comment">// Not defined</font> 00224 <a class="code" href="class_resulttreefrag.html">ResultTreeFrag</a>& 00225 <a class="code" href="class_resulttreefragbase.html#b0">operator=</a>(<font class="keyword">const</font> <a class="code" href="class_resulttreefrag.html">ResultTreeFrag</a>& theRHS); 00226 00227 <font class="keywordtype">bool</font> 00228 <a class="code" href="class_resulttreefragbase.html#b1">operator==</a>(<font class="keyword">const</font> <a class="code" href="class_resulttreefrag.html">ResultTreeFrag</a>& theRHS) <font class="keyword">const</font>; 00229 00230 00231 <a class="code" href="class_xalandocument.html">XalanDocument</a>* m_document; 00232 00233 <font class="preprocessor">#if defined(XALAN_NO_NAMESPACES) </font>00234 <font class="preprocessor"></font> <font class="keyword">typedef</font> vector<<a class="code" href="class_xalannode.html">XalanNode</a>*> NodeVectorType; 00235 <font class="preprocessor">#else </font>00236 <font class="preprocessor"></font> <font class="keyword">typedef</font> std::vector<<a class="code" href="class_xalannode.html">XalanNode</a>*> NodeVectorType; 00237 <font class="preprocessor">#endif </font>00238 <font class="preprocessor"></font> 00239 NodeVectorType m_children; 00240 00241 <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a> s_emptyString; 00242 }; 00243 00244 00245 00246 <font class="preprocessor">#endif // RESULTTREEFRAGBASE_HEADER_GUARD_1357924680 </font></div></pre><p align="center"><a href="diagramnotes.html">Interpreting class diagrams</a></p> <p><FONT color="#000000" face="arial,helvetica,sanserif" size="-1"> <i><A href="http://www.stack.nl/~dimitri/doxygen/">Doxygen</A> and <A href="http://www.research.att.com/sw/tools/graphviz/">GraphViz</A> are used to generate this API documentation from the Xalan-C header files.</I></FONT></p> <TABLE border="0" cellpadding="0" cellspacing="0" width="820"><TR><TD bgcolor="#0086b2"><IMG height="1" src="images/dot.gif" width="1"></TD></TR></TABLE> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="80%"> <TR> <TD WIDTH="80%" VALIGN="TOP"> <P ALIGN="CENTER"><B>Xalan-C++ XSL Transformer Version 1.1</B><BR> Copyright © 2000, 2001 The Apache Software Foundation. All Rights Reserved.</i></p> </TD> </TR> <TR> <TD WIDTH="100%"> <P ALIGN="CENTER"><IMG SRC="ApacheLogo.jpg" WIDTH="387" HEIGHT="100" ALIGN="BOTTOM" BORDER="0"> </TD> </TR> </TABLE>