1 /*
2 * Copyright (c) 2004, 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 // Attributes2Impl.java - extended AttributesImpl
27 // http://www.saxproject.org
28 // Public Domain: no warranty.
29 // $Id: Attributes2Impl.java,v 1.3 2005/02/24 11:20:18 gg156739 Exp $
30
31 package org.xml.sax.ext;
32
33 import org.xml.sax.Attributes;
34 import org.xml.sax.helpers.AttributesImpl;
35
36
37 /**
38 * SAX2 extension helper for additional Attributes information,
39 * implementing the {@link Attributes2} interface.
40 *
41 * <blockquote>
42 * <em>This module, both source code and documentation, is in the
43 * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
44 * </blockquote>
45 *
46 * <p>This is not part of core-only SAX2 distributions.</p>
47 *
48 * <p>The <em>specified</em> flag for each attribute will always
49 * be true, unless it has been set to false in the copy constructor
50 * or using {@link #setSpecified}.
51 * Similarly, the <em>declared</em> flag for each attribute will
52 * always be false, except for defaulted attributes (<em>specified</em>
53 * is false), non-CDATA attributes, or when it is set to true using
54 * {@link #setDeclared}.
55 * If you change an attribute's type by hand, you may need to modify
56 * its <em>declared</em> flag to match.
57 * </p>
58 *
59 * @since 1.5, SAX 2.0 (extensions 1.1 alpha)
60 * @author David Brownell
61 */
62 public class Attributes2Impl extends AttributesImpl implements Attributes2
63 {
64 private boolean declared [];
|
1 /*
2 * Copyright (c) 2004, 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.ext;
27
28 import org.xml.sax.Attributes;
29 import org.xml.sax.helpers.AttributesImpl;
30
31
32 /**
33 * SAX2 extension helper for additional Attributes information,
34 * implementing the {@link Attributes2} interface.
35 *
36 * <p>This is not part of core-only SAX2 distributions.</p>
37 *
38 * <p>The <em>specified</em> flag for each attribute will always
39 * be true, unless it has been set to false in the copy constructor
40 * or using {@link #setSpecified}.
41 * Similarly, the <em>declared</em> flag for each attribute will
42 * always be false, except for defaulted attributes (<em>specified</em>
43 * is false), non-CDATA attributes, or when it is set to true using
44 * {@link #setDeclared}.
45 * If you change an attribute's type by hand, you may need to modify
46 * its <em>declared</em> flag to match.
47 * </p>
48 *
49 * @since 1.5, SAX 2.0 (extensions 1.1 alpha)
50 * @author David Brownell
51 */
52 public class Attributes2Impl extends AttributesImpl implements Attributes2
53 {
54 private boolean declared [];
|