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

Revision 358, 38.9 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>Attributes 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>Attributes  Class Reference</h1>Interface for an element's attribute specifications.
45<a href="#_details">More...</a>
46<p>
47<a href="classAttributes-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="classAttributes.html#z528_0">Attributes</a> ()</td></tr>
51<tr><td>&nbsp;</td><td><font size=-1><em>Default constructor.</em> <a href="#z528_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="classAttributes.html#z528_1">~Attributes</a> ()</td></tr>
53<tr><td>&nbsp;</td><td><font size=-1><em>Destructor.</em> <a href="#z528_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="classAttributes.html#z529_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="#z529_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="classAttributes.html#z529_1">getURI</a> (const unsigned int index) const=0</td></tr>
58<tr><td>&nbsp;</td><td><font size=-1><em>Return the namespace URI of an attribute in this list (by position).</em> <a href="#z529_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="classAttributes.html#z529_2">getLocalName</a> (const unsigned int index) const=0</td></tr>
60<tr><td>&nbsp;</td><td><font size=-1><em>Return the local name of an attribute in this list (by position).</em> <a href="#z529_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="classAttributes.html#z529_3">getQName</a> (const unsigned int index) const=0</td></tr>
62<tr><td>&nbsp;</td><td><font size=-1><em>Return the qName of an attribute in this list (by position).</em> <a href="#z529_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="classAttributes.html#z529_4">getType</a> (const unsigned int index) const=0</td></tr>
64<tr><td>&nbsp;</td><td><font size=-1><em>Return the type of an attribute in the list (by position).</em> <a href="#z529_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="classAttributes.html#z529_5">getValue</a> (const unsigned int index) const=0</td></tr>
66<tr><td>&nbsp;</td><td><font size=-1><em>Return the value of an attribute in the list (by position).</em> <a href="#z529_5">More...</a><em></em></font><br><br></td></tr>
67<tr><td nowrap align=right valign=top>virtual int&nbsp;</td><td valign=bottom><a class="el" href="classAttributes.html#z529_6">getIndex</a> (const XMLCh *const uri, const XMLCh *const localPart) const=0</td></tr>
68<tr><td>&nbsp;</td><td><font size=-1><em>Look up the index of an attribute by Namespace name.</em> <a href="#z529_6">More...</a><em></em></font><br><br></td></tr>
69<tr><td nowrap align=right valign=top>virtual int&nbsp;</td><td valign=bottom><a class="el" href="classAttributes.html#z529_7">getIndex</a> (const XMLCh *const qName) const=0</td></tr>
70<tr><td>&nbsp;</td><td><font size=-1><em>Look up the index of an attribute by XML 1.0 qualified name.</em> <a href="#z529_7">More...</a><em></em></font><br><br></td></tr>
71<tr><td nowrap align=right valign=top>virtual const XMLCh *&nbsp;</td><td valign=bottom><a class="el" href="classAttributes.html#z529_8">getType</a> (const XMLCh *const uri, const XMLCh *const localPart) const=0</td></tr>
72<tr><td>&nbsp;</td><td><font size=-1><em>Look up an attribute's type by Namespace name.</em> <a href="#z529_8">More...</a><em></em></font><br><br></td></tr>
73<tr><td nowrap align=right valign=top>virtual const XMLCh *&nbsp;</td><td valign=bottom><a class="el" href="classAttributes.html#z529_9">getType</a> (const XMLCh *const qName) const=0</td></tr>
74<tr><td>&nbsp;</td><td><font size=-1><em>Look up an attribute's type by XML 1.0 qualified name.</em> <a href="#z529_9">More...</a><em></em></font><br><br></td></tr>
75<tr><td nowrap align=right valign=top>virtual const XMLCh *&nbsp;</td><td valign=bottom><a class="el" href="classAttributes.html#z529_10">getValue</a> (const XMLCh *const uri, const XMLCh *const localPart) const=0</td></tr>
76<tr><td>&nbsp;</td><td><font size=-1><em>Look up an attribute's value by Namespace name.</em> <a href="#z529_10">More...</a><em></em></font><br><br></td></tr>
77<tr><td nowrap align=right valign=top>virtual const XMLCh *&nbsp;</td><td valign=bottom><a class="el" href="classAttributes.html#z529_11">getValue</a> (const XMLCh *const qName) const=0</td></tr>
78<tr><td>&nbsp;</td><td><font size=-1><em>Look up an attribute's value by XML 1.0 qualified name.</em> <a href="#z529_11">More...</a><em></em></font><br><br></td></tr>
79</table>
80<hr><a name="_details"></a><h2>Detailed Description</h2>
81Interface for an element's attribute specifications.
82<p>
83The SAX2 parser implements this interface and passes an instance to the SAX2 application as the last argument of each startElement event.
84<p>
85The 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 AttributesImpl helper class provides a convenient constructor for doing so).
86<p>
87An Attributes includes only attributes that have been specified or defaulted: IMPLIED attributes will not be included.
88<p>
89There are two ways for the SAX application to obtain information from the Attributes. First, it can iterate through the entire list:
90<p>
91<code> public void startElement (String uri, String localpart, String qName, Attributes atts) {<br>
92 &nbsp;for (int i = 0; i &lt; atts.getLength(); i++) {<br>
93 &nbsp;&nbsp;String Qname = atts.getQName(i);<br>
94 &nbsp;&nbsp;String URI = atts.getURI(i)<br>
95 &nbsp;&nbsp;String local = atts.GetLocalName(i)<br>
96 &nbsp;&nbsp;String type = atts.getType(i);<br>
97 &nbsp;&nbsp;String value = atts.getValue(i);<br>
98 &nbsp;&nbsp;[...]<br>
99 &nbsp;}<br>
100 } </code>
101<p>
102(Note that the result of <a class="el" href="classAttributes.html#z529_0">getLength</a>() will be zero if there are no attributes.)
103<p>
104As an alternative, the application can request the value or type of specific attributes:
105<p>
106<code> public void startElement (String uri, String localpart, String qName, Attributes atts) {<br>
107 &nbsp;String identifier = atts.getValue("id");<br>
108 &nbsp;String label = atts.getValue("label");<br>
109 &nbsp;[...]<br>
110 } </code>
111<p>
112The AttributesImpl helper class provides a convenience implementation for use by parser or application writers.
113<p>
114<dl compact><dt><b>
115See also: </b><dd>
116Sax2DocumentHandler::startElement , AttributesImpl::AttributesImpl </dl>
117<p>
118<hr><h2>Constructor &amp; Destructor Documentation</h2>
119<a name="z528_0" doxytag="Attributes::Attributes"></a><p>
120<table width="100%" cellpadding="2" cellspacing="0" border="0">
121  <tr>
122    <td class="md">
123      <table cellpadding="0" cellspacing="0" border="0">
124        <tr>
125          <td class="md" nowrap valign="top"> Attributes::Attributes </td>
126          <td class="md" valign="top">(&nbsp;</td>
127          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
128          <td class="md" valign="top">)&nbsp;</td>
129          <td class="md" nowrap></td>
130        </tr>
131
132      </table>
133    </td>
134  </tr>
135</table>
136<table cellspacing=5 cellpadding=0 border=0>
137  <tr>
138    <td>
139      &nbsp;
140    </td>
141    <td>
142
143<p>
144Default constructor.
145<p>
146    </td>
147  </tr>
148</table>
149<a name="z528_1" doxytag="Attributes::~Attributes"></a><p>
150<table width="100%" cellpadding="2" cellspacing="0" border="0">
151  <tr>
152    <td class="md">
153      <table cellpadding="0" cellspacing="0" border="0">
154        <tr>
155          <td class="md" nowrap valign="top"> virtual Attributes::~Attributes </td>
156          <td class="md" valign="top">(&nbsp;</td>
157          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
158          <td class="md" valign="top">)&nbsp;</td>
159          <td class="md" nowrap><code> [virtual]</code></td>
160        </tr>
161
162      </table>
163    </td>
164  </tr>
165</table>
166<table cellspacing=5 cellpadding=0 border=0>
167  <tr>
168    <td>
169      &nbsp;
170    </td>
171    <td>
172
173<p>
174Destructor.
175<p>
176    </td>
177  </tr>
178</table>
179<hr><h2>Member Function Documentation</h2>
180<a name="z529_7" doxytag="Attributes::getIndex"></a><p>
181<table width="100%" cellpadding="2" cellspacing="0" border="0">
182  <tr>
183    <td class="md">
184      <table cellpadding="0" cellspacing="0" border="0">
185        <tr>
186          <td class="md" nowrap valign="top"> virtual int Attributes::getIndex </td>
187          <td class="md" valign="top">(&nbsp;</td>
188          <td class="md" nowrap valign="top">const XMLCh *const&nbsp;</td>
189          <td class="mdname1" valign="top" nowrap>&nbsp; <em>qName</em>          </td>
190          <td class="md" valign="top">)&nbsp;</td>
191          <td class="md" nowrap> const<code> [pure virtual]</code></td>
192        </tr>
193
194      </table>
195    </td>
196  </tr>
197</table>
198<table cellspacing=5 cellpadding=0 border=0>
199  <tr>
200    <td>
201      &nbsp;
202    </td>
203    <td>
204
205<p>
206Look up the index of an attribute by XML 1.0 qualified name.
207<p>
208<dl compact><dt><b>
209Parameters: </b><dd>
210<table border=0 cellspacing=2 cellpadding=0>
211<tr><td valign=top><em>qName</em>&nbsp;</td><td>
212The qualified (prefixed) name. </td></tr>
213</table>
214</dl><dl compact><dt><b>
215Returns: </b><dd>
216The index of the attribute, or -1 if it does not appear in the list. </dl>    </td>
217  </tr>
218</table>
219<a name="z529_6" doxytag="Attributes::getIndex"></a><p>
220<table width="100%" cellpadding="2" cellspacing="0" border="0">
221  <tr>
222    <td class="md">
223      <table cellpadding="0" cellspacing="0" border="0">
224        <tr>
225          <td class="md" nowrap valign="top"> virtual int Attributes::getIndex </td>
226          <td class="md" valign="top">(&nbsp;</td>
227          <td class="md" nowrap valign="top">const XMLCh *const&nbsp;</td>
228          <td class="mdname" nowrap>&nbsp; <em>uri</em>, </td>
229        </tr>
230        <tr>
231          <td></td>
232          <td></td>
233          <td class="md" nowrap>const XMLCh *const&nbsp;</td>
234          <td class="mdname" nowrap>&nbsp; <em>localPart</em></td>
235        </tr>
236        <tr>
237          <td></td>
238          <td class="md">)&nbsp;</td>
239          <td class="md" colspan="2"> const<code> [pure virtual]</code></td>
240        </tr>
241
242      </table>
243    </td>
244  </tr>
245</table>
246<table cellspacing=5 cellpadding=0 border=0>
247  <tr>
248    <td>
249      &nbsp;
250    </td>
251    <td>
252
253<p>
254Look up the index of an attribute by Namespace name.
255<p>
256<dl compact><dt><b>
257Parameters: </b><dd>
258<table border=0 cellspacing=2 cellpadding=0>
259<tr><td valign=top><em>uri</em>&nbsp;</td><td>
260The Namespace URI, or the empty string if the name has no Namespace URI. </td></tr>
261<tr><td valign=top><em>localPart</em>&nbsp;</td><td>
262The attribute's local name. </td></tr>
263</table>
264</dl><dl compact><dt><b>
265Returns: </b><dd>
266The index of the attribute, or -1 if it does not appear in the list. </dl>    </td>
267  </tr>
268</table>
269<a name="z529_0" doxytag="Attributes::getLength"></a><p>
270<table width="100%" cellpadding="2" cellspacing="0" border="0">
271  <tr>
272    <td class="md">
273      <table cellpadding="0" cellspacing="0" border="0">
274        <tr>
275          <td class="md" nowrap valign="top"> virtual unsigned int Attributes::getLength </td>
276          <td class="md" valign="top">(&nbsp;</td>
277          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
278          <td class="md" valign="top">)&nbsp;</td>
279          <td class="md" nowrap> const<code> [pure virtual]</code></td>
280        </tr>
281
282      </table>
283    </td>
284  </tr>
285</table>
286<table cellspacing=5 cellpadding=0 border=0>
287  <tr>
288    <td>
289      &nbsp;
290    </td>
291    <td>
292
293<p>
294Return the number of attributes in this list.
295<p>
296The 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.
297<p>
298<dl compact><dt><b>
299Returns: </b><dd>
300The number of attributes in the list. </dl>    </td>
301  </tr>
302</table>
303<a name="z529_2" doxytag="Attributes::getLocalName"></a><p>
304<table width="100%" cellpadding="2" cellspacing="0" border="0">
305  <tr>
306    <td class="md">
307      <table cellpadding="0" cellspacing="0" border="0">
308        <tr>
309          <td class="md" nowrap valign="top"> virtual const XMLCh* Attributes::getLocalName </td>
310          <td class="md" valign="top">(&nbsp;</td>
311          <td class="md" nowrap valign="top">const unsigned int&nbsp;</td>
312          <td class="mdname1" valign="top" nowrap>&nbsp; <em>index</em>          </td>
313          <td class="md" valign="top">)&nbsp;</td>
314          <td class="md" nowrap> const<code> [pure virtual]</code></td>
315        </tr>
316
317      </table>
318    </td>
319  </tr>
320</table>
321<table cellspacing=5 cellpadding=0 border=0>
322  <tr>
323    <td>
324      &nbsp;
325    </td>
326    <td>
327
328<p>
329Return the local name of an attribute in this list (by position).
330<p>
331The QNames must be unique: the SAX parser shall not include the same attribute twice. Attributes without values (those declared IMPLIED without a value specified in the start tag) will be omitted from the list.<dl compact><dt><b>
332Parameters: </b><dd>
333<table border=0 cellspacing=2 cellpadding=0>
334<tr><td valign=top><em>index</em>&nbsp;</td><td>
335The index of the attribute in the list (starting at 0). </td></tr>
336</table>
337</dl><dl compact><dt><b>
338Returns: </b><dd>
339The local name of the indexed attribute, or null if the index is out of range. </dl><dl compact><dt><b>
340See also: </b><dd>
341<a class="el" href="classAttributes.html#z529_0">getLength</a> </dl>    </td>
342  </tr>
343</table>
344<a name="z529_3" doxytag="Attributes::getQName"></a><p>
345<table width="100%" cellpadding="2" cellspacing="0" border="0">
346  <tr>
347    <td class="md">
348      <table cellpadding="0" cellspacing="0" border="0">
349        <tr>
350          <td class="md" nowrap valign="top"> virtual const XMLCh* Attributes::getQName </td>
351          <td class="md" valign="top">(&nbsp;</td>
352          <td class="md" nowrap valign="top">const unsigned int&nbsp;</td>
353          <td class="mdname1" valign="top" nowrap>&nbsp; <em>index</em>          </td>
354          <td class="md" valign="top">)&nbsp;</td>
355          <td class="md" nowrap> const<code> [pure virtual]</code></td>
356        </tr>
357
358      </table>
359    </td>
360  </tr>
361</table>
362<table cellspacing=5 cellpadding=0 border=0>
363  <tr>
364    <td>
365      &nbsp;
366    </td>
367    <td>
368
369<p>
370Return the qName of an attribute in this list (by position).
371<p>
372The QNames must be unique: the SAX parser shall not include the same attribute twice. Attributes without values (those declared IMPLIED without a value specified in the start tag) will be omitted from the list.<dl compact><dt><b>
373Parameters: </b><dd>
374<table border=0 cellspacing=2 cellpadding=0>
375<tr><td valign=top><em>index</em>&nbsp;</td><td>
376The index of the attribute in the list (starting at 0). </td></tr>
377</table>
378</dl><dl compact><dt><b>
379Returns: </b><dd>
380The qName of the indexed attribute, or null if the index is out of range. </dl><dl compact><dt><b>
381See also: </b><dd>
382<a class="el" href="classAttributes.html#z529_0">getLength</a> </dl>    </td>
383  </tr>
384</table>
385<a name="z529_9" doxytag="Attributes::getType"></a><p>
386<table width="100%" cellpadding="2" cellspacing="0" border="0">
387  <tr>
388    <td class="md">
389      <table cellpadding="0" cellspacing="0" border="0">
390        <tr>
391          <td class="md" nowrap valign="top"> virtual const XMLCh* Attributes::getType </td>
392          <td class="md" valign="top">(&nbsp;</td>
393          <td class="md" nowrap valign="top">const XMLCh *const&nbsp;</td>
394          <td class="mdname1" valign="top" nowrap>&nbsp; <em>qName</em>          </td>
395          <td class="md" valign="top">)&nbsp;</td>
396          <td class="md" nowrap> const<code> [pure virtual]</code></td>
397        </tr>
398
399      </table>
400    </td>
401  </tr>
402</table>
403<table cellspacing=5 cellpadding=0 border=0>
404  <tr>
405    <td>
406      &nbsp;
407    </td>
408    <td>
409
410<p>
411Look up an attribute's type by XML 1.0 qualified name.
412<p>
413
414<p>
415See <a class="el" href="classAttributes.html#z529_4">getType</a> for a description of the possible types.<dl compact><dt><b>
416Parameters: </b><dd>
417<table border=0 cellspacing=2 cellpadding=0>
418<tr><td valign=top><em>qName</em>&nbsp;</td><td>
419The XML 1.0 qualified name. </td></tr>
420</table>
421</dl><dl compact><dt><b>
422Returns: </b><dd>
423The attribute type as a string, or null if the attribute is not in the list or if qualified names are not available. </dl>    </td>
424  </tr>
425</table>
426<a name="z529_8" doxytag="Attributes::getType"></a><p>
427<table width="100%" cellpadding="2" cellspacing="0" border="0">
428  <tr>
429    <td class="md">
430      <table cellpadding="0" cellspacing="0" border="0">
431        <tr>
432          <td class="md" nowrap valign="top"> virtual const XMLCh* Attributes::getType </td>
433          <td class="md" valign="top">(&nbsp;</td>
434          <td class="md" nowrap valign="top">const XMLCh *const&nbsp;</td>
435          <td class="mdname" nowrap>&nbsp; <em>uri</em>, </td>
436        </tr>
437        <tr>
438          <td></td>
439          <td></td>
440          <td class="md" nowrap>const XMLCh *const&nbsp;</td>
441          <td class="mdname" nowrap>&nbsp; <em>localPart</em></td>
442        </tr>
443        <tr>
444          <td></td>
445          <td class="md">)&nbsp;</td>
446          <td class="md" colspan="2"> const<code> [pure virtual]</code></td>
447        </tr>
448
449      </table>
450    </td>
451  </tr>
452</table>
453<table cellspacing=5 cellpadding=0 border=0>
454  <tr>
455    <td>
456      &nbsp;
457    </td>
458    <td>
459
460<p>
461Look up an attribute's type by Namespace name.
462<p>
463
464<p>
465See <a class="el" href="classAttributes.html#z529_4">getType</a> for a description of the possible types.<dl compact><dt><b>
466Parameters: </b><dd>
467<table border=0 cellspacing=2 cellpadding=0>
468<tr><td valign=top><em>uri</em>&nbsp;</td><td>
469The Namespace URI, or the empty String if the name has no Namespace URI. </td></tr>
470<tr><td valign=top><em>localPart</em>&nbsp;</td><td>
471The local name of the attribute. </td></tr>
472</table>
473</dl><dl compact><dt><b>
474Returns: </b><dd>
475The attribute type as a string, or null if the attribute is not in the list or if Namespace processing is not being performed. </dl>    </td>
476  </tr>
477</table>
478<a name="z529_4" doxytag="Attributes::getType"></a><p>
479<table width="100%" cellpadding="2" cellspacing="0" border="0">
480  <tr>
481    <td class="md">
482      <table cellpadding="0" cellspacing="0" border="0">
483        <tr>
484          <td class="md" nowrap valign="top"> virtual const XMLCh* Attributes::getType </td>
485          <td class="md" valign="top">(&nbsp;</td>
486          <td class="md" nowrap valign="top">const unsigned int&nbsp;</td>
487          <td class="mdname1" valign="top" nowrap>&nbsp; <em>index</em>          </td>
488          <td class="md" valign="top">)&nbsp;</td>
489          <td class="md" nowrap> const<code> [pure virtual]</code></td>
490        </tr>
491
492      </table>
493    </td>
494  </tr>
495</table>
496<table cellspacing=5 cellpadding=0 border=0>
497  <tr>
498    <td>
499      &nbsp;
500    </td>
501    <td>
502
503<p>
504Return the type of an attribute in the list (by position).
505<p>
506The attribute type is one of the strings "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION" (always in upper case).
507<p>
508If 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").
509<p>
510For an enumerated attribute that is not a notation, the parser will report the type as "NMTOKEN".<dl compact><dt><b>
511Parameters: </b><dd>
512<table border=0 cellspacing=2 cellpadding=0>
513<tr><td valign=top><em>index</em>&nbsp;</td><td>
514The index of the attribute in the list (starting at 0). </td></tr>
515</table>
516</dl><dl compact><dt><b>
517Returns: </b><dd>
518The attribute type as a string, or null if the index is out of range. </dl><dl compact><dt><b>
519See also: </b><dd>
520<a class="el" href="classAttributes.html#z529_0">getLength</a> , getType(String) </dl>    </td>
521  </tr>
522</table>
523<a name="z529_1" doxytag="Attributes::getURI"></a><p>
524<table width="100%" cellpadding="2" cellspacing="0" border="0">
525  <tr>
526    <td class="md">
527      <table cellpadding="0" cellspacing="0" border="0">
528        <tr>
529          <td class="md" nowrap valign="top"> virtual const XMLCh* Attributes::getURI </td>
530          <td class="md" valign="top">(&nbsp;</td>
531          <td class="md" nowrap valign="top">const unsigned int&nbsp;</td>
532          <td class="mdname1" valign="top" nowrap>&nbsp; <em>index</em>          </td>
533          <td class="md" valign="top">)&nbsp;</td>
534          <td class="md" nowrap> const<code> [pure virtual]</code></td>
535        </tr>
536
537      </table>
538    </td>
539  </tr>
540</table>
541<table cellspacing=5 cellpadding=0 border=0>
542  <tr>
543    <td>
544      &nbsp;
545    </td>
546    <td>
547
548<p>
549Return the namespace URI of an attribute in this list (by position).
550<p>
551The QNames must be unique: the SAX parser shall not include the same attribute twice. Attributes without values (those declared IMPLIED without a value specified in the start tag) will be omitted from the list.<dl compact><dt><b>
552Parameters: </b><dd>
553<table border=0 cellspacing=2 cellpadding=0>
554<tr><td valign=top><em>index</em>&nbsp;</td><td>
555The index of the attribute in the list (starting at 0). </td></tr>
556</table>
557</dl><dl compact><dt><b>
558Returns: </b><dd>
559The URI of the indexed attribute, or null if the index is out of range. </dl><dl compact><dt><b>
560See also: </b><dd>
561<a class="el" href="classAttributes.html#z529_0">getLength</a> </dl>    </td>
562  </tr>
563</table>
564<a name="z529_11" doxytag="Attributes::getValue"></a><p>
565<table width="100%" cellpadding="2" cellspacing="0" border="0">
566  <tr>
567    <td class="md">
568      <table cellpadding="0" cellspacing="0" border="0">
569        <tr>
570          <td class="md" nowrap valign="top"> virtual const XMLCh* Attributes::getValue </td>
571          <td class="md" valign="top">(&nbsp;</td>
572          <td class="md" nowrap valign="top">const XMLCh *const&nbsp;</td>
573          <td class="mdname1" valign="top" nowrap>&nbsp; <em>qName</em>          </td>
574          <td class="md" valign="top">)&nbsp;</td>
575          <td class="md" nowrap> const<code> [pure virtual]</code></td>
576        </tr>
577
578      </table>
579    </td>
580  </tr>
581</table>
582<table cellspacing=5 cellpadding=0 border=0>
583  <tr>
584    <td>
585      &nbsp;
586    </td>
587    <td>
588
589<p>
590Look up an attribute's value by XML 1.0 qualified name.
591<p>
592
593<p>
594See <a class="el" href="classAttributes.html#z529_5">getValue</a> for a description of the possible values.<dl compact><dt><b>
595Parameters: </b><dd>
596<table border=0 cellspacing=2 cellpadding=0>
597<tr><td valign=top><em>qName</em>&nbsp;</td><td>
598The XML 1.0 qualified name. </td></tr>
599</table>
600</dl><dl compact><dt><b>
601Returns: </b><dd>
602The attribute value as a string, or null if the attribute is not in the list or if qualified names are not available. </dl>    </td>
603  </tr>
604</table>
605<a name="z529_10" doxytag="Attributes::getValue"></a><p>
606<table width="100%" cellpadding="2" cellspacing="0" border="0">
607  <tr>
608    <td class="md">
609      <table cellpadding="0" cellspacing="0" border="0">
610        <tr>
611          <td class="md" nowrap valign="top"> virtual const XMLCh* Attributes::getValue </td>
612          <td class="md" valign="top">(&nbsp;</td>
613          <td class="md" nowrap valign="top">const XMLCh *const&nbsp;</td>
614          <td class="mdname" nowrap>&nbsp; <em>uri</em>, </td>
615        </tr>
616        <tr>
617          <td></td>
618          <td></td>
619          <td class="md" nowrap>const XMLCh *const&nbsp;</td>
620          <td class="mdname" nowrap>&nbsp; <em>localPart</em></td>
621        </tr>
622        <tr>
623          <td></td>
624          <td class="md">)&nbsp;</td>
625          <td class="md" colspan="2"> const<code> [pure virtual]</code></td>
626        </tr>
627
628      </table>
629    </td>
630  </tr>
631</table>
632<table cellspacing=5 cellpadding=0 border=0>
633  <tr>
634    <td>
635      &nbsp;
636    </td>
637    <td>
638
639<p>
640Look up an attribute's value by Namespace name.
641<p>
642
643<p>
644See <a class="el" href="classAttributes.html#z529_5">getValue</a> for a description of the possible values.<dl compact><dt><b>
645Parameters: </b><dd>
646<table border=0 cellspacing=2 cellpadding=0>
647<tr><td valign=top><em>uri</em>&nbsp;</td><td>
648The Namespace URI, or the empty String if the name has no Namespace URI. </td></tr>
649<tr><td valign=top><em>localPart</em>&nbsp;</td><td>
650The local name of the attribute. </td></tr>
651</table>
652</dl><dl compact><dt><b>
653Returns: </b><dd>
654The attribute value as a string, or null if the attribute is not in the list. </dl>    </td>
655  </tr>
656</table>
657<a name="z529_5" doxytag="Attributes::getValue"></a><p>
658<table width="100%" cellpadding="2" cellspacing="0" border="0">
659  <tr>
660    <td class="md">
661      <table cellpadding="0" cellspacing="0" border="0">
662        <tr>
663          <td class="md" nowrap valign="top"> virtual const XMLCh* Attributes::getValue </td>
664          <td class="md" valign="top">(&nbsp;</td>
665          <td class="md" nowrap valign="top">const unsigned int&nbsp;</td>
666          <td class="mdname1" valign="top" nowrap>&nbsp; <em>index</em>          </td>
667          <td class="md" valign="top">)&nbsp;</td>
668          <td class="md" nowrap> const<code> [pure virtual]</code></td>
669        </tr>
670
671      </table>
672    </td>
673  </tr>
674</table>
675<table cellspacing=5 cellpadding=0 border=0>
676  <tr>
677    <td>
678      &nbsp;
679    </td>
680    <td>
681
682<p>
683Return the value of an attribute in the list (by position).
684<p>
685If 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>
686Parameters: </b><dd>
687<table border=0 cellspacing=2 cellpadding=0>
688<tr><td valign=top><em>index</em>&nbsp;</td><td>
689The index of the attribute in the list (starting at 0). </td></tr>
690</table>
691</dl><dl compact><dt><b>
692Returns: </b><dd>
693The attribute value as a string, or null if the index is out of range. </dl><dl compact><dt><b>
694See also: </b><dd>
695<a class="el" href="classAttributes.html#z529_0">getLength</a> , getValue(XMLCh*) </dl>    </td>
696  </tr>
697</table>
698<hr>The documentation for this class was generated from the following file:<ul>
699<li><a class="el" href="Attributes_8hpp-source.html">Attributes.hpp</a></ul>
700    </FONT></TD></TR></TABLE><BR>
701</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>
702              Copyright &copy; 1994-2004 The Apache Software Foundation.
703              All Rights Reserved.
704            </I></FONT></TD></TR></TABLE></BODY></HTML>
Note: See TracBrowser for help on using the repository browser.