blob: 6edd3fc922716308ef15f09e875df321cd1941c7 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Xalan-C++ API : Main Page</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<!-- The head section is copied from Doxygen 1.7.1 generated default output -->
<body>
<h2 align="center">Xalan-C++ API Documentation</h2>
<h3 align="center"><a href="../index.html">The Xalan C++ XSLT Processor Version 1.11</a></h3>
<hr/>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>ElemIf Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="ElemIf" --><!-- doxytag: inherits="ElemTemplateElement" -->
<p><code>#include &lt;<a class="el" href="ElemIf_8hpp_source.html">ElemIf.hpp</a>&gt;</code></p>
<p>Inherits <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a>.</p>
<div class="dynheader">
Collaboration diagram for ElemIf:</div>
<div class="dyncontent">
<div class="center"><img src="classElemIf__coll__graph.png" border="0" usemap="#ElemIf_coll__map" alt="Collaboration graph"/></div>
<map name="ElemIf_coll__map" id="ElemIf_coll__map">
<area shape="rect" id="node2" href="classElemTemplateElement.html" title="ElemTemplateElement" alt="" coords="2263,456,2428,485"/><area shape="rect" id="node25" href="classElemTextLiteral.html" title="ElemTextLiteral" alt="" coords="2843,505,2960,535"/><area shape="rect" id="node43" href="classElemTemplate.html" title="ElemTemplate" alt="" coords="2845,612,2957,641"/><area shape="rect" id="node95" href="classStylesheetRoot.html" title="This acts as the stylesheet root of the stylesheet tree, and holds values that are shared by all styl..." alt="" coords="3721,783,3839,812"/><area shape="rect" id="node4" href="classPrefixResolver.html" title="This class defines an interface for classes that resolve namespace prefixes to their URIs..." alt="" coords="1901,304,2011,333"/><area shape="rect" id="node66" href="classStylesheet.html" title="This class represents the base stylesheet or an &quot;import&quot; stylesheet." alt="" coords="3349,781,3440,811"/><area shape="rect" id="node6" href="classNamespacesHandler.html" title="NamespacesHandler" alt="" coords="1879,808,2033,837"/><area shape="rect" id="node8" href="classXalanVector.html" title="XalanVector\&lt; Namespace \&gt;" alt="" coords="1295,731,1500,760"/><area shape="rect" id="node10" href="classXalanMap.html" title="XalanMap\&lt; const XalanDOMString *, const XalanDOMString * \&gt;" alt="" coords="1180,936,1615,965"/><area shape="rect" id="node12" href="classXalanVector.html" title="XalanVector\&lt; BucketType, ConstructWithMemoryManagerTraits\&lt; BucketType \&gt; \&gt;" alt="" coords="433,1269,977,1299"/><area shape="rect" id="node69" href="classXalanMap.html" title="XalanMap\&lt; XalanDOMString, ExtensionNSHandler * \&gt;" alt="" coords="1212,1172,1583,1201"/><area shape="rect" id="node83" href="classXalanMap.html" title="XalanMap\&lt; XalanDOMString, PatternTableVectorType \&gt;" alt="" coords="1208,1092,1587,1121"/><area shape="rect" id="node98" href="classXalanMap.html" title="XalanMap\&lt; const XalanQName *, AttributeSetVectorType \&gt;" alt="" coords="1193,1529,1601,1559"/><area shape="rect" id="node109" href="classXalanMap.html" title="XalanMap\&lt; XalanQNameByReference, const ElemTemplate * \&gt;" alt="" coords="1183,1396,1612,1425"/><area shape="rect" id="node14" href="structXalanMapKeyTraits_3_01const_01XalanDOMString_01_5_01_4.html" title="XalanMapKeyTraits\&lt; const XalanDOMString * \&gt;" alt="" coords="541,864,869,893"/><area shape="rect" id="node16" href="classXalanList.html" title="XalanList\&lt; Entry \&gt;" alt="" coords="633,1383,777,1412"/><area shape="rect" id="node18" href="structXalanList_1_1Node.html" title="XalanList\&lt; Type \&gt;::Node" alt="" coords="44,1383,225,1412"/><area shape="rect" id="node21" href="classXalanVector.html" title="XalanVector\&lt; const XalanDOMString * \&gt;" alt="" coords="1255,784,1540,813"/><area shape="rect" id="node23" href="classXalanVector.html" title="XalanVector\&lt; NamespaceExtended \&gt;" alt="" coords="1264,837,1531,867"/><area shape="rect" id="node28" href="classXalanQNameByReference.html" title="XalanQNameByReference" alt="" coords="1863,488,2049,517"/><area shape="rect" id="node30" href="classXalanQName.html" title="Class to represent a qualified name." alt="" coords="1344,504,1451,533"/><area shape="rect" id="node32" href="classXalanDOMString.html" title="XalanDOMString" alt="" coords="641,369,769,399"/><area shape="rect" id="node37" href="classElemTemplateElement_1_1LocatorProxy.html" title="ElemTemplateElement::LocatorProxy" alt="" coords="1269,317,1525,347"/><area shape="rect" id="node46" href="classXPath.html" title="XPath" alt="" coords="1925,623,1987,652"/><area shape="rect" id="node54" href="classXPathExpression.html" title="XPathExpression" alt="" coords="1332,623,1463,652"/><area shape="rect" id="node121" href="classXalanNamespace.html" title="XalanNamespace" alt="" coords="1329,261,1465,291"/><area shape="rect" id="node34" href="classXalanVector.html" title="XalanVector\&lt; XalanDOMChar \&gt;" alt="" coords="21,369,248,399"/><area shape="rect" id="node39" href="classXalanLocator.html" title="This class defines a base class for Locator derivations in Xalan." alt="" coords="652,79,759,108"/><area shape="rect" id="node48" href="classXPathFunctionTable.html" title="Class defines a table of functions that can be called in XPath expresions." alt="" coords="1324,677,1471,707"/><area shape="rect" id="node50" href="classFunction.html" title="Function" alt="" coords="668,799,743,828"/><area shape="rect" id="node52" href="structXPathFunctionTable_1_1FunctionNameTableEntry.html" title="XPathFunctionTable::FunctionNameTableEntry" alt="" coords="548,733,863,763"/><area shape="rect" id="node56" href="classXalanVector.html" title="XalanVector\&lt; XToken \&gt;" alt="" coords="617,567,793,596"/><area shape="rect" id="node58" href="classXalanVector.html" title="XalanVector\&lt; int \&gt;" alt="" coords="632,620,779,649"/><area shape="rect" id="node60" href="classXalanVector.html" title="XalanVector\&lt; double \&gt;" alt="" coords="619,673,792,703"/><area shape="rect" id="node73" href="structXalanMapKeyTraits_3_01XalanDOMString_01_4.html" title="XalanMapKeyTraits\&lt; XalanDOMString \&gt;" alt="" coords="567,1019,844,1048"/><area shape="rect" id="node76" href="classXalanVector.html" title="XalanVector\&lt; Stylesheet * \&gt;" alt="" coords="2797,887,3005,916"/><area shape="rect" id="node78" href="classXalanVector.html" title="XalanVector\&lt; ElemVariable * \&gt;" alt="" coords="2789,1041,3013,1071"/><area shape="rect" id="node81" href="classXalanVector.html" title="XalanVector\&lt; XalanSpaceNodeTester \&gt;" alt="" coords="2761,1148,3041,1177"/><area shape="rect" id="node88" href="classXalanVector.html" title="XalanVector\&lt; Type, ConstructionTraits \&gt;" alt="" coords="2760,452,3043,481"/><area shape="rect" id="node90" href="classXalanVector.html" title="XalanVector\&lt; XalanDOMString \&gt;" alt="" coords="2784,1095,3019,1124"/><area shape="rect" id="node93" href="classXalanVector.html" title="XalanVector\&lt; ElemDecimalFormat * \&gt;" alt="" coords="2767,348,3036,377"/><area shape="rect" id="node100" href="structXalanMapKeyTraits_3_01const_01XalanQName_01_5_01_4.html" title="XalanMapKeyTraits\&lt; const XalanQName * \&gt;" alt="" coords="551,1692,860,1721"/><area shape="rect" id="node106" href="classXalanVector.html" title="XalanVector\&lt; const XalanQName * \&gt;" alt="" coords="3261,1313,3528,1343"/><area shape="rect" id="node112" href="structXalanMapKeyTraits_3_01XalanQNameByReference_01_4.html" title="XalanMapKeyTraits\&lt; XalanQNameByReference \&gt;" alt="" coords="536,1561,875,1591"/><area shape="rect" id="node114" href="structXalanMapKeyTraits_3_01XalanQName_01_4.html" title="XalanMapKeyTraits\&lt; XalanQName \&gt;" alt="" coords="5,1561,264,1591"/><area shape="rect" id="node117" href="classXalanDeque.html" title="Xalan implementation of deque." alt="" coords="2453,268,2736,297"/><area shape="rect" id="node119" href="classXalanVector.html" title="XalanVector\&lt; BlockType * \&gt;" alt="" coords="1855,251,2057,280"/><area shape="rect" id="node124" href="classXalanVector.html" title="XalanVector\&lt; KeyDeclaration \&gt;" alt="" coords="2788,833,3015,863"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="classElemIf-members.html">List of all members.</a></p>
<h2><a name="pub-methods"></a>
Public Member Functions</h2>
<ul>
<li><a class="el" href="classElemIf.html#a84b684e788f21c32c4ae952cf63aa02a">ElemIf</a> (<a class="el" href="classStylesheetConstructionContext.html">StylesheetConstructionContext</a> &amp;constructionContext, <a class="el" href="classStylesheet.html">Stylesheet</a> &amp;stylesheetTree, const <a class="el" href="XalanSourceTreeContentHandler_8hpp.html#ab5db67e0ad48b82d8a0476b99c377fdb">AttributeListType</a> &amp;atts, XalanFileLoc lineNumber, XalanFileLoc columnNumber)
<dl class="el"><dd class="mdescRight">Construct an object corresponding to an "xsl:if" element. <a href="#a84b684e788f21c32c4ae952cf63aa02a"></a><br/></dl><li>virtual const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <a class="el" href="classElemIf.html#acd763c05ba89da9a72b90cd13701e6b6">getElementName</a> () const
<dl class="el"><dd class="mdescRight">Get a string for the name of the element. <a href="#acd763c05ba89da9a72b90cd13701e6b6"></a><br/></dl><li>virtual const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a> * <a class="el" href="classElemIf.html#afbac0811b9b324054fac3ebeccc30bf2">startElement</a> (<a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;executionContext) const
<dl class="el"><dd class="mdescRight">Completes "pre-processing" before any sub-elements are invoked (i.e. <a href="#afbac0811b9b324054fac3ebeccc30bf2"></a><br/></dl><li>virtual void <a class="el" href="classElemIf.html#af389e2a3bd485216e5d1048e51bf317b">endElement</a> (<a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;executionContext) const
<dl class="el"><dd class="mdescRight">Completes "post-processing" afer any sub-elements are invoked (i.e. <a href="#af389e2a3bd485216e5d1048e51bf317b"></a><br/></dl><li>virtual const <a class="el" href="classXPath.html">XPath</a> * <a class="el" href="classElemIf.html#a7a01ffff0b78bf537cb26a41e7acac8f">getXPath</a> (XalanSize_t index) const
<dl class="el"><dd class="mdescRight">Get <a class="el" href="classXPath.html">XPath</a> pattern/expression of one of the element atribute. <a href="#a7a01ffff0b78bf537cb26a41e7acac8f"></a><br/></dl></ul>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Definition at line <a class="el" href="ElemIf_8hpp_source.html#l00039">39</a> of file <a class="el" href="ElemIf_8hpp_source.html">ElemIf.hpp</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a84b684e788f21c32c4ae952cf63aa02a"></a><!-- doxytag: member="ElemIf::ElemIf" ref="a84b684e788f21c32c4ae952cf63aa02a" args="(StylesheetConstructionContext &amp;constructionContext, Stylesheet &amp;stylesheetTree, const AttributeListType &amp;atts, XalanFileLoc lineNumber, XalanFileLoc columnNumber)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ElemIf::ElemIf </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classStylesheetConstructionContext.html">StylesheetConstructionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>constructionContext</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classStylesheet.html">Stylesheet</a> &amp;&nbsp;</td>
<td class="paramname"> <em>stylesheetTree</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="XalanSourceTreeContentHandler_8hpp.html#ab5db67e0ad48b82d8a0476b99c377fdb">AttributeListType</a> &amp;&nbsp;</td>
<td class="paramname"> <em>atts</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">XalanFileLoc&nbsp;</td>
<td class="paramname"> <em>lineNumber</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">XalanFileLoc&nbsp;</td>
<td class="paramname"> <em>columnNumber</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Construct an object corresponding to an "xsl:if" element. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>constructionContext</em>&nbsp;</td><td>context for construction of object </td></tr>
<tr><td valign="top"></td><td valign="top"><em>stylesheetTree</em>&nbsp;</td><td>stylesheet containing element </td></tr>
<tr><td valign="top"></td><td valign="top"><em>atts</em>&nbsp;</td><td>list of attributes for element </td></tr>
<tr><td valign="top"></td><td valign="top"><em>lineNumber</em>&nbsp;</td><td>line number in document </td></tr>
<tr><td valign="top"></td><td valign="top"><em>columnNumber</em>&nbsp;</td><td>column number in document </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="af389e2a3bd485216e5d1048e51bf317b"></a><!-- doxytag: member="ElemIf::endElement" ref="af389e2a3bd485216e5d1048e51bf317b" args="(StylesheetExecutionContext &amp;executionContext) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void ElemIf::endElement </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>executionContext</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Completes "post-processing" afer any sub-elements are invoked (i.e. </p>
<p>children, attribute sets and templates). If there are no sub-elements it does nothing</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>executionContext</em>&nbsp;</td><td>context to execute this element </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented from <a class="el" href="classElemTemplateElement.html#aa4fdafe3998e32c8faef569d5c76dc3c">ElemTemplateElement</a>.</p>
</div>
</div>
<a class="anchor" id="acd763c05ba89da9a72b90cd13701e6b6"></a><!-- doxytag: member="ElemIf::getElementName" ref="acd763c05ba89da9a72b90cd13701e6b6" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classXalanDOMString.html">XalanDOMString</a>&amp; ElemIf::getElementName </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get a string for the name of the element. </p>
<p>Useful for debugging purposes, and error reporting.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A string containing the name of the element. </dd></dl>
<p>Implements <a class="el" href="classElemTemplateElement.html#a781239726cc49828a0a493f1d47ee60e">ElemTemplateElement</a>.</p>
</div>
</div>
<a class="anchor" id="a7a01ffff0b78bf537cb26a41e7acac8f"></a><!-- doxytag: member="ElemIf::getXPath" ref="a7a01ffff0b78bf537cb26a41e7acac8f" args="(XalanSize_t index) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classXPath.html">XPath</a>* ElemIf::getXPath </td>
<td>(</td>
<td class="paramtype">XalanSize_t&nbsp;</td>
<td class="paramname"> <em>index</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get <a class="el" href="classXPath.html">XPath</a> pattern/expression of one of the element atribute. </p>
<p>number of the attribute. If an attribute has more then one attribute with pattern/expression,the order of the returned expressions are undefined</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>pointer or null </dd></dl>
<p>Reimplemented from <a class="el" href="classElemTemplateElement.html#a851fb1e059af9727c212661de87536c4">ElemTemplateElement</a>.</p>
</div>
</div>
<a class="anchor" id="afbac0811b9b324054fac3ebeccc30bf2"></a><!-- doxytag: member="ElemIf::startElement" ref="afbac0811b9b324054fac3ebeccc30bf2" args="(StylesheetExecutionContext &amp;executionContext) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classElemTemplateElement.html">ElemTemplateElement</a>* ElemIf::startElement </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a> &amp;&nbsp;</td>
<td class="paramname"> <em>executionContext</em></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Completes "pre-processing" before any sub-elements are invoked (i.e. </p>
<p>children, attribute sets and templates). If there are no sub-elements it executes the primary function of the element.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>executionContext</em>&nbsp;</td><td>context to execute this element </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented from <a class="el" href="classElemTemplateElement.html#a07944df95cd470ad8b3283f307bb9caf">ElemTemplateElement</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="ElemIf_8hpp_source.html">ElemIf.hpp</a></li>
</ul>
</div>
<p align="center"><a href="graph_legend.html">Interpreting class diagrams</a></p>
<p><font color="#000000" face="arial,helvetica,sanserif" size="-1">
<i><a href="http://www.doxygen.org/">Doxygen</a> and
<a href="http://www.graphviz.org/">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="80%">
<tr>
<td width="80%" valign="top">
<p align="center"><b>Xalan-C++ XSLT Processor Version 1.11</b><br/>
Copyright &copy; 1999-2012 The Apache Software Foundation.<br/>
All Rights Reserved.</p>
</td>
</tr>
<tr>
<td width="100%">
<p align="center"><img src="asf_logo_wide.gif" width="268" height="25" align="bottom" border="0" alt="Apache Logo">
</td>
</tr>
</table>
</body>
</html>