src/org/xml/sax/AttributeList.java

Print this page
rev 602 : 8047723: @since tag cleanup in jaxp
Reviewed-by:


  71  * }
  72  * </pre>
  73  *
  74  * <p>(Note that the result of getLength() will be zero if there
  75  * are no attributes.)
  76  *
  77  * <p>As an alternative, the application can request the value or
  78  * type of specific attributes:</p>
  79  *
  80  * <pre>
  81  * public void startElement (String name, AttributeList atts) {
  82  *   String identifier = atts.getValue("id");
  83  *   String label = atts.getValue("label");
  84  *   [...]
  85  * }
  86  * </pre>
  87  *
  88  * @deprecated This interface has been replaced by the SAX2
  89  *             {@link org.xml.sax.Attributes Attributes}
  90  *             interface, which includes Namespace support.
  91  * @since SAX 1.0
  92  * @author David Megginson
  93  * @see org.xml.sax.DocumentHandler#startElement startElement
  94  * @see org.xml.sax.helpers.AttributeListImpl AttributeListImpl
  95  */
  96 public interface AttributeList {
  97 
  98 
  99     ////////////////////////////////////////////////////////////////////
 100     // Iteration methods.
 101     ////////////////////////////////////////////////////////////////////
 102 
 103 
 104     /**
 105      * Return the number of attributes in this list.
 106      *
 107      * <p>The SAX parser may provide attributes in any
 108      * arbitrary order, regardless of the order in which they were
 109      * declared or specified.  The number of attributes may be
 110      * zero.</p>
 111      *




  71  * }
  72  * </pre>
  73  *
  74  * <p>(Note that the result of getLength() will be zero if there
  75  * are no attributes.)
  76  *
  77  * <p>As an alternative, the application can request the value or
  78  * type of specific attributes:</p>
  79  *
  80  * <pre>
  81  * public void startElement (String name, AttributeList atts) {
  82  *   String identifier = atts.getValue("id");
  83  *   String label = atts.getValue("label");
  84  *   [...]
  85  * }
  86  * </pre>
  87  *
  88  * @deprecated This interface has been replaced by the SAX2
  89  *             {@link org.xml.sax.Attributes Attributes}
  90  *             interface, which includes Namespace support.
  91  * @since 1.4, SAX 1.0
  92  * @author David Megginson
  93  * @see org.xml.sax.DocumentHandler#startElement startElement
  94  * @see org.xml.sax.helpers.AttributeListImpl AttributeListImpl
  95  */
  96 public interface AttributeList {
  97 
  98 
  99     ////////////////////////////////////////////////////////////////////
 100     // Iteration methods.
 101     ////////////////////////////////////////////////////////////////////
 102 
 103 
 104     /**
 105      * Return the number of attributes in this list.
 106      *
 107      * <p>The SAX parser may provide attributes in any
 108      * arbitrary order, regardless of the order in which they were
 109      * declared or specified.  The number of attributes may be
 110      * zero.</p>
 111      *