javax.swing.text.html.parser
Class AttributeList

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.text.html.parser.AttributeList
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , DTDConstants sample code for javax.swing.text.html.parser.DTDConstants definition code for javax.swing.text.html.parser.DTDConstants

public final class AttributeList
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements DTDConstants sample code for javax.swing.text.html.parser.DTDConstants definition code for javax.swing.text.html.parser.DTDConstants , Serializable sample code for java.io.Serializable definition code for java.io.Serializable

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:
Element sample code for javax.swing.text.html.parser.Element definition code for javax.swing.text.html.parser.Element , Serialized Form

Field Summary
 int modifier sample code for javax.swing.text.html.parser.AttributeList.modifier definition code for javax.swing.text.html.parser.AttributeList.modifier
           
 String sample code for java.lang.String definition code for java.lang.String name sample code for javax.swing.text.html.parser.AttributeList.name definition code for javax.swing.text.html.parser.AttributeList.name
           
 AttributeList sample code for javax.swing.text.html.parser.AttributeList definition code for javax.swing.text.html.parser.AttributeList next sample code for javax.swing.text.html.parser.AttributeList.next definition code for javax.swing.text.html.parser.AttributeList.next
           
 int type sample code for javax.swing.text.html.parser.AttributeList.type definition code for javax.swing.text.html.parser.AttributeList.type
           
 String sample code for java.lang.String definition code for java.lang.String value sample code for javax.swing.text.html.parser.AttributeList.value definition code for javax.swing.text.html.parser.AttributeList.value
           
 Vector sample code for java.util.Vector definition code for java.util.Vector <?> values sample code for javax.swing.text.html.parser.AttributeList.values definition code for javax.swing.text.html.parser.AttributeList.values
           
 
Fields inherited from interface javax.swing.text.html.parser.DTDConstants sample code for javax.swing.text.html.parser.DTDConstants definition code for javax.swing.text.html.parser.DTDConstants
ANY sample code for javax.swing.text.html.parser.DTDConstants.ANY definition code for javax.swing.text.html.parser.DTDConstants.ANY , CDATA sample code for javax.swing.text.html.parser.DTDConstants.CDATA definition code for javax.swing.text.html.parser.DTDConstants.CDATA , CONREF sample code for javax.swing.text.html.parser.DTDConstants.CONREF definition code for javax.swing.text.html.parser.DTDConstants.CONREF , CURRENT sample code for javax.swing.text.html.parser.DTDConstants.CURRENT definition code for javax.swing.text.html.parser.DTDConstants.CURRENT , DEFAULT sample code for javax.swing.text.html.parser.DTDConstants.DEFAULT definition code for javax.swing.text.html.parser.DTDConstants.DEFAULT , EMPTY sample code for javax.swing.text.html.parser.DTDConstants.EMPTY definition code for javax.swing.text.html.parser.DTDConstants.EMPTY , ENDTAG sample code for javax.swing.text.html.parser.DTDConstants.ENDTAG definition code for javax.swing.text.html.parser.DTDConstants.ENDTAG , ENTITIES sample code for javax.swing.text.html.parser.DTDConstants.ENTITIES definition code for javax.swing.text.html.parser.DTDConstants.ENTITIES , ENTITY sample code for javax.swing.text.html.parser.DTDConstants.ENTITY definition code for javax.swing.text.html.parser.DTDConstants.ENTITY , FIXED sample code for javax.swing.text.html.parser.DTDConstants.FIXED definition code for javax.swing.text.html.parser.DTDConstants.FIXED , GENERAL sample code for javax.swing.text.html.parser.DTDConstants.GENERAL definition code for javax.swing.text.html.parser.DTDConstants.GENERAL , ID sample code for javax.swing.text.html.parser.DTDConstants.ID definition code for javax.swing.text.html.parser.DTDConstants.ID , IDREF sample code for javax.swing.text.html.parser.DTDConstants.IDREF definition code for javax.swing.text.html.parser.DTDConstants.IDREF , IDREFS sample code for javax.swing.text.html.parser.DTDConstants.IDREFS definition code for javax.swing.text.html.parser.DTDConstants.IDREFS , IMPLIED sample code for javax.swing.text.html.parser.DTDConstants.IMPLIED definition code for javax.swing.text.html.parser.DTDConstants.IMPLIED , MD sample code for javax.swing.text.html.parser.DTDConstants.MD definition code for javax.swing.text.html.parser.DTDConstants.MD , MODEL sample code for javax.swing.text.html.parser.DTDConstants.MODEL definition code for javax.swing.text.html.parser.DTDConstants.MODEL , MS sample code for javax.swing.text.html.parser.DTDConstants.MS definition code for javax.swing.text.html.parser.DTDConstants.MS , NAME sample code for javax.swing.text.html.parser.DTDConstants.NAME definition code for javax.swing.text.html.parser.DTDConstants.NAME , NAMES sample code for javax.swing.text.html.parser.DTDConstants.NAMES definition code for javax.swing.text.html.parser.DTDConstants.NAMES , NMTOKEN sample code for javax.swing.text.html.parser.DTDConstants.NMTOKEN definition code for javax.swing.text.html.parser.DTDConstants.NMTOKEN , NMTOKENS sample code for javax.swing.text.html.parser.DTDConstants.NMTOKENS definition code for javax.swing.text.html.parser.DTDConstants.NMTOKENS , NOTATION sample code for javax.swing.text.html.parser.DTDConstants.NOTATION definition code for javax.swing.text.html.parser.DTDConstants.NOTATION , NUMBER sample code for javax.swing.text.html.parser.DTDConstants.NUMBER definition code for javax.swing.text.html.parser.DTDConstants.NUMBER , NUMBERS sample code for javax.swing.text.html.parser.DTDConstants.NUMBERS definition code for javax.swing.text.html.parser.DTDConstants.NUMBERS , NUTOKEN sample code for javax.swing.text.html.parser.DTDConstants.NUTOKEN definition code for javax.swing.text.html.parser.DTDConstants.NUTOKEN , NUTOKENS sample code for javax.swing.text.html.parser.DTDConstants.NUTOKENS definition code for javax.swing.text.html.parser.DTDConstants.NUTOKENS , PARAMETER sample code for javax.swing.text.html.parser.DTDConstants.PARAMETER definition code for javax.swing.text.html.parser.DTDConstants.PARAMETER , PI sample code for javax.swing.text.html.parser.DTDConstants.PI definition code for javax.swing.text.html.parser.DTDConstants.PI , PUBLIC sample code for javax.swing.text.html.parser.DTDConstants.PUBLIC definition code for javax.swing.text.html.parser.DTDConstants.PUBLIC , RCDATA sample code for javax.swing.text.html.parser.DTDConstants.RCDATA definition code for javax.swing.text.html.parser.DTDConstants.RCDATA , REQUIRED sample code for javax.swing.text.html.parser.DTDConstants.REQUIRED definition code for javax.swing.text.html.parser.DTDConstants.REQUIRED , SDATA sample code for javax.swing.text.html.parser.DTDConstants.SDATA definition code for javax.swing.text.html.parser.DTDConstants.SDATA , STARTTAG sample code for javax.swing.text.html.parser.DTDConstants.STARTTAG definition code for javax.swing.text.html.parser.DTDConstants.STARTTAG , SYSTEM sample code for javax.swing.text.html.parser.DTDConstants.SYSTEM definition code for javax.swing.text.html.parser.DTDConstants.SYSTEM
 
Constructor Summary
AttributeList sample code for javax.swing.text.html.parser.AttributeList.AttributeList(java.lang.String) definition code for javax.swing.text.html.parser.AttributeList.AttributeList(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Create an attribute list element.
AttributeList sample code for javax.swing.text.html.parser.AttributeList.AttributeList(java.lang.String, int, int, java.lang.String, java.util.Vector, javax.swing.text.html.parser.AttributeList) definition code for javax.swing.text.html.parser.AttributeList.AttributeList(java.lang.String, int, int, java.lang.String, java.util.Vector, javax.swing.text.html.parser.AttributeList) (String sample code for java.lang.String definition code for java.lang.String  name, int type, int modifier, String sample code for java.lang.String definition code for java.lang.String  value, Vector sample code for java.util.Vector definition code for java.util.Vector <?> values, AttributeList sample code for javax.swing.text.html.parser.AttributeList definition code for javax.swing.text.html.parser.AttributeList  next)
          Create an attribute list element.
 
Method Summary
 int getModifier sample code for javax.swing.text.html.parser.AttributeList.getModifier() definition code for javax.swing.text.html.parser.AttributeList.getModifier() ()
           
 String sample code for java.lang.String definition code for java.lang.String getName sample code for javax.swing.text.html.parser.AttributeList.getName() definition code for javax.swing.text.html.parser.AttributeList.getName() ()
           
 AttributeList sample code for javax.swing.text.html.parser.AttributeList definition code for javax.swing.text.html.parser.AttributeList getNext sample code for javax.swing.text.html.parser.AttributeList.getNext() definition code for javax.swing.text.html.parser.AttributeList.getNext() ()
           
 int getType sample code for javax.swing.text.html.parser.AttributeList.getType() definition code for javax.swing.text.html.parser.AttributeList.getType() ()
           
 String sample code for java.lang.String definition code for java.lang.String getValue sample code for javax.swing.text.html.parser.AttributeList.getValue() definition code for javax.swing.text.html.parser.AttributeList.getValue() ()
           
 Enumeration sample code for java.util.Enumeration definition code for java.util.Enumeration <?> getValues sample code for javax.swing.text.html.parser.AttributeList.getValues() definition code for javax.swing.text.html.parser.AttributeList.getValues() ()
           
static int name2type sample code for javax.swing.text.html.parser.AttributeList.name2type(java.lang.String) definition code for javax.swing.text.html.parser.AttributeList.name2type(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  nm)
           
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.swing.text.html.parser.AttributeList.toString() definition code for javax.swing.text.html.parser.AttributeList.toString() ()
          Returns a string representation of the object.
static String sample code for java.lang.String definition code for java.lang.String type2name sample code for javax.swing.text.html.parser.AttributeList.type2name(int) definition code for javax.swing.text.html.parser.AttributeList.type2name(int) (int tp)
           
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

name sample code for javax.swing.text.html.parser.AttributeList.name

public String sample code for java.lang.String definition code for java.lang.String  name

type sample code for javax.swing.text.html.parser.AttributeList.type

public int type

values sample code for javax.swing.text.html.parser.AttributeList.values

public Vector sample code for java.util.Vector definition code for java.util.Vector <?> values

modifier sample code for javax.swing.text.html.parser.AttributeList.modifier

public int modifier

value sample code for javax.swing.text.html.parser.AttributeList.value

public String sample code for java.lang.String definition code for java.lang.String  value

next sample code for javax.swing.text.html.parser.AttributeList.next

public AttributeList sample code for javax.swing.text.html.parser.AttributeList definition code for javax.swing.text.html.parser.AttributeList  next
Constructor Detail

AttributeList sample code for javax.swing.text.html.parser.AttributeList(java.lang.String) definition code for javax.swing.text.html.parser.AttributeList(java.lang.String)

public AttributeList(String sample code for java.lang.String definition code for java.lang.String  name)
Create an attribute list element.


AttributeList sample code for javax.swing.text.html.parser.AttributeList(java.lang.String, int, int, java.lang.String, java.util.Vector<?>, javax.swing.text.html.parser.AttributeList) definition code for javax.swing.text.html.parser.AttributeList(java.lang.String, int, int, java.lang.String, java.util.Vector<?>, javax.swing.text.html.parser.AttributeList)

public AttributeList(String sample code for java.lang.String definition code for java.lang.String  name,
                     int type,
                     int modifier,
                     String sample code for java.lang.String definition code for java.lang.String  value,
                     Vector sample code for java.util.Vector definition code for java.util.Vector <?> values,
                     AttributeList sample code for javax.swing.text.html.parser.AttributeList definition code for javax.swing.text.html.parser.AttributeList  next)
Create an attribute list element.

Method Detail

getName sample code for javax.swing.text.html.parser.AttributeList.getName() definition code for javax.swing.text.html.parser.AttributeList.getName()

public String sample code for java.lang.String definition code for java.lang.String  getName()
Returns:
attribute name

getType sample code for javax.swing.text.html.parser.AttributeList.getType() definition code for javax.swing.text.html.parser.AttributeList.getType()

public int getType()
Returns:
attribute type
See Also:
DTDConstants sample code for javax.swing.text.html.parser.DTDConstants definition code for javax.swing.text.html.parser.DTDConstants

getModifier sample code for javax.swing.text.html.parser.AttributeList.getModifier() definition code for javax.swing.text.html.parser.AttributeList.getModifier()

public int getModifier()
Returns:
attribute modifier
See Also:
DTDConstants sample code for javax.swing.text.html.parser.DTDConstants definition code for javax.swing.text.html.parser.DTDConstants

getValues sample code for javax.swing.text.html.parser.AttributeList.getValues() definition code for javax.swing.text.html.parser.AttributeList.getValues()

public Enumeration sample code for java.util.Enumeration definition code for java.util.Enumeration <?> getValues()
Returns:
possible attribute values

getValue sample code for javax.swing.text.html.parser.AttributeList.getValue() definition code for javax.swing.text.html.parser.AttributeList.getValue()

public String sample code for java.lang.String definition code for java.lang.String  getValue()
Returns:
default attribute value

getNext sample code for javax.swing.text.html.parser.AttributeList.getNext() definition code for javax.swing.text.html.parser.AttributeList.getNext()

public AttributeList sample code for javax.swing.text.html.parser.AttributeList definition code for javax.swing.text.html.parser.AttributeList  getNext()
Returns:
the next attribute in the list

toString sample code for javax.swing.text.html.parser.AttributeList.toString() definition code for javax.swing.text.html.parser.AttributeList.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Description copied from class: Object sample code for java.lang.Object.toString() definition code for java.lang.Object.toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
string representation

name2type sample code for javax.swing.text.html.parser.AttributeList.name2type(java.lang.String) definition code for javax.swing.text.html.parser.AttributeList.name2type(java.lang.String)

public static int name2type(String sample code for java.lang.String definition code for java.lang.String  nm)

type2name sample code for javax.swing.text.html.parser.AttributeList.type2name(int) definition code for javax.swing.text.html.parser.AttributeList.type2name(int)

public static String sample code for java.lang.String definition code for java.lang.String  type2name(int tp)