45 * <p>This class provides a default implementation of the SAX2
46 * {@link org.xml.sax.Attributes Attributes} interface, with the
47 * addition of manipulators so that the list can be modified or
48 * reused.</p>
49 *
50 * <p>There are two typical uses of this class:</p>
51 *
52 * <ol>
53 * <li>to take a persistent snapshot of an Attributes object
54 * in a {@link org.xml.sax.ContentHandler#startElement startElement} event; or</li>
55 * <li>to construct or modify an Attributes object in a SAX2 driver or filter.</li>
56 * </ol>
57 *
58 * <p>This class replaces the now-deprecated SAX1 {@link
59 * org.xml.sax.helpers.AttributeListImpl AttributeListImpl}
60 * class; in addition to supporting the updated Attributes
61 * interface rather than the deprecated {@link org.xml.sax.AttributeList
62 * AttributeList} interface, it also includes a much more efficient
63 * implementation using a single array rather than a set of Vectors.</p>
64 *
65 * @since JAXB1.0
66 * @since SAX 2.0
67 * @author David Megginson
68 * @version 2.0.1 (sax2r2)
69 */
70 public class AttributesImpl implements Attributes
71 {
72
73
74 ////////////////////////////////////////////////////////////////////
75 // Constructors.
76 ////////////////////////////////////////////////////////////////////
77
78
79 /**
80 * Construct a new, empty AttributesImpl object.
81 */
82 public AttributesImpl ()
83 {
84 length = 0;
85 data = null;
|
45 * <p>This class provides a default implementation of the SAX2
46 * {@link org.xml.sax.Attributes Attributes} interface, with the
47 * addition of manipulators so that the list can be modified or
48 * reused.</p>
49 *
50 * <p>There are two typical uses of this class:</p>
51 *
52 * <ol>
53 * <li>to take a persistent snapshot of an Attributes object
54 * in a {@link org.xml.sax.ContentHandler#startElement startElement} event; or</li>
55 * <li>to construct or modify an Attributes object in a SAX2 driver or filter.</li>
56 * </ol>
57 *
58 * <p>This class replaces the now-deprecated SAX1 {@link
59 * org.xml.sax.helpers.AttributeListImpl AttributeListImpl}
60 * class; in addition to supporting the updated Attributes
61 * interface rather than the deprecated {@link org.xml.sax.AttributeList
62 * AttributeList} interface, it also includes a much more efficient
63 * implementation using a single array rather than a set of Vectors.</p>
64 *
65 * @since JAXB 1.0
66 * @since SAX 2.0
67 * @author David Megginson
68 * @version 2.0.1 (sax2r2)
69 */
70 public class AttributesImpl implements Attributes
71 {
72
73
74 ////////////////////////////////////////////////////////////////////
75 // Constructors.
76 ////////////////////////////////////////////////////////////////////
77
78
79 /**
80 * Construct a new, empty AttributesImpl object.
81 */
82 public AttributesImpl ()
83 {
84 length = 0;
85 data = null;
|