Serializable
, DTDConstants
public final class AttributeList extends Object implements DTDConstants, Serializable
It is actually an element in a linked list. Use the getNext() method repeatedly to enumerate all the attributes of an element.
Modifier and Type | Field | Description |
---|---|---|
int |
modifier |
The attribute modifier |
String |
name |
The attribute name |
AttributeList |
next |
The next attribute in the list |
int |
type |
The attribute type |
String |
value |
The default attribute value |
Vector |
values |
The possible attribute values |
ANY, CDATA, CONREF, CURRENT, DEFAULT, EMPTY, ENDTAG, ENTITIES, ENTITY, FIXED, GENERAL, ID, IDREF, IDREFS, IMPLIED, MD, MODEL, MS, NAME, NAMES, NMTOKEN, NMTOKENS, NOTATION, NUMBER, NUMBERS, NUTOKEN, NUTOKENS, PARAMETER, PI, PUBLIC, RCDATA, REQUIRED, SDATA, STARTTAG, SYSTEM
Constructor | Description |
---|---|
AttributeList |
Create an attribute list element. |
AttributeList |
Create an attribute list element. |
Modifier and Type | Method | Description |
---|---|---|
int |
getModifier() |
Returns the attribute modifier. |
String |
getName() |
Returns the attribute name. |
AttributeList |
getNext() |
Returns the next attribute in the list. |
int |
getType() |
Returns the attribute type. |
String |
getValue() |
Returns default attribute value. |
Enumeration |
getValues() |
Returns possible attribute values. |
static int |
name2type |
Converts an attribute name to the type |
String |
toString() |
Returns a string representation of the object. |
static String |
type2name |
Converts a type to the attribute name |
public String name
public int type
public Vector<?> values
public int modifier
public String value
public AttributeList next
public AttributeList(String name)
name
- the attribute namepublic AttributeList(String name, int type, int modifier, String value, Vector<?> values, AttributeList next)
name
- the attribute nametype
- the attribute typemodifier
- the attribute modifiervalue
- the default attribute valuevalues
- the possible attribute valuesnext
- the next attribute in the listpublic String getName()
public int getType()
public int getModifier()
public Enumeration<?> getValues()
public String getValue()
public AttributeList getNext()
public String toString()
Object
public static int name2type(String nm)
nm
- an attribute namepublic static String type2name(int tp)
tp
- a type
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/text/html/parser/AttributeList.html