javax.swing.text.html.parser
Class Entity
java.lang.Object
|
+--javax.swing.text.html.parser.Entity
- public final class Entity
- extends Object
- implements DTDConstants
An entity in as described in a DTD using the ENTITY construct.
It defines the type and value of the the entity.
- See Also:
DTD
Constructor Summary |
Entity(String name,
int type,
char[] data)
Create an entity. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
name
public String name
type
public int type
data
public char[] data
Entity
public Entity(String name,
int type,
char[] data)
- Create an entity.
getName
public String getName()
- Get the name of the entity.
getType
public int getType()
- Get the type of the entity.
isParameter
public boolean isParameter()
- Return true if it is a parameter entity.
isGeneral
public boolean isGeneral()
- Return true if it is a parameter entity.
getData
public char[] getData()
- Return the data.
getString
public String getString()
- Return the data as a string.
name2type
public static int name2type(String nm)
Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.