text: <!DOCTYPE HTML>
  <!-- NewPage -->
  <html lang="en">
  <head>
  <!-- Generated by javadoc -->
  <title>AttributeList (Java SE 12 &amp; JDK 12 )</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="keywords" content="org.xml.sax.AttributeList interface">
  <meta name="keywords" content="getLength()">
  <meta name="keywords" content="getName()">
  <meta name="keywords" content="getType()">
  <meta name="keywords" content="getValue()">
  <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
  <link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
  <script type="text/javascript" src="../../../../script.js"></script>
  <script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
  <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
  <!--[if IE]>
  <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
  <![endif]-->
  <script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script>
  <script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script>
  <script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
  </head>
  <body>
  <script type="text/javascript"><!--
      try {
          if (location.href.indexOf('is-external=true') == -1) {
              parent.document.title="AttributeList (Java SE 12 & JDK 12 )";
          }
      }
      catch(err) {
      }
  //-->
  var data = {"i0":38,"i1":38,"i2":38,"i3":38,"i4":38,"i5":38};
  var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],32:["t6","Deprecated Methods"]};
  var altColor = "altColor";
  var rowColor = "rowColor";
  var tableTab = "tableTab";
  var activeTableTab = "activeTableTab";
  var pathtoroot = "../../../../";
  var useModuleDirectories = true;
  loadScripts(document, 'script');</script>
  <noscript>
  <div>JavaScript is disabled on your browser.</div>
  </noscript>
  <header role="banner">
  <nav role="navigation">
  <div class="fixedNav">
  <!-- ========= START OF TOP NAVBAR ======= -->
  <div class="topNav"><a id="navbar.top">
  <!--   -->
  </a>
  <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  <a id="navbar.top.firstrow">
  <!--   -->
  </a>
  <ul class="navList" title="Navigation">
  <li><a href="../../../../index.html">Overview</a></li>
  <li><a href="../../../module-summary.html">Module</a></li>
  <li><a href="package-summary.html">Package</a></li>
  <li class="navBarCell1Rev">Class</li>
  <li><a href="class-use/AttributeList.html">Use</a></li>
  <li><a href="package-tree.html">Tree</a></li>
  <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  <li><a href="../../../../index-files/index-1.html">Index</a></li>
  <li><a href="../../../../help-doc.html">Help</a></li>
  </ul>
  <div class="aboutLanguage"><div style="margin-top: 14px;"><strong>Java SE 12 &amp; JDK 12</strong> </div></div>
  </div>
  <div class="subNav">
  <div>
  <ul class="subNavList">
  <li>Summary:&nbsp;</li>
  <li>Nested&nbsp;|&nbsp;</li>
  <li>Field&nbsp;|&nbsp;</li>
  <li>Constr&nbsp;|&nbsp;</li>
  <li><a href="#method.summary">Method</a></li>
  </ul>
  <ul class="subNavList">
  <li>Detail:&nbsp;</li>
  <li>Field&nbsp;|&nbsp;</li>
  <li>Constr&nbsp;|&nbsp;</li>
  <li><a href="#method.detail">Method</a></li>
  </ul>
  </div>
  <ul class="navListSearch">
  <li><label for="search">SEARCH:</label>
  <input type="text" id="search" value="search" disabled="disabled">
  <input type="reset" id="reset" value="reset" disabled="disabled">
  </li>
  </ul>
  </div>
  <a id="skip.navbar.top">
  <!--   -->
  </a>
  <!-- ========= END OF TOP NAVBAR ========= -->
  </div>
  <div class="navPadding">&nbsp;</div>
  <script type="text/javascript"><!--
  $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  //-->
  </script>
  </nav>
  </header>
  <!-- ======== START OF CLASS DATA ======== -->
  <main role="main">
  <div class="header">
  <div class="subTitle"><span class="moduleLabelInType">Module</span>&nbsp;<a href="../../../module-summary.html">java.xml</a></div>
  <div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.xml.sax</a></div>
  <h2 title="Interface AttributeList" class="title">Interface AttributeList</h2>
  </div>
  <div class="contentContainer">
  <div class="description">
  <ul class="blockList">
  <li class="blockList">
  <dl>
  <dt>All Known Implementing Classes:</dt>
  <dd><code><a href="helpers/AttributeListImpl.html" title="class in org.xml.sax.helpers">AttributeListImpl</a></code></dd>
  </dl>
  <hr>
  <pre><a href="../../../../java.base/java/lang/Deprecated.html" title="annotation in java.lang">@Deprecated</a>(<a href="../../../../java.base/java/lang/Deprecated.html#since()">since</a>="1.5")
  public interface <span class="typeNameLabel">AttributeList</span></pre>
  <div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
  <div class="deprecationComment">This interface has been replaced by the SAX2
               <a href="Attributes.html" title="interface in org.xml.sax"><code>Attributes</code></a>
               interface, which includes Namespace support.</div>
  </div>
  <div class="block">Interface for an element's attribute specifications.
  
   <blockquote>
   <em>This module, both source code and documentation, is in the
   Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
   See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
   for further information.
   </blockquote>
  
   <p>This is the original SAX1 interface for reporting an element's
   attributes.  Unlike the new <a href="Attributes.html" title="interface in org.xml.sax"><code>Attributes</code></a>
   interface, it does not support Namespace-related information.
  
   <p>When an attribute list is supplied as part of a
   <a href="DocumentHandler.html#startElement(java.lang.String,org.xml.sax.AttributeList)"><code>startElement</code></a>
   event, the list will return valid results only during the
   scope of the event; once the event handler returns control
   to the parser, the attribute list is invalid.  To save a
   persistent copy of the attribute list, use the SAX1
   <a href="helpers/AttributeListImpl.html" title="class in org.xml.sax.helpers"><code>AttributeListImpl</code></a>
   helper class.
  
   <p>An attribute list includes only attributes that have been
   specified or defaulted: #IMPLIED attributes will not be included.
  
   <p>There are two ways for the SAX application to obtain information
   from the AttributeList.  First, it can iterate through the entire
   list:
  
   <pre><code>
   public void startElement (String name, AttributeList atts) {
     for (int i = 0; i &lt; atts.getLength(); i++) {
       String name = atts.getName(i);
       String type = atts.getType(i);
       String value = atts.getValue(i);
       [...]
     }
   }
   </code></pre>
  
   <p>(Note that the result of getLength() will be zero if there
   are no attributes.)
  
   <p>As an alternative, the application can request the value or
   type of specific attributes:
  
   <pre>
   public void startElement (String name, AttributeList atts) {
     String identifier = atts.getValue("id");
     String label = atts.getValue("label");
     [...]
   }
   </pre></div>
  <dl>
  <dt><span class="simpleTagLabel">Since:</span></dt>
  <dd>1.4, SAX 1.0</dd>
  <dt><span class="seeLabel">See Also:</span></dt>
  <dd><a href="DocumentHandler.html#startElement(java.lang.String,org.xml.sax.AttributeList)"><code>startElement</code></a>, 
  <a href="helpers/AttributeListImpl.html" title="class in org.xml.sax.helpers"><code>AttributeListImpl</code></a></dd>
  </dl>
  </li>
  </ul>
  </div>
  <div class="summary">
  <ul class="blockList">
  <li class="blockList">
  <!-- ========== METHOD SUMMARY =========== -->
  <section role="region">
  <ul class="blockList">
  <li class="blockList"><a id="method.summary">
  <!--   -->
  </a>
  <h3>Method Summary</h3>
  <div class="memberSummary">
  <div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t3" class="tableTab" onclick="show(4);">Abstract Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t6" class="tableTab" onclick="show(32);">Deprecated Methods</button></div>
  <div id="memberSummary_tabpanel" role="tabpanel">
  <table aria-labelledby="t0">
  <tr>
  <th class="colFirst" scope="col">Modifier and Type</th>
  <th class="colSecond" scope="col">Method</th>
  <th class="colLast" scope="col">Description</th>
  </tr>
  <tbody>
  <tr class="altColor" id="i0">
  <td class="colFirst"><code>int</code></td>
  <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLength()">getLength</a></span>()</code></th>
  <td class="colLast">
  <div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
  <div class="block">Return the number of attributes in this list.</div>
  </td>
  </tr>
  <tr class="rowColor" id="i1">
  <td class="colFirst"><code><a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a></code></td>
  <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getName(int)">getName</a></span>&#8203;(int&nbsp;i)</code></th>
  <td class="colLast">
  <div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
  <div class="block">Return the name of an attribute in this list (by position).</div>
  </td>
  </tr>
  <tr class="altColor" id="i2">
  <td class="colFirst"><code><a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a></code></td>
  <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getType(int)">getType</a></span>&#8203;(int&nbsp;i)</code></th>
  <td class="colLast">
  <div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
  <div class="block">Return the type of an attribute in the list (by position).</div>
  </td>
  </tr>
  <tr class="rowColor" id="i3">
  <td class="colFirst"><code><a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a></code></td>
  <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getType(java.lang.String)">getType</a></span>&#8203;(<a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a>&nbsp;name)</code></th>
  <td class="colLast">
  <div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
  <div class="block">Return the type of an attribute in the list (by name).</div>
  </td>
  </tr>
  <tr class="altColor" id="i4">
  <td class="colFirst"><code><a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a></code></td>
  <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getValue(int)">getValue</a></span>&#8203;(int&nbsp;i)</code></th>
  <td class="colLast">
  <div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
  <div class="block">Return the value of an attribute in the list (by position).</div>
  </td>
  </tr>
  <tr class="rowColor" id="i5">
  <td class="colFirst"><code><a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a></code></td>
  <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getValue(java.lang.String)">getValue</a></span>&#8203;(<a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a>&nbsp;name)</code></th>
  <td class="colLast">
  <div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
  <div class="block">Return the value of an attribute in the list (by name).</div>
  </td>
  </tr>
  </tbody>
  </table>
  </div>
  </div>
  </li>
  </ul>
  </section>
  </li>
  </ul>
  </div>
  <div class="details">
  <ul class="blockList">
  <li class="blockList">
  <!-- ============ METHOD DETAIL ========== -->
  <section role="region">
  <ul class="blockList">
  <li class="blockList"><a id="method.detail">
  <!--   -->
  </a>
  <h3>Method Detail</h3>
  <a id="getLength()">
  <!--   -->
  </a>
  <ul class="blockList">
  <li class="blockList">
  <h4>getLength</h4>
  <pre class="methodSignature">int&nbsp;getLength()</pre>
  <div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
  <div class="block">Return the number of attributes in this list.
  
   <p>The 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.</div>
  <dl>
  <dt><span class="returnLabel">Returns:</span></dt>
  <dd>The number of attributes in the list.</dd>
  </dl>
  </li>
  </ul>
  <a id="getName(int)">
  <!--   -->
  </a>
  <ul class="blockList">
  <li class="blockList">
  <h4>getName</h4>
  <pre class="methodSignature"><a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a>&nbsp;getName&#8203;(int&nbsp;i)</pre>
  <div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
  <div class="block">Return the name of an attribute in this list (by position).
  
   <p>The names 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.
  
   <p>If the attribute name has a namespace prefix, the prefix
   will still be attached.</div>
  <dl>
  <dt><span class="paramLabel">Parameters:</span></dt>
  <dd><code>i</code> - The index of the attribute in the list (starting at 0).</dd>
  <dt><span class="returnLabel">Returns:</span></dt>
  <dd>The name of the indexed attribute, or null
           if the index is out of range.</dd>
  <dt><span class="seeLabel">See Also:</span></dt>
  <dd><a href="#getLength()"><code>getLength()</code></a></dd>
  </dl>
  </li>
  </ul>
  <a id="getType(int)">
  <!--   -->
  </a>
  <ul class="blockList">
  <li class="blockList">
  <h4>getType</h4>
  <pre class="methodSignature"><a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a>&nbsp;getType&#8203;(int&nbsp;i)</pre>
  <div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
  <div class="block">Return the type of an attribute in the list (by position).
  
   <p>The attribute type is one of the strings "CDATA", "ID",
   "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES",
   or "NOTATION" (always in upper case).
  
   <p>If 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").
  
   <p>For an enumerated attribute that is not a notation, the
   parser will report the type as "NMTOKEN".</div>
  <dl>
  <dt><span class="paramLabel">Parameters:</span></dt>
  <dd><code>i</code> - The index of the attribute in the list (starting at 0).</dd>
  <dt><span class="returnLabel">Returns:</span></dt>
  <dd>The attribute type as a string, or
           null if the index is out of range.</dd>
  <dt><span class="seeLabel">See Also:</span></dt>
  <dd><a href="#getLength()"><code>getLength()</code></a>, 
  <a href="#getType(java.lang.String)"><code>getType(java.lang.String)</code></a></dd>
  </dl>
  </li>
  </ul>
  <a id="getValue(int)">
  <!--   -->
  </a>
  <ul class="blockList">
  <li class="blockList">
  <h4>getValue</h4>
  <pre class="methodSignature"><a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a>&nbsp;getValue&#8203;(int&nbsp;i)</pre>
  <div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
  <div class="block">Return the value of an attribute in the list (by position).
  
   <p>If the attribute value is a list of tokens (IDREFS,
   ENTITIES, or NMTOKENS), the tokens will be concatenated
   into a single string separated by whitespace.</div>
  <dl>
  <dt><span class="paramLabel">Parameters:</span></dt>
  <dd><code>i</code> - The index of the attribute in the list (starting at 0).</dd>
  <dt><span class="returnLabel">Returns:</span></dt>
  <dd>The attribute value as a string, or
           null if the index is out of range.</dd>
  <dt><span class="seeLabel">See Also:</span></dt>
  <dd><a href="#getLength()"><code>getLength()</code></a>, 
  <a href="#getValue(java.lang.String)"><code>getValue(java.lang.String)</code></a></dd>
  </dl>
  </li>
  </ul>
  <a id="getType(java.lang.String)">
  <!--   -->
  </a>
  <ul class="blockList">
  <li class="blockList">
  <h4>getType</h4>
  <pre class="methodSignature"><a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a>&nbsp;getType&#8203;(<a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a>&nbsp;name)</pre>
  <div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
  <div class="block">Return the type of an attribute in the list (by name).
  
   <p>The return value is the same as the return value for
   getType(int).
  
   <p>If the attribute name has a namespace prefix in the document,
   the application must include the prefix here.</div>
  <dl>
  <dt><span class="paramLabel">Parameters:</span></dt>
  <dd><code>name</code> - The name of the attribute.</dd>
  <dt><span class="returnLabel">Returns:</span></dt>
  <dd>The attribute type as a string, or null if no
           such attribute exists.</dd>
  <dt><span class="seeLabel">See Also:</span></dt>
  <dd><a href="#getType(int)"><code>getType(int)</code></a></dd>
  </dl>
  </li>
  </ul>
  <a id="getValue(java.lang.String)">
  <!--   -->
  </a>
  <ul class="blockListLast">
  <li class="blockList">
  <h4>getValue</h4>
  <pre class="methodSignature"><a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a>&nbsp;getValue&#8203;(<a href="../../../../java.base/java/lang/String.html" title="class in java.lang">String</a>&nbsp;name)</pre>
  <div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
  <div class="block">Return the value of an attribute in the list (by name).
  
   <p>The return value is the same as the return value for
   getValue(int).
  
   <p>If the attribute name has a namespace prefix in the document,
   the application must include the prefix here.</div>
  <dl>
  <dt><span class="paramLabel">Parameters:</span></dt>
  <dd><code>name</code> - the name of the attribute to return</dd>
  <dt><span class="returnLabel">Returns:</span></dt>
  <dd>The attribute value as a string, or null if
           no such attribute exists.</dd>
  <dt><span class="seeLabel">See Also:</span></dt>
  <dd><a href="#getValue(int)"><code>getValue(int)</code></a></dd>
  </dl>
  </li>
  </ul>
  </li>
  </ul>
  </section>
  </li>
  </ul>
  </div>
  </div>
  </main>
  <!-- ========= END OF CLASS DATA ========= -->
  <footer role="contentinfo">
  <nav role="navigation">
  <!-- ======= START OF BOTTOM NAVBAR ====== -->
  <div class="bottomNav"><a id="navbar.bottom">
  <!--   -->
  </a>
  <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  <a id="navbar.bottom.firstrow">
  <!--   -->
  </a>
  <ul class="navList" title="Navigation">
  <li><a href="../../../../index.html">Overview</a></li>
  <li><a href="../../../module-summary.html">Module</a></li>
  <li><a href="package-summary.html">Package</a></li>
  <li class="navBarCell1Rev">Class</li>
  <li><a href="class-use/AttributeList.html">Use</a></li>
  <li><a href="package-tree.html">Tree</a></li>
  <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  <li><a href="../../../../index-files/index-1.html">Index</a></li>
  <li><a href="../../../../help-doc.html">Help</a></li>
  </ul>
  <div class="aboutLanguage"><div style="margin-top: 14px;"><strong>Java SE 12 &amp; JDK 12</strong> </div></div>
  </div>
  <div class="subNav">
  <div>
  <ul class="subNavList">
  <li>Summary:&nbsp;</li>
  <li>Nested&nbsp;|&nbsp;</li>
  <li>Field&nbsp;|&nbsp;</li>
  <li>Constr&nbsp;|&nbsp;</li>
  <li><a href="#method.summary">Method</a></li>
  </ul>
  <ul class="subNavList">
  <li>Detail:&nbsp;</li>
  <li>Field&nbsp;|&nbsp;</li>
  <li>Constr&nbsp;|&nbsp;</li>
  <li><a href="#method.detail">Method</a></li>
  </ul>
  </div>
  </div>
  <a id="skip.navbar.bottom">
  <!--   -->
  </a>
  <!-- ======== END OF BOTTOM NAVBAR ======= -->
  </nav>
  <p class="legalCopy"><small><a href="https://bugreport.java.com/bugreport/">Report a bug or suggest an enhancement</a><br> For further API reference and developer documentation see the <a href="https://docs.oracle.com/pls/topic/lookup?ctx=javase12.0.2&amp;id=homepage" target="_blank">Java SE Documentation</a>, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.<br> Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.<br> <a href="../../../../../legal/copyright.html">Copyright</a> &copy; 1993, 2019, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.<br>All rights reserved. Use is subject to <a href="https://www.oracle.com/technetwork/java/javase/terms/license/java12.0.2speclicense.html">license terms</a> and the <a href="https://www.oracle.com/technetwork/java/redist-137594.html">documentation redistribution policy</a>. <!-- Version 12.0.2+10 --></small></p>
  </footer>
  </body>
  </html>
  