javax.swing.text.html.parser

Interface DTDConstants

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
intANY
The ANY constant, specifies an attribute, consisting from arbitrary characters.
intCDATA
The CDATA (Character data) constant, specifes the content model, consisting of characters only.
intCONREF
The attribute modifier #CONREF constant, specifies the IDREF value of the reference to content in another location of the document.
intCURRENT
The attribute modifier #CURRENT constant, specifies the value that at any point in the document is the last value supplied for that element.
intDEFAULT
The DEFAULT constant, specifies the default value.
intEMPTY
The EMPTY constant, means the element with no content.
intENDTAG
The ENDTAG constant, meaning that the element needs a closing tag.
intENTITIES
The ENTITIES constant (list of ENTITYes)
intENTITY
The ENTITY constant, meaning the numeric or symbolic name of some HTML data.
intFIXED
The attribute modifier #FIXED constant, means that the attribute has the fixed value that cannot be changed.
intGENERAL
The GENERAL constant, specifies theat the entity is valid in the whole HTML document scope.
intID
The ID constant, means that the token is the unique identifier.
intIDREF
The IDREF constant, specifies reference to a valid ID within the document.
intIDREFS
The IDREFS constant, a space separated list of IDREFs
intIMPLIED
The attribute modifier #IMPLIED constant, indicating that for this attribute the user agent must provide the value itself.
intMD
The MD constant.
intMODEL
The MODEL constant.
intMS
The MS constant.
intNAME
The NAME constant, means the token that must begin with letter, followed by any number of letters, digits, hyphens, underscores, colons and periods.
intNAMES
The NAMES constant, specifies a space separated of NAMEs.
intNMTOKEN
The NMTOKEN constant, specifies the attribute, consisting of characters that can be either digits or alphabetic characters).
intNMTOKENS
The NMTOKENS constant, specifies a list of NMTOKENs.
intNOTATION
The NOTATION constant, a previously defined data type.
intNUMBER
The NUMBER constant (means that the attribute consists of at least one decimal digit).
intNUMBERS
The NUMBERS constant, specifies a space separated list of NUMBERs.
intNUTOKEN
The NUTOKEN constant.
intNUTOKENS
The NUTOKENS constant.
intPARAMETER
The PARAMETER constant, specifies that entity is only valid inside SGML DTD scope.
intPI
The PI (Processing Instruction) constant, specifies a processing instruction.
intPUBLIC
The PUBLIC constant, specifies the public entity.
intRCDATA
The RCDATA constant (Entity References and Character Data), specifies the content model, consisting of characters AND entities.
intREQUIRED
The attribute modifier #REQUIRED constant, indicates that the value must be supplied.
intSDATA
The SDATA constant.
intSTARTTAG
The STARTTAG, meaning that the element needs a starting tag.
intSYSTEM
The SYSTEM constant, specifies the system entitiy.

Field Detail

ANY

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

CDATA

public 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.

CONREF

public 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.

CURRENT

public 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

DEFAULT

public int DEFAULT
The DEFAULT constant, specifies the default value.

EMPTY

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

ENDTAG

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

ENTITIES

public int ENTITIES
The ENTITIES constant (list of ENTITYes)

ENTITY

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

FIXED

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

GENERAL

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

ID

public 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.

IDREF

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

IDREFS

public int IDREFS
The IDREFS constant, a space separated list of IDREFs

IMPLIED

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

MD

public int MD
The MD constant.

MODEL

public int MODEL
The MODEL constant.

MS

public int MS
The MS constant.

NAME

public 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.

NAMES

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

NMTOKEN

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

NMTOKENS

public int NMTOKENS
The NMTOKENS constant, specifies a list of NMTOKENs.

NOTATION

public int NOTATION
The NOTATION constant, a previously defined data type.

NUMBER

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

NUMBERS

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

NUTOKEN

public int NUTOKEN
The NUTOKEN constant.

NUTOKENS

public int NUTOKENS
The NUTOKENS constant.

PARAMETER

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

PI

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

PUBLIC

public 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">

RCDATA

public 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.

REQUIRED

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

SDATA

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

STARTTAG

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

SYSTEM

public 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"> .