API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text.html.parser. DTD View Source
Author(s)
Arthur van Hoff
Since
Version
1.24 04/07/06
Serial
Hierarchy
 Object
      DTD
Implements
 DTDConstants
Subclasses
Description
public class DTD
  The representation of an SGML DTD.
Constructors
protected DTD (String name)
  Creates a new DTD with the specified name.
Methods
Hide/Show inherited methods
protected AttributeList defAttributeList (String name, int type, int modifier, String value, String values, AttributeList atts)
  Creates and returns an AttributeList.
protected ContentModel defContentModel (int type, Object obj, ContentModel next)
  Creates and returns a new content model.
protected Element defElement (String name, int type, boolean omitStart, boolean omitEnd, ContentModel content, String exclusions, String inclusions, AttributeList atts)
  Creates and returns an Element.
public Entity defEntity (String name, int type, int ch)
  Creates and returns a character Entity.
protected Entity defEntity (String name, int type, String str)
  Creates and returns an Entity.
public void defineAttributes (String name, AttributeList atts)
  Defines attributes for an Element.
public Element defineElement (String name, int type, boolean omitStart, boolean omitEnd, ContentModel content, BitSet exclusions, BitSet inclusions, AttributeList atts)
  Returns the Element which matches the specified parameters.
public Entity defineEntity (String name, int type, char[] data)
  Defines an entity.
pack-private boolean elementExists (String name)
  Returns true if the element is part of the DTD, otherwise returns false.
publicstatic DTD getDTD (String name) throws IOException
  Returns a DTD with the specified name.
public Element getElement (int index)
  Gets an element by index.
public Element getElement (String name)
  Gets an element by name.
public Entity getEntity (int ch)
  Gets a character entity.
public Entity getEntity (String name)
  Gets an entity by name.
public String getName ()
  Gets the name of the DTD.
publicstatic void putDTDHash (String name, DTD dtd)
public void read (DataInputStream in) throws IOException
  Recreates a DTD from an archived format.
public String toString ()
  Returns a string representation of this DTD.
Fields
Hide/Show inherited fields
publicfinalstatic int ANY = "19" [Inherited From DTDConstants]
publicfinal Element applet
publicfinal Element base
publicfinal Element body
publicfinalstatic int CDATA = "1" [Inherited From DTDConstants]
publicfinalstatic int CONREF = "4" [Inherited From DTDConstants]
publicfinalstatic int CURRENT = "3" [Inherited From DTDConstants]
publicfinalstatic int DEFAULT = "131072" [Inherited From DTDConstants]
pack-privatestatic Hashtable dtdHash
The hashtable of DTDs.
public Hashtable<String, Element> elementHash
public Vector<Element> elements
publicfinalstatic int EMPTY = "17" [Inherited From DTDConstants]
publicfinalstatic int ENDTAG = "14" [Inherited From DTDConstants]
publicfinalstatic int ENTITIES = "3" [Inherited From DTDConstants]
publicfinalstatic int ENTITY = "2" [Inherited From DTDConstants]
public Hashtable<Object, Entity> entityHash
publicfinalstatic int FILE_VERSION = "1"
publicfinalstatic int FIXED = "1" [Inherited From DTDConstants]
publicfinalstatic int GENERAL = "65536" [Inherited From DTDConstants]
publicfinal Element head
publicfinal Element html
publicfinalstatic int ID = "4" [Inherited From DTDConstants]
publicfinalstatic int IDREF = "5" [Inherited From DTDConstants]
publicfinalstatic int IDREFS = "6" [Inherited From DTDConstants]
publicfinalstatic int IMPLIED = "5" [Inherited From DTDConstants]
publicfinal Element isindex
pack-privatefinal Element link
publicfinalstatic int MD = "16" [Inherited From DTDConstants]
publicfinal Element meta
publicfinalstatic int MODEL = "18" [Inherited From DTDConstants]
publicfinalstatic int MS = "15" [Inherited From DTDConstants]
public String name
publicfinalstatic int NAME = "7" [Inherited From DTDConstants]
publicfinalstatic int NAMES = "8" [Inherited From DTDConstants]
publicfinalstatic int NMTOKEN = "9" [Inherited From DTDConstants]
publicfinalstatic int NMTOKENS = "10" [Inherited From DTDConstants]
publicfinalstatic int NOTATION = "11" [Inherited From DTDConstants]
publicfinalstatic int NUMBER = "12" [Inherited From DTDConstants]
publicfinalstatic int NUMBERS = "13" [Inherited From DTDConstants]
publicfinalstatic int NUTOKEN = "14" [Inherited From DTDConstants]
publicfinalstatic int NUTOKENS = "15" [Inherited From DTDConstants]
publicfinal Element p
publicfinal Element param
publicfinalstatic int PARAMETER = "262144" [Inherited From DTDConstants]
publicfinal Element pcdata
publicfinalstatic int PI = "12" [Inherited From DTDConstants]
publicfinalstatic int PUBLIC = "10" [Inherited From DTDConstants]
publicfinalstatic int RCDATA = "16" [Inherited From DTDConstants]
publicfinalstatic int REQUIRED = "2" [Inherited From DTDConstants]
pack-privatefinal Element script
publicfinalstatic int SDATA = "11" [Inherited From DTDConstants]
publicfinalstatic int STARTTAG = "13" [Inherited From DTDConstants]
pack-privatefinal Element style
publicfinalstatic int SYSTEM = "17" [Inherited From DTDConstants]
publicfinal Element title
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar