65 * // create a persistent copy of the attribute list
66 * // for use outside this method
67 * myatts = new AttributeListImpl(atts);
68 * [...]
69 * }
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 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 }
|
65 * // create a persistent copy of the attribute list
66 * // for use outside this method
67 * myatts = new AttributeListImpl(atts);
68 * [...]
69 * }
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 }
|