< prev index next >

src/java.xml/share/classes/org/xml/sax/helpers/AttributeListImpl.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


  70  * </pre>
  71  *
  72  * <p>Please note that SAX parsers are not required to use this
  73  * class to provide an implementation of AttributeList; it is
  74  * supplied only as an optional convenience.  In particular,
  75  * parser writers are encouraged to invent more efficient
  76  * implementations.</p>
  77  *
  78  * @deprecated This class implements a deprecated interface,
  79  *             {@link org.xml.sax.AttributeList AttributeList};
  80  *             that interface has been replaced by
  81  *             {@link org.xml.sax.Attributes Attributes},
  82  *             which is implemented in the
  83  *             {@link org.xml.sax.helpers.AttributesImpl
  84  *            AttributesImpl} helper class.
  85  * @since 1.4, SAX 1.0
  86  * @author David Megginson
  87  * @see org.xml.sax.AttributeList
  88  * @see org.xml.sax.DocumentHandler#startElement
  89  */

  90 public class AttributeListImpl implements AttributeList
  91 {
  92 
  93     /**
  94      * Create an empty attribute list.
  95      *
  96      * <p>This constructor is most useful for parser writers, who
  97      * will use it to create a single, reusable attribute list that
  98      * can be reset with the clear method between elements.</p>
  99      *
 100      * @see #addAttribute
 101      * @see #clear
 102      */
 103     public AttributeListImpl ()
 104     {
 105     }
 106 
 107 
 108     /**
 109      * Construct a persistent copy of an existing attribute list.


   1 /*
   2  * Copyright (c) 2000, 2017, 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


  70  * </pre>
  71  *
  72  * <p>Please note that SAX parsers are not required to use this
  73  * class to provide an implementation of AttributeList; it is
  74  * supplied only as an optional convenience.  In particular,
  75  * parser writers are encouraged to invent more efficient
  76  * implementations.</p>
  77  *
  78  * @deprecated This class implements a deprecated interface,
  79  *             {@link org.xml.sax.AttributeList AttributeList};
  80  *             that interface has been replaced by
  81  *             {@link org.xml.sax.Attributes Attributes},
  82  *             which is implemented in the
  83  *             {@link org.xml.sax.helpers.AttributesImpl
  84  *            AttributesImpl} helper class.
  85  * @since 1.4, SAX 1.0
  86  * @author David Megginson
  87  * @see org.xml.sax.AttributeList
  88  * @see org.xml.sax.DocumentHandler#startElement
  89  */
  90 @Deprecated(since="1.5")
  91 public class AttributeListImpl implements AttributeList
  92 {
  93 
  94     /**
  95      * Create an empty attribute list.
  96      *
  97      * <p>This constructor is most useful for parser writers, who
  98      * will use it to create a single, reusable attribute list that
  99      * can be reset with the clear method between elements.</p>
 100      *
 101      * @see #addAttribute
 102      * @see #clear
 103      */
 104     public AttributeListImpl ()
 105     {
 106     }
 107 
 108 
 109     /**
 110      * Construct a persistent copy of an existing attribute list.


< prev index next >