javax.swing.text.html.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.
Modifier and Type | Field and Description |
---|---|
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.
|
static final int CDATA
static final int EMPTY
static final int ID
static final int IDREF
static final int IDREFS
static final int NAME
static final int NAMES
static final int NMTOKEN
static final int NMTOKENS
static final int NOTATION
static final int NUMBER
static final int NUMBERS
static final int NUTOKEN
static final int NUTOKENS
static final int PUBLIC
static final int SYSTEM
<DOCTYPE html SYSTEM "/path/to/file.dtd">
.static final int PARAMETER
static final int GENERAL
static final int REQUIRED
static final int FIXED
static final int IMPLIED
static final int CURRENT
static final int CONREF
static final int STARTTAG
static final int ENDTAG
static final int ANY
static final int DEFAULT
static final int ENTITIES
static final int ENTITY
static final int MD
static final int MODEL
static final int MS
static final int PI
static final int RCDATA
&name;
" still means the general entity with
the given name.static final int SDATA