gnu.javax.swing.text.html.parser

Class HTML_401F

Implemented Interfaces:
DTDConstants, Serializable

public class HTML_401F
extends gnuDTD
implements DTDConstants, Serializable

This class represents the java implementation of the HTML 4.01 ( -//W3C//DTD HTML 4.01 Frameset//EN ) Frameset version. The Frameset version includes as recommended, as obsoleted features and also the frameset support. This the default DTD to parse HTML documents in this implementation, containing 315 pre-defined general entities and 92 elements.
See Also:
Serialized Form

Field Summary

static String
DTD_NAME
The standard name of this DTD, '-//W3C//DTD HTML 4.01 Frameset//EN'

Fields inherited from class gnu.javax.swing.text.html.parser.gnuDTD

Char, Color, Length, URI

Fields inherited from class javax.swing.text.html.parser.DTD

Element>(), Entity>(), Entity>entityHash, FILE_VERSION, applet, base, body, elementHash, elements, head, html, isindex, meta, name, p, param, pcdata, title

Fields inherited from interface javax.swing.text.html.parser.DTDConstants

ANY, CDATA, CONREF, CURRENT, DEFAULT, EMPTY, ENDTAG, ENTITIES, ENTITY, FIXED, GENERAL, ID, IDREF, IDREFS, IMPLIED, MD, MODEL, MS, NAME, NAMES, NMTOKEN, NMTOKENS, NOTATION, NUMBER, NUMBERS, NUTOKEN, NUTOKENS, PARAMETER, PI, PUBLIC, RCDATA, REQUIRED, SDATA, STARTTAG, SYSTEM

Constructor Summary

HTML_401F()
Creates this DTD, filling in the entities and attributes data as defined in -//W3C//DTD HTML 4.01 Frameset//EN.

Method Summary

protected ContentModel
createDefListModel()
Creates a model for <DL> tag: DT+ | DL+ .
protected ContentModel
createHtmlContentModel()
Create the model HEAD, BODY
protected ContentModel
createListModel()
This model is used for UL, OL, MENU and DIR.
protected ContentModel
createTableContentModel()
Create the model ( CAPTION ?
protected void
defineElements()
Define all elements of this DTD.
protected void
defineEntities()
Define all entities in this DTD.
protected String[]
getBodyElements()
Get elements that are allowed in the document body, at the zero level.
static DTD
getInstance()
Either takes the document (by name) from DTD table, or creates a new instance and registers it in the tabe.
protected ContentModel
model(String element)
Crate a content model, consisting of the single element, specified by name.

Methods inherited from class gnu.javax.swing.text.html.parser.gnuDTD

attr, defAttributeList, defAttrsFor, defContentModel, defElement, defElement, defElement, defEntity, defineEntity, dump, dump

Methods inherited from class javax.swing.text.html.parser.DTD

defAttributeList, defContentModel, defElement, defEntity, defEntity, defineAttributes, defineElement, defineEntity, getDTD, getElement, getElement, getEntity, getEntity, getName, putDTDHash, read, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

DTD_NAME

public static final String DTD_NAME
The standard name of this DTD, '-//W3C//DTD HTML 4.01 Frameset//EN'
Field Value:
"-//W3C//DTD HTML 4.01 Frameset//EN"

Constructor Details

HTML_401F

protected HTML_401F()
Creates this DTD, filling in the entities and attributes data as defined in -//W3C//DTD HTML 4.01 Frameset//EN.

Method Details

createDefListModel

protected ContentModel createDefListModel()
Creates a model for <DL> tag: DT+ | DL+ .
Returns:

createHtmlContentModel

protected ContentModel createHtmlContentModel()
Create the model HEAD, BODY
Returns:
the HTML content model of the whole document

createListModel

protected ContentModel createListModel()
This model is used for UL, OL, MENU and DIR. HTML 4.01 specifies LI only, but the nested list seems rendered correctly only if it is not enclosed into
  • -
  • of the parent list.

    createTableContentModel

    protected ContentModel createTableContentModel()
    Create the model ( CAPTION ? , ( COL * | COLGROUP * ) , THEAD ? , TFOOT ? , TBODY + )

    defineElements

    protected void defineElements()
    Define all elements of this DTD.

    defineEntities

    protected void defineEntities()
    Define all entities in this DTD.

    getBodyElements

    protected String[] getBodyElements()
    Get elements that are allowed in the document body, at the zero level.

    getInstance

    public static DTD getInstance()
    Either takes the document (by name) from DTD table, or creates a new instance and registers it in the tabe. The document is registerd under name "-//W3C//DTD HTML 4.01 Frameset//EN".
    Returns:
    The new or existing DTD for parsing HTML 4.01 Frameset.

    model

    protected ContentModel model(String element)
    Crate a content model, consisting of the single element, specified by name.

    HTML_401F.java -- HTML 4.01 FRAMESET DTD java conception. 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.