Home » openjdk-7 » javax » swing » text » html » parser » [javadoc | source]
public final class: Element [javadoc | source]

All Implemented Interfaces:
    java$io$Serializable, DTDConstants

An element as described in a DTD using the ELEMENT construct. This is essentiall the description of a tag. It describes the type, content model, attributes, attribute types etc. It is used to correctly parse a document by the Parser.
Field Summary
public  int index     
public  String name     
public  boolean oStart     
public  boolean oEnd     
public  BitSet inclusions     
public  BitSet exclusions     
public  int type     
public  ContentModel content     
public  AttributeList atts     
static  int maxIndex     
public  Object data    A field to store user data. Mostly used to store style sheets. 
static  Hashtable<String, Integer> contentTypes     
 Element(String name,
    int index) 
    Create a new element.
Method from javax.swing.text.html.parser.Element Summary:
getAttribute,   getAttributeByValue,   getAttributes,   getContent,   getIndex,   getName,   getType,   isEmpty,   name2type,   omitEnd,   omitStart,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.html.parser.Element Detail:
 public AttributeList getAttribute(String name) 
    Get an attribute by name.
 public AttributeList getAttributeByValue(String name) 
    Get an attribute by value.
 public AttributeList getAttributes() 
    Get the attributes.
 public ContentModel getContent() 
    Get content model
 public int getIndex() 
    Get index.
 public String getName() 
    Get the name of the element.
 public int getType() 
    Get type.
 public boolean isEmpty() 
    Check if empty
 public static int name2type(String nm) 
 public boolean omitEnd() 
    Return true if the end tag can be omitted.
 public boolean omitStart() 
    Return true if the start tag can be omitted.
 public String toString() 
    Convert to a string.