< prev index next >

src/java.xml/share/classes/org/xml/sax/AttributeList.java

Print this page


   1 /*
   2  * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 // SAX Attribute List Interface.
  27 // http://www.saxproject.org
  28 // No warranty; no copyright -- use this as you will.
  29 // $Id: AttributeList.java,v 1.3 2004/11/03 22:44:51 jsuttor Exp $
  30 
  31 package org.xml.sax;
  32 
  33 /**
  34  * Interface for an element's attribute specifications.
  35  *
  36  * <blockquote>
  37  * <em>This module, both source code and documentation, is in the
  38  * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
  39  * See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
  40  * for further information.
  41  * </blockquote>
  42  *
  43  * <p>This is the original SAX1 interface for reporting an element's
  44  * attributes.  Unlike the new {@link org.xml.sax.Attributes Attributes}
  45  * interface, it does not support Namespace-related information.
  46  *
  47  * <p>When an attribute list is supplied as part of a
  48  * {@link org.xml.sax.DocumentHandler#startElement startElement}
  49  * event, the list will return valid results only during the
  50  * scope of the event; once the event handler returns control
  51  * to the parser, the attribute list is invalid.  To save a
  52  * persistent copy of the attribute list, use the SAX1
  53  * {@link org.xml.sax.helpers.AttributeListImpl AttributeListImpl}
  54  * helper class.
  55  *
  56  * <p>An attribute list includes only attributes that have been
  57  * specified or defaulted: #IMPLIED attributes will not be included.
  58  *
  59  * <p>There are two ways for the SAX application to obtain information
  60  * from the AttributeList.  First, it can iterate through the entire
  61  * list:


   1 /*
   2  * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 





  26 package org.xml.sax;
  27 
  28 /**
  29  * Interface for an element's attribute specifications.







  30  *
  31  * <p>This is the original SAX1 interface for reporting an element's
  32  * attributes.  Unlike the new {@link org.xml.sax.Attributes Attributes}
  33  * interface, it does not support Namespace-related information.
  34  *
  35  * <p>When an attribute list is supplied as part of a
  36  * {@link org.xml.sax.DocumentHandler#startElement startElement}
  37  * event, the list will return valid results only during the
  38  * scope of the event; once the event handler returns control
  39  * to the parser, the attribute list is invalid.  To save a
  40  * persistent copy of the attribute list, use the SAX1
  41  * {@link org.xml.sax.helpers.AttributeListImpl AttributeListImpl}
  42  * helper class.
  43  *
  44  * <p>An attribute list includes only attributes that have been
  45  * specified or defaulted: #IMPLIED attributes will not be included.
  46  *
  47  * <p>There are two ways for the SAX application to obtain information
  48  * from the AttributeList.  First, it can iterate through the entire
  49  * list:


< prev index next >