javax.swing.text.html.parser
Interface DTDConstants

All Known Implementing Classes:
AttributeList, DocumentParser, DTD, Element, Entity, Parser

public interface DTDConstants

This class defines the SGML basic types, used for describing HTML 4.01 at http://www.w3.org/TR/html4/types.html. Not all constants, defined here, are actually used in HTML 4.01 SGML specification. Some others are defined just as part of the required implementation.

If you need more information about SGML DTD documents, the author suggests to read SGML tutorial on http://www.w3.org/TR/WD-html40-970708/intro/sgmltut.html. We also recommend Goldfarb C.F (1991) The SGML Handbook, Oxford University Press, 688 p, ISBN: 0198537379.


Field Summary
static int ANY
          The ANY constant, specifies an attribute, consisting from arbitrary characters.
static int CDATA
          The CDATA (Character data) constant, specifes the content model, consisting of characters only.
static int CONREF
          The attribute modifier #CONREF constant, specifies the IDREF value of the reference to content in another location of the document.
static int CURRENT
          The attribute modifier #CURRENT constant, specifies the value that at any point in the document is the last value supplied for that element.
static int DEFAULT
          The DEFAULT constant, specifies the default value.
static int EMPTY
          The EMPTY constant, means the element with no content.
static int ENDTAG
          The ENDTAG constant, meaning that the element needs a closing tag.
static int ENTITIES
          The ENTITIES constant (list of ENTITYes)
static int ENTITY
          The ENTITY constant, meaning the numeric or symbolic name of some HTML data.
static int FIXED
          The attribute modifier #FIXED constant, means that the attribute has the fixed value that cannot be changed.
static int GENERAL
          The GENERAL constant, specifies theat the entity is valid in the whole HTML document scope.
static int ID
          The ID constant, means that the token is the unique identifier.
static int IDREF
          The IDREF constant, specifies reference to a valid ID within the document.
static int IDREFS
          The IDREFS constant, a space separated list of IDREFs
static int IMPLIED
          The attribute modifier #IMPLIED constant, indicating that for this attribute the user agent must provide the value itself.
static int MD
          The MD constant.
static int MODEL
          The MODEL constant.
static int MS
          The MS constant.
static int NAME
          The NAME constant, means the token that must begin with letter, followed by any number of letters, digits, hyphens, underscores, colons and periods.
static int NAMES
          The NAMES constant, specifies a space separated of NAMEs.
static int NMTOKEN
          The NMTOKEN constant, specifies the attribute, consisting of characters that can be either digits or alphabetic characters).
static int NMTOKENS
          The NMTOKENS constant, specifies a list of NMTOKENs.
static int NOTATION
          The NOTATION constant, a previously defined data type.
static int NUMBER
          The NUMBER constant (means that the attribute consists of at least one decimal digit).
static int NUMBERS
          The NUMBERS constant, specifies a space separated list of NUMBERs.
static int NUTOKEN
          The NUTOKEN constant.
static int NUTOKENS
          The NUTOKENS constant.
static int PARAMETER
          The PARAMETER constant, specifies that entity is only valid inside SGML DTD scope.
static int PI
          The PI (Processing Instruction) constant, specifies a processing instruction.
static int PUBLIC
          The PUBLIC constant, specifies the public entity.
static int RCDATA
          The RCDATA constant (Entity References and Character Data), specifies the content model, consisting of characters AND entities.
static int REQUIRED
          The attribute modifier #REQUIRED constant, indicates that the value must be supplied.
static int SDATA
          The SDATA constant.
static int STARTTAG
          The STARTTAG, meaning that the element needs a starting tag.
static int SYSTEM
          The SYSTEM constant, specifies the system entitiy.
 

Field Detail

CDATA

static final int CDATA
The CDATA (Character data) constant, specifes the content model, consisting of characters only. In SGML for HTML 4.01, the character entities must be replaced by characters, the line feeds must be ignored and any number of the subsequent carriage returns or tabs must be replaced by a single space.

See Also:
Constant Field Values

EMPTY

static final int EMPTY
The EMPTY constant, means the element with no content.

See Also:
Constant Field Values

ID

static final int ID
The ID constant, means that the token is the unique identifier. This identifier can be referenced by attribute with value of IDREF. The identifier must begin with letter, followed by any number of letters, digits, hyphens, underscores, colons and periods.

See Also:
Constant Field Values

IDREF

static final int IDREF
The IDREF constant, specifies reference to a valid ID within the document.

See Also:
Constant Field Values

IDREFS

static final int IDREFS
The IDREFS constant, a space separated list of IDREFs

See Also:
Constant Field Values

NAME

static final int NAME
The NAME constant, means the token that must begin with letter, followed by any number of letters, digits, hyphens, underscores, colons and periods.

See Also:
Constant Field Values

NAMES

static final int NAMES
The NAMES constant, specifies a space separated of NAMEs.

See Also:
Constant Field Values

NMTOKEN

static final int NMTOKEN
The NMTOKEN constant, specifies the attribute, consisting of characters that can be either digits or alphabetic characters).

See Also:
Constant Field Values

NMTOKENS

static final int NMTOKENS
The NMTOKENS constant, specifies a list of NMTOKENs.

See Also:
Constant Field Values

NOTATION

static final int NOTATION
The NOTATION constant, a previously defined data type.

See Also:
Constant Field Values

NUMBER

static final int NUMBER
The NUMBER constant (means that the attribute consists of at least one decimal digit).

See Also:
Constant Field Values

NUMBERS

static final int NUMBERS
The NUMBERS constant, specifies a space separated list of NUMBERs.

See Also:
Constant Field Values

NUTOKEN

static final int NUTOKEN
The NUTOKEN constant.

See Also:
Constant Field Values

NUTOKENS

static final int NUTOKENS
The NUTOKENS constant.

See Also:
Constant Field Values

PUBLIC

static final int PUBLIC
The PUBLIC constant, specifies the public entity. The PUBLIC entities are assumed to be known to many systems so that a full declaration need not be transmitted. For example, <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">

See Also:
Constant Field Values

SYSTEM

static final int SYSTEM
The SYSTEM constant, specifies the system entitiy. The system entities are assumed to be known but require the clear identifer (like the file path), where they can be found in the system. For example, <DOCTYPE html SYSTEM "/path/to/file.dtd"> .

See Also:
Constant Field Values

PARAMETER

static final int PARAMETER
The PARAMETER constant, specifies that entity is only valid inside SGML DTD scope.

See Also:
Constant Field Values

GENERAL

static final int GENERAL
The GENERAL constant, specifies theat the entity is valid in the whole HTML document scope.

See Also:
Constant Field Values

REQUIRED

static final int REQUIRED
The attribute modifier #REQUIRED constant, indicates that the value must be supplied.

See Also:
Constant Field Values

FIXED

static final int FIXED
The attribute modifier #FIXED constant, means that the attribute has the fixed value that cannot be changed.

See Also:
Constant Field Values

IMPLIED

static final int IMPLIED
The attribute modifier #IMPLIED constant, indicating that for this attribute the user agent must provide the value itself.

See Also:
Constant Field Values

CURRENT

static final int CURRENT
The attribute modifier #CURRENT constant, specifies the value that at any point in the document is the last value supplied for that element. A value is required to be supplied for the first occurrence of an element

See Also:
Constant Field Values

CONREF

static final int CONREF
The attribute modifier #CONREF constant, specifies the IDREF value of the reference to content in another location of the document. The element with this attribute is empty, the content from that another location must be used instead.

See Also:
Constant Field Values

STARTTAG

static final int STARTTAG
The STARTTAG, meaning that the element needs a starting tag.

See Also:
Constant Field Values

ENDTAG

static final int ENDTAG
The ENDTAG constant, meaning that the element needs a closing tag.

See Also:
Constant Field Values

ANY

static final int ANY
The ANY constant, specifies an attribute, consisting from arbitrary characters.

See Also:
Constant Field Values

DEFAULT

static final int DEFAULT
The DEFAULT constant, specifies the default value.

See Also:
Constant Field Values

ENTITIES

static final int ENTITIES
The ENTITIES constant (list of ENTITYes)

See Also:
Constant Field Values

ENTITY

static final int ENTITY
The ENTITY constant, meaning the numeric or symbolic name of some HTML data.

See Also:
Constant Field Values

MD

static final int MD
The MD constant.

See Also:
Constant Field Values

MODEL

static final int MODEL
The MODEL constant.

See Also:
Constant Field Values

MS

static final int MS
The MS constant.

See Also:
Constant Field Values

PI

static final int PI
The PI (Processing Instruction) constant, specifies a processing instruction. Processing instructions are used to embed information intended for specific applications.

See Also:
Constant Field Values

RCDATA

static final int RCDATA
The RCDATA constant (Entity References and Character Data), specifies the content model, consisting of characters AND entities. The "<" is threated as an ordinary character, but "&name;" still means the general entity with the given name.

See Also:
Constant Field Values

SDATA

static final int SDATA
The SDATA constant. Means that the value contains the entity name and the replacement value of a character entity reference.

See Also:
Constant Field Values