<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:06 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>XalanElement.hpp</h1><a href="XalanElement.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(XALANELEMENT_HEADER_GUARD_1357924680) </font><a name="l00058"></a><a class="code" href="XalanElement.hpp.html#a0">00058</a> <font class="preprocessor"></font><font class="preprocessor">#define XALANELEMENT_HEADER_GUARD_1357924680 </font>00059 <font class="preprocessor"></font> 00060 00061 00062 <font class="preprocessor">#include <<a class="code" href="XalanDOMDefinitions.hpp.html">XalanDOM/XalanDOMDefinitions.hpp</a>></font> 00063 <font class="preprocessor">#include <<a class="code" href="XalanNode.hpp.html">XalanDOM/XalanNode.hpp</a>></font> 00064 00065 00066 00067 <font class="keyword">class </font><a class="code" href="class_xalanattr.html">XalanAttr</a>; 00068 00069 00070 00071 <font class="comment">/* </font>00072 <font class="comment"> * <meta name="usage" content="experimental"/> </font>00073 <font class="comment"> * </font>00074 <font class="comment"> * Base class for the DOM Element interface. </font>00075 <font class="comment"> * </font>00076 <font class="comment"> * This class is experimental and subject to change!! </font>00077 <font class="comment"> */</font> 00078 <a name="l00079"></a><a class="code" href="class_xalanelement.html">00079</a> <font class="keyword">class </font>XALAN_DOM_EXPORT <a class="code" href="class_xalanelement.html">XalanElement</a> : <font class="keyword">public</font> <a class="code" href="class_xalannode.html">XalanNode</a> 00080 { 00081 <font class="keyword">public</font>: 00082 00083 <a class="code" href="class_xalanelement.html#a0">XalanElement</a>(); 00084 00085 <font class="keyword">virtual</font> 00086 <a class="code" href="class_xalanelement.html#a1">~XalanElement</a>(); 00087 00088 <font class="comment">// These interfaces are inherited from XalanNode</font> 00089 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& 00090 <a class="code" href="class_xalannode.html#a2">getNodeName</a>() <font class="keyword">const</font> = 0; 00091 00095 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& 00096 <a class="code" href="class_xalannode.html#a3">getNodeValue</a>() <font class="keyword">const</font> = 0; 00097 00101 <font class="keyword">virtual</font> NodeType 00102 <a class="code" href="class_xalannode.html#a4">getNodeType</a>() <font class="keyword">const</font> = 0; 00103 00113 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00114 <a class="code" href="class_xalannode.html#a5">getParentNode</a>() <font class="keyword">const</font> = 0; 00115 00129 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalannodelist.html">XalanNodeList</a>* 00130 <a class="code" href="class_xalannode.html#a6">getChildNodes</a>() <font class="keyword">const</font> = 0; 00131 00137 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00138 <a class="code" href="class_xalannode.html#a7">getFirstChild</a>() <font class="keyword">const</font> = 0; 00139 00145 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00146 <a class="code" href="class_xalannode.html#a8">getLastChild</a>() <font class="keyword">const</font> = 0; 00147 00153 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00154 <a class="code" href="class_xalannode.html#a9">getPreviousSibling</a>() <font class="keyword">const</font> = 0; 00155 00161 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00162 <a class="code" href="class_xalannode.html#a10">getNextSibling</a>() <font class="keyword">const</font> = 0; 00163 00168 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalannamednodemap.html">XalanNamedNodeMap</a>* 00169 <a class="code" href="class_xalannode.html#a11">getAttributes</a>() <font class="keyword">const</font> = 0; 00170 00180 <font class="keyword">virtual</font> <a class="code" href="class_xalandocument.html">XalanDocument</a>* 00181 <a class="code" href="class_xalannode.html#a12">getOwnerDocument</a>() <font class="keyword">const</font> = 0; 00182 00184 00186 00205 <font class="preprocessor">#if defined(XALAN_NO_COVARIANT_RETURN_TYPE) </font>00206 <font class="preprocessor"></font> <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00207 <font class="preprocessor">#else </font>00208 <font class="preprocessor"></font> <font class="keyword">virtual</font> <a class="code" href="class_xalanelement.html">XalanElement</a>* 00209 <font class="preprocessor">#endif </font>00210 <font class="preprocessor"></font> <a class="code" href="class_xalannode.html#a13">cloneNode</a>(<font class="keywordtype">bool</font> deep) <font class="keyword">const</font> = 0; 00211 00213 00215 00232 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00233 <a class="code" href="class_xalannode.html#a14">insertBefore</a>( 00234 <a class="code" href="class_xalannode.html">XalanNode</a>* newChild, 00235 <a class="code" href="class_xalannode.html">XalanNode</a>* refChild) = 0; 00236 00250 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00251 <a class="code" href="class_xalannode.html#a15">replaceChild</a>( 00252 <a class="code" href="class_xalannode.html">XalanNode</a>* newChild, 00253 <a class="code" href="class_xalannode.html">XalanNode</a>* oldChild) = 0; 00254 00262 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00263 <a class="code" href="class_xalannode.html#a16">removeChild</a>(<a class="code" href="class_xalannode.html">XalanNode</a>* oldChild) = 0; 00264 00276 <font class="keyword">virtual</font> <a class="code" href="class_xalannode.html">XalanNode</a>* 00277 <a class="code" href="class_xalannode.html#a17">appendChild</a>(<a class="code" href="class_xalannode.html">XalanNode</a>* newChild) = 0; 00278 00280 00282 00290 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> 00291 <a class="code" href="class_xalannode.html#a18">hasChildNodes</a>() <font class="keyword">const</font> = 0; 00292 00293 00295 00297 00298 00312 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00313 <a class="code" href="class_xalannode.html#a19">setNodeValue</a>(<font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& nodeValue) = 0; 00314 00316 00318 00335 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00336 <a class="code" href="class_xalannode.html#a20">normalize</a>() = 0; 00337 00351 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> 00352 <a class="code" href="class_xalannode.html#a21">supports</a>( 00353 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& feature, 00354 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& version) <font class="keyword">const</font> = 0; 00355 00369 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& 00370 <a class="code" href="class_xalannode.html#a22">getNamespaceURI</a>() <font class="keyword">const</font> = 0; 00371 00376 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& 00377 <a class="code" href="class_xalannode.html#a23">getPrefix</a>() <font class="keyword">const</font> = 0; 00378 00386 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& 00387 <a class="code" href="class_xalannode.html#a24">getLocalName</a>() <font class="keyword">const</font> = 0; 00388 00418 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00419 <a class="code" href="class_xalannode.html#a25">setPrefix</a>(<font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& prefix) = 0; 00420 00426 <font class="keyword">virtual</font> <font class="keywordtype">bool</font> 00427 <a class="code" href="class_xalannode.html#a26">isIndexed</a>() <font class="keyword">const</font> = 0; 00428 00435 <font class="keyword">virtual</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> 00436 <a class="code" href="class_xalannode.html#a27">getIndex</a>() <font class="keyword">const</font> = 0; 00437 00439 00440 <font class="comment">// These interfaces are new to XalanElement...</font> 00449 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& 00450 <a class="code" href="class_xalanelement.html#a28">getTagName</a>() <font class="keyword">const</font> = 0; 00451 00459 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& 00460 <a class="code" href="class_xalanelement.html#a29">getAttribute</a>(<font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& name) <font class="keyword">const</font> = 0; 00461 00469 <font class="keyword">virtual</font> <a class="code" href="class_xalanattr.html">XalanAttr</a>* 00470 <a class="code" href="class_xalanelement.html#a30">getAttributeNode</a>(<font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& name) <font class="keyword">const</font> = 0; 00471 00482 <font class="keyword">virtual</font> <a class="code" href="class_xalannodelist.html">XalanNodeList</a>* 00483 <a class="code" href="class_xalanelement.html#a31">getElementsByTagName</a>(<font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& name) <font class="keyword">const</font> = 0; 00484 00486 00488 00510 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00511 <a class="code" href="class_xalanelement.html#a32">setAttribute</a>( 00512 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& name, 00513 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& value) = 0; 00514 00534 <font class="keyword">virtual</font> <a class="code" href="class_xalanattr.html">XalanAttr</a>* 00535 <a class="code" href="class_xalanelement.html#a33">setAttributeNode</a>(<a class="code" href="class_xalanattr.html">XalanAttr</a>* newAttr) = 0; 00536 00538 00540 00556 <font class="keyword">virtual</font> <a class="code" href="class_xalanattr.html">XalanAttr</a>* 00557 <a class="code" href="class_xalanelement.html#a34">removeAttributeNode</a>(<a class="code" href="class_xalanattr.html">XalanAttr</a>* oldAttr) = 0; 00558 00571 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00572 <a class="code" href="class_xalanelement.html#a35">removeAttribute</a>(<font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& name) = 0; 00573 00575 00577 00588 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& 00589 <a class="code" href="class_xalanelement.html#a36">getAttributeNS</a>( 00590 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& namespaceURI, 00591 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& localName) <font class="keyword">const</font> = 0; 00592 00633 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00634 <a class="code" href="class_xalanelement.html#a37">setAttributeNS</a>( 00635 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& namespaceURI, 00636 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& qualifiedName, 00637 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& value) = 0; 00638 00653 <font class="keyword">virtual</font> <font class="keywordtype">void</font> 00654 <a class="code" href="class_xalanelement.html#a38">removeAttributeNS</a>( 00655 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& namespaceURI, 00656 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& localName) = 0; 00657 00668 <font class="keyword">virtual</font> <a class="code" href="class_xalanattr.html">XalanAttr</a>* 00669 <a class="code" href="class_xalanelement.html#a39">getAttributeNodeNS</a>( 00670 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& namespaceURI, 00671 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& localName) <font class="keyword">const</font> = 0; 00672 00692 <font class="keyword">virtual</font> <a class="code" href="class_xalanattr.html">XalanAttr</a>* 00693 <a class="code" href="class_xalanelement.html#a40">setAttributeNodeNS</a>(<a class="code" href="class_xalanattr.html">XalanAttr</a>* newAttr) = 0; 00694 00710 <font class="keyword">virtual</font> <a class="code" href="class_xalannodelist.html">XalanNodeList</a>* 00711 <a class="code" href="class_xalanelement.html#a41">getElementsByTagNameNS</a>( 00712 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& namespaceURI, 00713 <font class="keyword">const</font> <a class="code" href="class_xalandomstring.html">XalanDOMString</a>& localName) <font class="keyword">const</font> = 0; 00714 00716 00717 <font class="keyword">protected</font>: 00718 00719 <a class="code" href="class_xalanelement.html#a0">XalanElement</a>(<font class="keyword">const</font> <a class="code" href="class_xalanelement.html">XalanElement</a>& theSource); 00720 00721 <a class="code" href="class_xalanelement.html">XalanElement</a>& 00722 <a class="code" href="class_xalannode.html#b1">operator=</a>(<font class="keyword">const</font> <a class="code" href="class_xalanelement.html">XalanElement</a>& theSource); 00723 00724 <font class="keywordtype">bool</font> 00725 <a class="code" href="class_xalannode.html#b2">operator==</a>(<font class="keyword">const</font> <a class="code" href="class_xalanelement.html">XalanElement</a>& theRHS) <font class="keyword">const</font>; 00726 00727 <font class="keyword">private</font>: 00728 }; 00729 00730 00731 00732 <font class="preprocessor">#endif // !defined(XALANELEMENT_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>