javax.swing.text.html.parser

Interface DTDConstants

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 Details

ANY

public static final int ANY
The ANY constant, specifies an attribute, consisting from arbitrary characters.
Field Value:
19

CDATA

public 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.
Field Value:
1

CONREF

public 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.
Field Value:
4

CURRENT

public 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
Field Value:
3

DEFAULT

public static final int DEFAULT
The DEFAULT constant, specifies the default value.
Field Value:
131072

EMPTY

public static final int EMPTY
The EMPTY constant, means the element with no content.
Field Value:
17

ENDTAG

public static final int ENDTAG
The ENDTAG constant, meaning that the element needs a closing tag.
Field Value:
14

ENTITIES

public static final int ENTITIES
The ENTITIES constant (list of ENTITYes)
Field Value:
3

ENTITY

public static final int ENTITY
The ENTITY constant, meaning the numeric or symbolic name of some HTML data.
Field Value:
2

FIXED

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

GENERAL

public static final int GENERAL
The GENERAL constant, specifies theat the entity is valid in the whole HTML document scope.
Field Value:
65536

ID

public 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.
Field Value:
4

IDREF

public static final int IDREF
The IDREF constant, specifies reference to a valid ID within the document.
Field Value:
5

IDREFS

public static final int IDREFS
The IDREFS constant, a space separated list of IDREFs
Field Value:
6

IMPLIED

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

MD

public static final int MD
The MD constant.
Field Value:
16

MODEL

public static final int MODEL
The MODEL constant.
Field Value:
18

MS

public static final int MS
The MS constant.
Field Value:
15

NAME

public 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.
Field Value:
7

NAMES

public static final int NAMES
The NAMES constant, specifies a space separated of NAMEs.
Field Value:
8

NMTOKEN

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

NMTOKENS

public static final int NMTOKENS
The NMTOKENS constant, specifies a list of NMTOKENs.
Field Value:
10

NOTATION

public static final int NOTATION
The NOTATION constant, a previously defined data type.
Field Value:
11

NUMBER

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

NUMBERS

public static final int NUMBERS
The NUMBERS constant, specifies a space separated list of NUMBERs.
Field Value:
13

NUTOKEN

public static final int NUTOKEN
The NUTOKEN constant.
Field Value:
14

NUTOKENS

public static final int NUTOKENS
The NUTOKENS constant.
Field Value:
15

PARAMETER

public static final int PARAMETER
The PARAMETER constant, specifies that entity is only valid inside SGML DTD scope.
Field Value:
262144

PI

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

PUBLIC

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">
Field Value:
10

RCDATA

public 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.
Field Value:
16

REQUIRED

public static final int REQUIRED
The attribute modifier #REQUIRED constant, indicates that the value must be supplied.
Field Value:
2

SDATA

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

STARTTAG

public static final int STARTTAG
The STARTTAG, meaning that the element needs a starting tag.
Field Value:
13

SYSTEM

public 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"> .
Field Value:
17

DTDConstants.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.