| java.lang.Object | |
| ↳ | javax.swing.text.html.parser.DTD |
The representation of an SGML DTD. DTD describes a document syntax and is used in parsing of HTML documents. It contains a list of elements and their attributes as well as a list of entities defined in the DTD.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | FILE_VERSION | ||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
javax.swing.text.html.parser.DTDConstants
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| applet | |||||||||||
| base | |||||||||||
| body | |||||||||||
| elementHash | |||||||||||
| elements | |||||||||||
| entityHash | |||||||||||
| head | |||||||||||
| html | |||||||||||
| isindex | |||||||||||
| meta | |||||||||||
| name | |||||||||||
| p | |||||||||||
| param | |||||||||||
| pcdata | |||||||||||
| title | |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new DTD with the specified name.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates and returns a character
Entity. | |||||||||||
Defines attributes for an
Element. | |||||||||||
Returns the
Element which matches the
specified parameters. | |||||||||||
Defines an entity.
| |||||||||||
Returns a DTD with the specified
name. | |||||||||||
Gets an element by index.
| |||||||||||
Gets an element by name.
| |||||||||||
Gets an entity by name.
| |||||||||||
Gets a character entity.
| |||||||||||
Gets the name of the DTD.
| |||||||||||
Recreates a DTD from an archived format.
| |||||||||||
Returns a string representation of this DTD.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates and returns an
AttributeList. | |||||||||||
Creates and returns a new content model.
| |||||||||||
Creates and returns an
Element. | |||||||||||
Creates and returns an
Entity. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new DTD with the specified name.
| name | the name, as a String of the new DTD
|
|---|
Creates and returns a character Entity.
| name | the entity's name |
|---|
Entity
Defines attributes for an Element.
| name | the name of the Element |
|---|---|
| atts | the AttributeList specifying the
Element
|
Returns the Element which matches the
specified parameters. If one doesn't exist, a new
one is created and returned.
| name | the name of the Element |
|---|---|
| type | the type of the Element |
| omitStart | true if start should be omitted |
| omitEnd | true if end should be omitted |
| content | the ContentModel |
| atts | the AttributeList specifying the
Element |
Element specified
Defines an entity. If the Entity specified
by name, type, and data
exists, it is returned; otherwise a new Entity
is created and is returned.
| name | the name of the Entity as a String |
|---|---|
| type | the type of the Entity |
| data | the Entity's data |
Entity requested or a new Entity
if not found
Returns a DTD with the specified name. If
a DTD with that name doesn't exist, one is created
and returned. Any uppercase characters in the name
are converted to lowercase.
| name | the name of the DTD |
|---|
name
| IOException |
|---|
Gets an element by index.
| index | the requested index |
|---|
Element corresponding to
index
Gets an element by name. A new element is created if the element doesn't exist.
| name | the requested String |
|---|
Element corresponding to
name, which may be newly created
Gets an entity by name.
Entity corresponding to the
name String
Gets a character entity.
Entity corresponding to the
ch character
Recreates a DTD from an archived format.
| in | the DataInputStream to read from
|
|---|
| IOException |
|---|
Returns a string representation of this DTD.
Creates and returns an AttributeList.
| name | the attribute list's name |
|---|
AttributeList
Creates and returns a new content model.
| type | the type of the new content model |
|---|
ContentModel
Creates and returns an Element.
| name | the element's name |
|---|
Element
Creates and returns an Entity.
| name | the entity's name |
|---|
Entity