java.lang.Object
javax.swing.text.html.parser.AttributeList
- All Implemented Interfaces:
- Serializable,- DTDConstants
This class defines the attributes of an SGML element
 as described in a DTD using the ATTLIST construct.
 An AttributeList can be obtained from the Element
 class using the getAttributes() method.
 
It is actually an element in a linked list. Use the getNext() method repeatedly to enumerate all the attributes of an element.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionintThe attribute modifierThe attribute nameThe next attribute in the listintThe attribute typeThe default attribute valueVector<?> The possible attribute valuesFields declared in interface javax.swing.text.html.parser.DTDConstantsANY, 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 SummaryConstructorsConstructorDescriptionAttributeList(String name) Create an attribute list element.AttributeList(String name, int type, int modifier, String value, Vector<?> values, AttributeList next) Create an attribute list element.
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the attribute modifier.getName()Returns the attribute name.getNext()Returns the next attribute in the list.intgetType()Returns the attribute type.getValue()Returns default attribute value.Enumeration<?> Returns possible attribute values.static intConverts an attribute name to the typetoString()Returns a string representation of the object.static Stringtype2name(int tp) Converts a type to the attribute name
- 
Field Details- 
nameThe attribute name
- 
typepublic int typeThe attribute type
- 
valuesThe possible attribute values
- 
modifierpublic int modifierThe attribute modifier
- 
valueThe default attribute value
- 
nextThe next attribute in the list
 
- 
- 
Constructor Details- 
AttributeListCreate an attribute list element.- Parameters:
- name- the attribute name
 
- 
AttributeListpublic AttributeList(String name, int type, int modifier, String value, Vector<?> values, AttributeList next) Create an attribute list element.- Parameters:
- name- the attribute name
- type- the attribute type
- modifier- the attribute modifier
- value- the default attribute value
- values- the possible attribute values
- next- the next attribute in the list
 
 
- 
- 
Method Details- 
getNameReturns the attribute name.- Returns:
- the attribute name
 
- 
getTypepublic int getType()Returns the attribute type.- Returns:
- the attribute type
- See Also:
 
- 
getModifierpublic int getModifier()Returns the attribute modifier.- Returns:
- the attribute modifier
- See Also:
 
- 
getValuesReturns possible attribute values.- Returns:
- possible attribute values
 
- 
getValueReturns default attribute value.- Returns:
- default attribute value
 
- 
getNextReturns the next attribute in the list.- Returns:
- the next attribute in the list
 
- 
toStringDescription copied from class:ObjectReturns a string representation of the object.
- 
name2typeConverts an attribute name to the type- Parameters:
- nm- an attribute name
- Returns:
- the type
 
- 
type2nameConverts a type to the attribute name- Parameters:
- tp- a type
- Returns:
- the attribute name
 
 
-