source: NonGTP/Xerces/xerces/doc/html/apiDocs/classAttributeList.html @ 358

Revision 358, 29.7 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1<HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>AttributeList class Reference</TITLE><link href="XercesApi.css" rel="stylesheet" type="text/css"></HEAD><BODY alink="#ff0000" bgcolor="#ffffff" leftmargin="4" link="#0000ff" marginheight="4" marginwidth="4" text="#000000" topmargin="4" vlink="#0000aa"><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" height="60" rowspan="3" valign="top" width="135"><IMG border="0" height="60" hspace="0" src="../resources/logo.gif" vspace="0" width="135"></TD><TD align="left" colspan="4" height="5" valign="top" width="456"><IMG border="0" height="5" hspace="0" src="../resources/line.gif" vspace="0" width="456"></TD><TD align="left" height="60" rowspan="3" valign="top" width="29"><IMG border="0" height="60" hspace="0" src="../resources/right.gif" vspace="0" width="29"></TD></TR><TR><TD align="left" bgcolor="#0086b2" colspan="4" height="35" valign="top" width="456"><IMG alt="" border="0" height="35" hspace="0" src="../graphics/api-header.jpg" vspace="0" width="456"></TD></TR><TR><TD align="left" height="20" valign="top" width="168"><IMG border="0" height="20" hspace="0" src="../resources/bottom.gif" vspace="0" width="168"></TD><TD align="left" height="20" valign="top" width="96"><A href="http://xml.apache.org/" onMouseOut="rolloverOff('xml');" onMouseOver="rolloverOn('xml');" target="new"><IMG alt="http://xml.apache.org/" border="0" height="20" hspace="0" name="xml" onLoad="rolloverLoad('xml','../resources/button-xml-hi.gif','../resources/button-xml-lo.gif');" src="../resources/button-xml-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.apache.org/" onMouseOut="rolloverOff('asf');" onMouseOver="rolloverOn('asf');" target="new"><IMG alt="http://www.apache.org/" border="0" height="20" hspace="0" name="asf" onLoad="rolloverLoad('asf','../resources/button-asf-hi.gif','../resources/button-asf-lo.gif');" src="../resources/button-asf-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.w3.org/" onMouseOut="rolloverOff('w3c');" onMouseOver="rolloverOn('w3c');" target="new"><IMG alt="http://www.w3.org/" border="0" height="20" hspace="0" name="w3c" onLoad="rolloverLoad('w3c','../resources/button-w3c-hi.gif','../resources/button-w3c-lo.gif');" src="../resources/button-w3c-lo.gif" vspace="0" width="96"></A></TD></TR></TABLE><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" valign="top" width="120"><IMG border="0" height="14" hspace="0" src="../resources/join.gif" vspace="0" width="120"><BR>
2  <A href="../../index.html" onMouseOut="rolloverOff('side-ext-2');" onMouseOver="rolloverOn('side-ext-2');"><IMG alt="Home" border="0" height="12" hspace="0" name="side-ext-2" onLoad="rolloverLoad('side-ext-2','../graphics/ext-2-label-2.jpg','../graphics/ext-2-label-3.jpg');" src="../graphics/ext-2-label-3.jpg" vspace="0" width="120"></A><BR>
3
4  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
5
6  <A href="../index.html" onMouseOut="rolloverOff('side-index');" onMouseOver="rolloverOn('side-index');"><IMG alt="Readme" border="0" height="12" hspace="0" name="side-index" onLoad="rolloverLoad('side-index','../graphics/index-label-2.jpg','../graphics/index-label-3.jpg');" src="../graphics/index-label-3.jpg" vspace="0" width="120"></A><BR>
7  <A href="../releases.html" onMouseOut="rolloverOff('side-releases');" onMouseOver="rolloverOn('side-releases');"><IMG alt="Release Info" border="0" height="12" hspace="0" name="side-releases" onLoad="rolloverLoad('side-releases','../graphics/releases-label-2.jpg','../graphics/releases-label-3.jpg');" src="../graphics/releases-label-3.jpg" vspace="0" width="120"></A><BR>
8  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
9  <A href="../install.html" onMouseOut="rolloverOff('side-install');" onMouseOver="rolloverOn('side-install');"><IMG alt="Installation" border="0" height="12" hspace="0" name="side-install" onLoad="rolloverLoad('side-install','../graphics/install-label-2.jpg','../graphics/install-label-3.jpg');" src="../graphics/install-label-3.jpg" vspace="0" width="120"></A><BR>
10  <A href="http://xml.apache.org/dist/xerces-c/" onMouseOut="rolloverOff('side-ext-18');" onMouseOver="rolloverOn('side-ext-18');"><IMG alt="Download" border="0" height="12" hspace="0" name="side-ext-18" onLoad="rolloverLoad('side-ext-18','../graphics/ext-18-label-2.jpg','../graphics/ext-18-label-3.jpg');" src="../graphics/ext-18-label-3.jpg" vspace="0" width="120"></A><BR>
11  <A href="../build.html" onMouseOut="rolloverOff('side-build');" onMouseOver="rolloverOn('side-build');"><IMG alt="Build" border="0" height="12" hspace="0" name="side-build" onLoad="rolloverLoad('side-build','../graphics/build-label-2.jpg','../graphics/build-label-3.jpg');" src="../graphics/build-label-3.jpg" vspace="0" width="120"></A><BR>
12
13  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
14  <A href="../faqs.html" onMouseOut="rolloverOff('side-faqs');" onMouseOver="rolloverOn('side-faqs');"><IMG alt="FAQs" border="0" height="12" hspace="0" name="side-faqs" onLoad="rolloverLoad('side-faqs','../graphics/faqs-label-2.jpg','../graphics/faqs-label-3.jpg');" src="../graphics/faqs-label-3.jpg" vspace="0" width="120"></A><BR> 
15  <A href="../samples.html" onMouseOut="rolloverOff('side-samples');" onMouseOver="rolloverOn('side-samples');"><IMG alt="Samples" border="0" height="12" hspace="0" name="side-samples" onLoad="rolloverLoad('side-samples','../graphics/samples-label-2.jpg','../graphics/samples-label-3.jpg');" src="../graphics/samples-label-3.jpg" vspace="0" width="120"></A><BR>
16  <A href="../api.html" onMouseOut="rolloverOff('side-api');" onMouseOver="rolloverOn('side-api');"><IMG alt="API Docs" border="0" height="12" hspace="0" name="side-api" onLoad="rolloverLoad('side-api','../graphics/api-label-2.jpg','../graphics/api-label-3.jpg');" src="../graphics/api-label-3.jpg" vspace="0" width="120"></A><BR> 
17
18  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR> 
19  <A href="../ApacheDOMC++Binding.html" onMouseOut="rolloverOff('side-ext-68');" onMouseOver="rolloverOn('side-ext-68');"><IMG alt="DOM C++ Binding" border="0" height="12" hspace="0" name="side-ext-68" onLoad="rolloverLoad('side-ext-68','../graphics/ext-68-label-2.jpg','../graphics/ext-68-label-3.jpg');" src="../graphics/ext-68-label-3.jpg" vspace="0" width="120"></A><BR>
20
21  <A href="../program.html" onMouseOut="rolloverOff('side-program');" onMouseOver="rolloverOn('side-program');"><IMG alt="Programming" border="0" height="12" hspace="0" name="side-program" onLoad="rolloverLoad('side-program','../graphics/program-label-2.jpg','../graphics/program-label-3.jpg');" src="../graphics/program-label-3.jpg" vspace="0" width="120"></A><BR>
22  <A href="../migrate.html" onMouseOut="rolloverOff('side-migrate');" onMouseOver="rolloverOn('side-migrate');"><IMG alt="Migration Guide" border="0" height="12" hspace="0" name="side-migrate" onLoad="rolloverLoad('side-migrate','../graphics/migrate-label-2.jpg','../graphics/migrate-label-3.jpg');" src="../graphics/migrate-label-3.jpg" vspace="0" width="120"></A><BR>
23
24  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
25
26  <A href="../feedback.html" onMouseOut="rolloverOff('side-feedback');" onMouseOver="rolloverOn('side-feedback');"><IMG alt="Feedback" border="0" height="12" hspace="0" name="side-feedback" onLoad="rolloverLoad('side-feedback','../graphics/feedback-label-2.jpg','../graphics/feedback-label-3.jpg');" src="../graphics/feedback-label-3.jpg" vspace="0" width="120"></A><BR>
27  <A href="../bug-report.html" onMouseOut="rolloverOff('side-bug-report');" onMouseOver="rolloverOn('side-bug-report');"><IMG alt="Bug-Reporting" border="0" height="12" hspace="0" name="side-bug-report" onLoad="rolloverLoad('side-bug-report','../graphics/bug-report-label-2.jpg','../graphics/bug-report-label-3.jpg');" src="../graphics/bug-report-label-3.jpg" vspace="0" width="120"></A><BR> 
28  <A href="../pdf.html" onMouseOut="rolloverOff('side-pdf');" onMouseOver="rolloverOn('side-pdf');"><IMG alt="PDF Document" border="0" height="12" hspace="0" name="side-pdf" onLoad="rolloverLoad('side-pdf','../graphics/pdf-label-2.jpg','../graphics/pdf-label-3.jpg');" src="../graphics/pdf-label-3.jpg" vspace="0" width="120"></A><BR>
29
30  <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
31
32  <A href="http://xml.apache.org/websrc/cvsweb.cgi/xml-xerces/c/" onMouseOut="rolloverOff('side-ext-100');" onMouseOver="rolloverOn('side-ext-100');"><IMG alt="CVS Repository" border="0" height="12" hspace="0" name="side-ext-100" onLoad="rolloverLoad('side-ext-100','../graphics/ext-100-label-2.jpg','../graphics/ext-100-label-3.jpg');" src="../graphics/ext-100-label-3.jpg" vspace="0" width="120"></A><BR>
33
34  <A href="http://marc.theaimsgroup.com/?l=xerces-c-dev" onMouseOut="rolloverOff('side-ext-102');" onMouseOver="rolloverOn('side-ext-102');"><IMG alt="Mail Archive" border="0" height="12" hspace="0" name="side-ext-102" onLoad="rolloverLoad('side-ext-102','../graphics/ext-102-label-2.jpg','../graphics/ext-102-label-3.jpg');" src="../graphics/ext-102-label-3.jpg" vspace="0" width="120"></A><BR>
35
36
37<IMG border="0" height="14" hspace="0" src="../resources/close.gif" vspace="0" width="120"><BR></TD><TD align="left" valign="top" width="500"><TABLE border="0" cellpadding="3" cellspacing="0"><TR><TD>
38    <TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#FFFFFF" colspan="2" width="494"><TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#039acc" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#039acc" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#039acc" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#0086b2" width="492"><FONT color="#ffffff" face="arial,helvetica,sanserif" size="+1"><IMG border="0" height="2" hspace="0" src="../resources/void.gif" vspace="0" width="2"><B>API Docs for SAX and DOM</B></FONT></TD><TD bgcolor="#017299" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#017299" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#017299" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></TD></TR><TR><TD width="10">&nbsp;</TD><TD width="484"><FONT color="#000000" face="arial,helvetica,sanserif">
39
40            <P>
41<!-- Generated by Doxygen 1.2.14 -->
42<center>
43<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
44<hr><h1>AttributeList  Class Reference</h1>Interface for an element's attribute specifications.
45<a href="#_details">More...</a>
46<p>
47<a href="classAttributeList-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
48<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
49<tr><td colspan="2"><div class="groupHeader">Constructors and Destructor</div></td></tr>
50<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classAttributeList.html#z418_0">AttributeList</a> ()</td></tr>
51<tr><td>&nbsp;</td><td><font size=-1><em>Default constructor.</em> <a href="#z418_0">More...</a><em></em></font><br><br></td></tr>
52<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classAttributeList.html#z418_1">~AttributeList</a> ()</td></tr>
53<tr><td>&nbsp;</td><td><font size=-1><em>Destructor.</em> <a href="#z418_1">More...</a><em></em></font><br><br></td></tr>
54<tr><td colspan="2"><div class="groupHeader">The virtual attribute list interface</div></td></tr>
55<tr><td nowrap align=right valign=top>virtual unsigned int&nbsp;</td><td valign=bottom><a class="el" href="classAttributeList.html#z419_0">getLength</a> () const=0</td></tr>
56<tr><td>&nbsp;</td><td><font size=-1><em>Return the number of attributes in this list.</em> <a href="#z419_0">More...</a><em></em></font><br><br></td></tr>
57<tr><td nowrap align=right valign=top>virtual const XMLCh *&nbsp;</td><td valign=bottom><a class="el" href="classAttributeList.html#z419_1">getName</a> (const unsigned int index) const=0</td></tr>
58<tr><td>&nbsp;</td><td><font size=-1><em>Return the name of an attribute in this list (by position).</em> <a href="#z419_1">More...</a><em></em></font><br><br></td></tr>
59<tr><td nowrap align=right valign=top>virtual const XMLCh *&nbsp;</td><td valign=bottom><a class="el" href="classAttributeList.html#z419_2">getType</a> (const unsigned int index) const=0</td></tr>
60<tr><td>&nbsp;</td><td><font size=-1><em>Return the type of an attribute in the list (by position).</em> <a href="#z419_2">More...</a><em></em></font><br><br></td></tr>
61<tr><td nowrap align=right valign=top>virtual const XMLCh *&nbsp;</td><td valign=bottom><a class="el" href="classAttributeList.html#z419_3">getValue</a> (const unsigned int index) const=0</td></tr>
62<tr><td>&nbsp;</td><td><font size=-1><em>Return the value of an attribute in the list (by position).</em> <a href="#z419_3">More...</a><em></em></font><br><br></td></tr>
63<tr><td nowrap align=right valign=top>virtual const XMLCh *&nbsp;</td><td valign=bottom><a class="el" href="classAttributeList.html#z419_4">getType</a> (const XMLCh *const name) const=0</td></tr>
64<tr><td>&nbsp;</td><td><font size=-1><em>Return the type of an attribute in the list (by name).</em> <a href="#z419_4">More...</a><em></em></font><br><br></td></tr>
65<tr><td nowrap align=right valign=top>virtual const XMLCh *&nbsp;</td><td valign=bottom><a class="el" href="classAttributeList.html#z419_5">getValue</a> (const XMLCh *const name) const=0</td></tr>
66<tr><td>&nbsp;</td><td><font size=-1><em>Return the value of an attribute in the list (by name).</em> <a href="#z419_5">More...</a><em></em></font><br><br></td></tr>
67<tr><td nowrap align=right valign=top>virtual const XMLCh *&nbsp;</td><td valign=bottom><a class="el" href="classAttributeList.html#z419_6">getValue</a> (const char *const name) const=0</td></tr>
68<tr><td>&nbsp;</td><td><font size=-1><em>Return the value of an attribute in the list (by name).</em> <a href="#z419_6">More...</a><em></em></font><br><br></td></tr>
69</table>
70<hr><a name="_details"></a><h2>Detailed Description</h2>
71Interface for an element's attribute specifications.
72<p>
73The SAX parser implements this interface and passes an instance to the SAX application as the second argument of each startElement event.
74<p>
75The instance provided will return valid results only during the scope of the startElement invocation (to save it for future use, the application must make a copy: the AttributeListImpl helper class provides a convenient constructor for doing so).
76<p>
77An AttributeList includes only attributes that have been specified or defaulted: IMPLIED attributes will not be included.
78<p>
79There are two ways for the SAX application to obtain information from the AttributeList. First, it can iterate through the entire list:
80<p>
81<code> public void startElement (String name, AttributeList atts) {<br>
82 &nbsp;for (int i = 0; i &lt; atts.getLength(); i++) {<br>
83 &nbsp;&nbsp;String name = atts.getName(i);<br>
84 &nbsp;&nbsp;String type = atts.getType(i);<br>
85 &nbsp;&nbsp;String value = atts.getValue(i);<br>
86 &nbsp;&nbsp;[...]<br>
87 &nbsp;}<br>
88 } </code>
89<p>
90(Note that the result of <a class="el" href="classAttributeList.html#z419_0">getLength</a>() will be zero if there are no attributes.)
91<p>
92As an alternative, the application can request the value or type of specific attributes:
93<p>
94<code> public void startElement (String name, AttributeList atts) {<br>
95 &nbsp;String identifier = atts.getValue("id");<br>
96 &nbsp;String label = atts.getValue("label");<br>
97 &nbsp;[...]<br>
98 } </code>
99<p>
100The AttributeListImpl helper class provides a convenience implementation for use by parser or application writers.
101<p>
102<dl compact><dt><b>
103See also: </b><dd>
104<a class="el" href="classDocumentHandler.html#z421_8">DocumentHandler::startElement</a> , AttributeListImpl::AttributeListImpl </dl>
105<p>
106<hr><h2>Constructor &amp; Destructor Documentation</h2>
107<a name="z418_0" doxytag="AttributeList::AttributeList"></a><p>
108<table width="100%" cellpadding="2" cellspacing="0" border="0">
109  <tr>
110    <td class="md">
111      <table cellpadding="0" cellspacing="0" border="0">
112        <tr>
113          <td class="md" nowrap valign="top"> AttributeList::AttributeList </td>
114          <td class="md" valign="top">(&nbsp;</td>
115          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
116          <td class="md" valign="top">)&nbsp;</td>
117          <td class="md" nowrap></td>
118        </tr>
119
120      </table>
121    </td>
122  </tr>
123</table>
124<table cellspacing=5 cellpadding=0 border=0>
125  <tr>
126    <td>
127      &nbsp;
128    </td>
129    <td>
130
131<p>
132Default constructor.
133<p>
134    </td>
135  </tr>
136</table>
137<a name="z418_1" doxytag="AttributeList::~AttributeList"></a><p>
138<table width="100%" cellpadding="2" cellspacing="0" border="0">
139  <tr>
140    <td class="md">
141      <table cellpadding="0" cellspacing="0" border="0">
142        <tr>
143          <td class="md" nowrap valign="top"> virtual AttributeList::~AttributeList </td>
144          <td class="md" valign="top">(&nbsp;</td>
145          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
146          <td class="md" valign="top">)&nbsp;</td>
147          <td class="md" nowrap><code> [virtual]</code></td>
148        </tr>
149
150      </table>
151    </td>
152  </tr>
153</table>
154<table cellspacing=5 cellpadding=0 border=0>
155  <tr>
156    <td>
157      &nbsp;
158    </td>
159    <td>
160
161<p>
162Destructor.
163<p>
164    </td>
165  </tr>
166</table>
167<hr><h2>Member Function Documentation</h2>
168<a name="z419_0" doxytag="AttributeList::getLength"></a><p>
169<table width="100%" cellpadding="2" cellspacing="0" border="0">
170  <tr>
171    <td class="md">
172      <table cellpadding="0" cellspacing="0" border="0">
173        <tr>
174          <td class="md" nowrap valign="top"> virtual unsigned int AttributeList::getLength </td>
175          <td class="md" valign="top">(&nbsp;</td>
176          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
177          <td class="md" valign="top">)&nbsp;</td>
178          <td class="md" nowrap> const<code> [pure virtual]</code></td>
179        </tr>
180
181      </table>
182    </td>
183  </tr>
184</table>
185<table cellspacing=5 cellpadding=0 border=0>
186  <tr>
187    <td>
188      &nbsp;
189    </td>
190    <td>
191
192<p>
193Return the number of attributes in this list.
194<p>
195The SAX parser may provide attributes in any arbitrary order, regardless of the order in which they were declared or specified. The number of attributes may be zero.
196<p>
197<dl compact><dt><b>
198Returns: </b><dd>
199The number of attributes in the list. </dl>    </td>
200  </tr>
201</table>
202<a name="z419_1" doxytag="AttributeList::getName"></a><p>
203<table width="100%" cellpadding="2" cellspacing="0" border="0">
204  <tr>
205    <td class="md">
206      <table cellpadding="0" cellspacing="0" border="0">
207        <tr>
208          <td class="md" nowrap valign="top"> virtual const XMLCh* AttributeList::getName </td>
209          <td class="md" valign="top">(&nbsp;</td>
210          <td class="md" nowrap valign="top">const unsigned int&nbsp;</td>
211          <td class="mdname1" valign="top" nowrap>&nbsp; <em>index</em>          </td>
212          <td class="md" valign="top">)&nbsp;</td>
213          <td class="md" nowrap> const<code> [pure virtual]</code></td>
214        </tr>
215
216      </table>
217    </td>
218  </tr>
219</table>
220<table cellspacing=5 cellpadding=0 border=0>
221  <tr>
222    <td>
223      &nbsp;
224    </td>
225    <td>
226
227<p>
228Return the name of an attribute in this list (by position).
229<p>
230The names must be unique: the SAX parser shall not include the same attribute twice. <a class="el" href="classAttributes.html">Attributes</a> without values (those declared IMPLIED without a value specified in the start tag) will be omitted from the list.
231<p>
232If the attribute name has a namespace prefix, the prefix will still be attached.<dl compact><dt><b>
233Parameters: </b><dd>
234<table border=0 cellspacing=2 cellpadding=0>
235<tr><td valign=top><em>index</em>&nbsp;</td><td>
236The index of the attribute in the list (starting at 0). </td></tr>
237</table>
238</dl><dl compact><dt><b>
239Returns: </b><dd>
240The name of the indexed attribute, or null if the index is out of range. </dl><dl compact><dt><b>
241See also: </b><dd>
242<a class="el" href="classAttributeList.html#z419_0">getLength</a> </dl>    </td>
243  </tr>
244</table>
245<a name="z419_4" doxytag="AttributeList::getType"></a><p>
246<table width="100%" cellpadding="2" cellspacing="0" border="0">
247  <tr>
248    <td class="md">
249      <table cellpadding="0" cellspacing="0" border="0">
250        <tr>
251          <td class="md" nowrap valign="top"> virtual const XMLCh* AttributeList::getType </td>
252          <td class="md" valign="top">(&nbsp;</td>
253          <td class="md" nowrap valign="top">const XMLCh *const&nbsp;</td>
254          <td class="mdname1" valign="top" nowrap>&nbsp; <em>name</em>          </td>
255          <td class="md" valign="top">)&nbsp;</td>
256          <td class="md" nowrap> const<code> [pure virtual]</code></td>
257        </tr>
258
259      </table>
260    </td>
261  </tr>
262</table>
263<table cellspacing=5 cellpadding=0 border=0>
264  <tr>
265    <td>
266      &nbsp;
267    </td>
268    <td>
269
270<p>
271Return the type of an attribute in the list (by name).
272<p>
273The return value is the same as the return value for getType(int).
274<p>
275If the attribute name has a namespace prefix in the document, the application must include the prefix here.<dl compact><dt><b>
276Parameters: </b><dd>
277<table border=0 cellspacing=2 cellpadding=0>
278<tr><td valign=top><em>name</em>&nbsp;</td><td>
279The name of the attribute. </td></tr>
280</table>
281</dl><dl compact><dt><b>
282Returns: </b><dd>
283The attribute type as a string, or null if no such attribute exists. </dl><dl compact><dt><b>
284See also: </b><dd>
285getType(int) </dl>    </td>
286  </tr>
287</table>
288<a name="z419_2" doxytag="AttributeList::getType"></a><p>
289<table width="100%" cellpadding="2" cellspacing="0" border="0">
290  <tr>
291    <td class="md">
292      <table cellpadding="0" cellspacing="0" border="0">
293        <tr>
294          <td class="md" nowrap valign="top"> virtual const XMLCh* AttributeList::getType </td>
295          <td class="md" valign="top">(&nbsp;</td>
296          <td class="md" nowrap valign="top">const unsigned int&nbsp;</td>
297          <td class="mdname1" valign="top" nowrap>&nbsp; <em>index</em>          </td>
298          <td class="md" valign="top">)&nbsp;</td>
299          <td class="md" nowrap> const<code> [pure virtual]</code></td>
300        </tr>
301
302      </table>
303    </td>
304  </tr>
305</table>
306<table cellspacing=5 cellpadding=0 border=0>
307  <tr>
308    <td>
309      &nbsp;
310    </td>
311    <td>
312
313<p>
314Return the type of an attribute in the list (by position).
315<p>
316The attribute type is one of the strings "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION" (always in upper case).
317<p>
318If the parser has not read a declaration for the attribute, or if the parser does not report attribute types, then it must return the value "CDATA" as stated in the XML 1.0 Recommentation (clause 3.3.3, "Attribute-Value Normalization").
319<p>
320For an enumerated attribute that is not a notation, the parser will report the type as "NMTOKEN".<dl compact><dt><b>
321Parameters: </b><dd>
322<table border=0 cellspacing=2 cellpadding=0>
323<tr><td valign=top><em>index</em>&nbsp;</td><td>
324The index of the attribute in the list (starting at 0). </td></tr>
325</table>
326</dl><dl compact><dt><b>
327Returns: </b><dd>
328The attribute type as a string, or null if the index is out of range. </dl><dl compact><dt><b>
329See also: </b><dd>
330<a class="el" href="classAttributeList.html#z419_0">getLength</a> , getType(String) </dl>    </td>
331  </tr>
332</table>
333<a name="z419_6" doxytag="AttributeList::getValue"></a><p>
334<table width="100%" cellpadding="2" cellspacing="0" border="0">
335  <tr>
336    <td class="md">
337      <table cellpadding="0" cellspacing="0" border="0">
338        <tr>
339          <td class="md" nowrap valign="top"> virtual const XMLCh* AttributeList::getValue </td>
340          <td class="md" valign="top">(&nbsp;</td>
341          <td class="md" nowrap valign="top">const char *const&nbsp;</td>
342          <td class="mdname1" valign="top" nowrap>&nbsp; <em>name</em>          </td>
343          <td class="md" valign="top">)&nbsp;</td>
344          <td class="md" nowrap> const<code> [pure virtual]</code></td>
345        </tr>
346
347      </table>
348    </td>
349  </tr>
350</table>
351<table cellspacing=5 cellpadding=0 border=0>
352  <tr>
353    <td>
354      &nbsp;
355    </td>
356    <td>
357
358<p>
359Return the value of an attribute in the list (by name).
360<p>
361The return value is the same as the return value for getValue(int).
362<p>
363If the attribute name has a namespace prefix in the document, the application must include the prefix here.<dl compact><dt><b>
364Parameters: </b><dd>
365<table border=0 cellspacing=2 cellpadding=0>
366<tr><td valign=top><em>name</em>&nbsp;</td><td>
367The name of the attribute in the list. </td></tr>
368</table>
369</dl><dl compact><dt><b>
370Returns: </b><dd>
371The attribute value as a string, or null if no such attribute exists. </dl><dl compact><dt><b>
372See also: </b><dd>
373getValue(int) , getValue(XMLCh*) </dl>    </td>
374  </tr>
375</table>
376<a name="z419_5" doxytag="AttributeList::getValue"></a><p>
377<table width="100%" cellpadding="2" cellspacing="0" border="0">
378  <tr>
379    <td class="md">
380      <table cellpadding="0" cellspacing="0" border="0">
381        <tr>
382          <td class="md" nowrap valign="top"> virtual const XMLCh* AttributeList::getValue </td>
383          <td class="md" valign="top">(&nbsp;</td>
384          <td class="md" nowrap valign="top">const XMLCh *const&nbsp;</td>
385          <td class="mdname1" valign="top" nowrap>&nbsp; <em>name</em>          </td>
386          <td class="md" valign="top">)&nbsp;</td>
387          <td class="md" nowrap> const<code> [pure virtual]</code></td>
388        </tr>
389
390      </table>
391    </td>
392  </tr>
393</table>
394<table cellspacing=5 cellpadding=0 border=0>
395  <tr>
396    <td>
397      &nbsp;
398    </td>
399    <td>
400
401<p>
402Return the value of an attribute in the list (by name).
403<p>
404The return value is the same as the return value for getValue(int).
405<p>
406If the attribute name has a namespace prefix in the document, the application must include the prefix here.<dl compact><dt><b>
407Parameters: </b><dd>
408<table border=0 cellspacing=2 cellpadding=0>
409<tr><td valign=top><em>name</em>&nbsp;</td><td>
410The name of the attribute in the list. </td></tr>
411</table>
412</dl><dl compact><dt><b>
413Returns: </b><dd>
414The attribute value as a string, or null if no such attribute exists. </dl><dl compact><dt><b>
415See also: </b><dd>
416getValue(int) , getValue(char *) </dl>    </td>
417  </tr>
418</table>
419<a name="z419_3" doxytag="AttributeList::getValue"></a><p>
420<table width="100%" cellpadding="2" cellspacing="0" border="0">
421  <tr>
422    <td class="md">
423      <table cellpadding="0" cellspacing="0" border="0">
424        <tr>
425          <td class="md" nowrap valign="top"> virtual const XMLCh* AttributeList::getValue </td>
426          <td class="md" valign="top">(&nbsp;</td>
427          <td class="md" nowrap valign="top">const unsigned int&nbsp;</td>
428          <td class="mdname1" valign="top" nowrap>&nbsp; <em>index</em>          </td>
429          <td class="md" valign="top">)&nbsp;</td>
430          <td class="md" nowrap> const<code> [pure virtual]</code></td>
431        </tr>
432
433      </table>
434    </td>
435  </tr>
436</table>
437<table cellspacing=5 cellpadding=0 border=0>
438  <tr>
439    <td>
440      &nbsp;
441    </td>
442    <td>
443
444<p>
445Return the value of an attribute in the list (by position).
446<p>
447If the attribute value is a list of tokens (IDREFS, ENTITIES, or NMTOKENS), the tokens will be concatenated into a single string separated by whitespace.<dl compact><dt><b>
448Parameters: </b><dd>
449<table border=0 cellspacing=2 cellpadding=0>
450<tr><td valign=top><em>index</em>&nbsp;</td><td>
451The index of the attribute in the list (starting at 0). </td></tr>
452</table>
453</dl><dl compact><dt><b>
454Returns: </b><dd>
455The attribute value as a string, or null if the index is out of range. </dl><dl compact><dt><b>
456See also: </b><dd>
457<a class="el" href="classAttributeList.html#z419_0">getLength</a> , getValue(XMLCh*) , getValue(char *) </dl>    </td>
458  </tr>
459</table>
460<hr>The documentation for this class was generated from the following file:<ul>
461<li><a class="el" href="AttributeList_8hpp-source.html">AttributeList.hpp</a></ul>
462    </FONT></TD></TR></TABLE><BR>
463</TD></TR></TABLE></TD></TR></TABLE><BR><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD bgcolor="#0086b2"><IMG height="1" src="images/dot.gif" width="1" alt=""></TD></TR><TR><TD align="center"><FONT color="#0086b2" size="-1"><I>
464              Copyright &copy; 1994-2004 The Apache Software Foundation.
465              All Rights Reserved.
466            </I></FONT></TD></TR></TABLE></BODY></HTML>
Note: See TracBrowser for help on using the repository browser.