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 |
int | ANY
The ANY constant, specifies
an attribute, consisting from arbitrary characters. |
int | CDATA
The CDATA (Character data) constant, specifes the content model,
consisting of characters only. |
int | CONREF
The attribute modifier #CONREF constant, specifies the IDREF value of
the reference to content in another location of the document.
|
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. |
int | DEFAULT
The DEFAULT constant, specifies the default value. |
int | EMPTY
The EMPTY constant, means the element with no content. |
int | ENDTAG
The ENDTAG constant, meaning that the element needs a closing tag. |
int | ENTITIES
The ENTITIES constant (list of ENTITYes) |
int | ENTITY
The ENTITY constant, meaning the numeric or symbolic name of some
HTML data. |
int | FIXED
The attribute modifier #FIXED constant, means that the attribute has
the fixed value that cannot be changed. |
int | GENERAL
The GENERAL constant, specifies theat the entity is valid in the
whole HTML document scope. |
int | ID
The ID constant, means that the token is the unique identifier.
|
int | IDREF
The IDREF constant, specifies reference to a valid ID within
the document. |
int | IDREFS
The IDREFS constant, a space separated list of IDREFs |
int | IMPLIED
The attribute modifier #IMPLIED constant,
indicating that for this attribute the user agent must provide
the value itself. |
int | MD
The MD constant. |
int | MODEL
The MODEL constant. |
int | MS
The MS constant. |
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. |
int | NAMES
The NAMES constant, specifies a space separated of NAMEs. |
int | NMTOKEN
The NMTOKEN constant, specifies the attribute, consisting of
characters that can be either digits or alphabetic characters). |
int | NMTOKENS
The NMTOKENS constant, specifies a list of NMTOKENs. |
int | NOTATION
The NOTATION constant, a previously defined data type. |
int | NUMBER
The NUMBER constant (means that the attribute consists of at least
one decimal digit). |
int | NUMBERS
The NUMBERS constant, specifies a space separated list of NUMBERs. |
int | NUTOKEN
The NUTOKEN constant. |
int | NUTOKENS
The NUTOKENS constant. |
int | PARAMETER
The PARAMETER constant, specifies that entity is only valid
inside SGML DTD scope. |
int | PI
The PI (Processing Instruction) constant, specifies a processing
instruction. |
int | PUBLIC
The PUBLIC constant, specifies the public entity. |
int | RCDATA
The RCDATA constant (Entity References and Character Data), specifies
the content model, consisting of characters AND entities. |
int | REQUIRED
The attribute modifier #REQUIRED constant, indicates that the
value must be supplied. |
int | SDATA
The SDATA constant. |
int | STARTTAG
The STARTTAG, meaning that the element needs a starting tag. |
int | SYSTEM
The SYSTEM constant, specifies the system entitiy. |
public int ANY
The ANY constant, specifies
an attribute, consisting from arbitrary characters.
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.
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.
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
public int DEFAULT
The DEFAULT constant, specifies the default value.
public int EMPTY
The EMPTY constant, means the element with no content.
public int ENDTAG
The ENDTAG constant, meaning that the element needs a closing tag.
public int ENTITIES
The ENTITIES constant (list of ENTITYes)
public int ENTITY
The ENTITY constant, meaning the numeric or symbolic name of some
HTML data.
public int FIXED
The attribute modifier #FIXED constant, means that the attribute has
the fixed value that cannot be changed.
public int GENERAL
The GENERAL constant, specifies theat the entity is valid in the
whole HTML document scope.
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.
public int IDREF
The IDREF constant, specifies reference to a valid ID within
the document.
public int IDREFS
The IDREFS constant, a space separated list of IDREFs
public int IMPLIED
The attribute modifier #IMPLIED constant,
indicating that for this attribute the user agent must provide
the value itself.
public int MD
The MD constant.
public int MODEL
The MODEL constant.
public int MS
The MS constant.
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.
public int NAMES
The NAMES constant, specifies a space separated of NAMEs.
public int NMTOKEN
The NMTOKEN constant, specifies the attribute, consisting of
characters that can be either digits or alphabetic characters).
public int NMTOKENS
The NMTOKENS constant, specifies a list of NMTOKENs.
public int NOTATION
The NOTATION constant, a previously defined data type.
public int NUMBER
The NUMBER constant (means that the attribute consists of at least
one decimal digit).
public int NUMBERS
The NUMBERS constant, specifies a space separated list of NUMBERs.
public int NUTOKEN
The NUTOKEN constant.
public int NUTOKENS
The NUTOKENS constant.
public int PARAMETER
The PARAMETER constant, specifies that entity is only valid
inside SGML DTD scope.
public int PI
The PI (Processing Instruction) constant, specifies a processing
instruction. Processing instructions are used to embed information
intended for specific applications.
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">
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.
public int REQUIRED
The attribute modifier #REQUIRED constant, indicates that the
value must be supplied.
public int SDATA
The SDATA constant. Means that the value contains the entity name
and the replacement value of a character entity reference.
public int STARTTAG
The STARTTAG, meaning that the element needs a starting tag.
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">
.