Home » openjdk-7 » javax » swing » text » html » parser » [javadoc | source]
javax.swing.text.html.parser
public final class: Entity [javadoc | source]
java.lang.Object
   javax.swing.text.html.parser.Entity

All Implemented Interfaces:
    DTDConstants

An entity is described in a DTD using the ENTITY construct. It defines the type and value of the the entity.
Field Summary
public  String name     
public  int type     
public  char[] data     
static  Hashtable<String, Integer> entityTypes     
Constructor:
 public Entity(String name,
    int type,
    char[] data) 
    Creates an entity.
    Parameters:
    name - the name of the entity
    type - the type of the entity
    data - the char array of data
Method from javax.swing.text.html.parser.Entity Summary:
getData,   getName,   getString,   getType,   isGeneral,   isParameter,   name2type
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.html.parser.Entity Detail:
 public char[] getData() 
    Returns the data.
 public String getName() 
    Gets the name of the entity.
 public String getString() 
    Returns the data as a String.
 public int getType() 
    Gets the type of the entity.
 public boolean isGeneral() 
    Returns true if it is a general entity.
 public boolean isParameter() 
    Returns true if it is a parameter entity.
 public static int name2type(String nm) 
    Converts nm string to the corresponding entity type. If the string does not have a corresponding entity type, returns the type corresponding to "CDATA". Valid entity types are: "PUBLIC", "CDATA", "SDATA", "PI", "STARTTAG", "ENDTAG", "MS", "MD", "SYSTEM".