1 /*
2 * Copyright (c) 1998, 2008, 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
29 import java.util.Hashtable;
30 import java.util.Enumeration;
31 import java.io.*;
32
33 /**
34 * This class defines the attributes of an SGML element
35 * as described in a DTD using the ATTLIST construct.
36 * An AttributeList can be obtained from the Element
37 * class using the getAttributes() method.
38 * <p>
39 * It is actually an element in a linked list. Use the
40 * getNext() method repeatedly to enumerate all the attributes
41 * of an element.
42 *
43 * @see Element
44 * @author Arthur Van Hoff
45 *
46 */
47 public final
48 class AttributeList implements DTDConstants, Serializable {
49 public String name;
50 public int type;
51 public Vector<?> values;
52 public int modifier;
53 public String value;
54 public AttributeList next;
55
56 AttributeList() {
57 }
58
59 /**
60 * Create an attribute list element.
61 */
62 public AttributeList(String name) {
63 this.name = name;
64 }
65
66 /**
67 * Create an attribute list element.
68 */
|
1 /*
2 * Copyright (c) 1998, 2014, 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
29 import java.util.Hashtable;
30 import java.util.Enumeration;
31 import java.io.*;
32
33 /**
34 * This class defines the attributes of an SGML element
35 * as described in a DTD using the ATTLIST construct.
36 * An AttributeList can be obtained from the Element
37 * class using the getAttributes() method.
38 * <p>
39 * It is actually an element in a linked list. Use the
40 * getNext() method repeatedly to enumerate all the attributes
41 * of an element.
42 *
43 * @see Element
44 * @author Arthur Van Hoff
45 *
46 */
47 public final
48 class AttributeList implements DTDConstants, Serializable {
49 private static final long serialVersionUID = -1361214058742015233L;
50
51 public String name;
52 public int type;
53 public Vector<?> values;
54 public int modifier;
55 public String value;
56 public AttributeList next;
57
58 AttributeList() {
59 }
60
61 /**
62 * Create an attribute list element.
63 */
64 public AttributeList(String name) {
65 this.name = name;
66 }
67
68 /**
69 * Create an attribute list element.
70 */
|