2004.04.29


com.jdc.gui.html.tag
Class DocumentType

java.lang.Object
  |
  +--com.jdc.xml.Tag
        |
        +--com.jdc.xml.SimpleTag
              |
              +--com.jdc.xml.tag.DocumentType
                    |
                    +--com.jdc.gui.html.tag.DocumentType
All Implemented Interfaces:
Serializable

public class DocumentType
extends DocumentType

DocumentType represents an HTML or XHTML document type definition, an optional part of an HTML document prolog. The document type definition (DTD) specifies constraints on the valid tags and tag sequences that can exist in an HTML or XHTML document.

If an XHTML declaration is present, the document type definition is specified after the XHTML declaration. A reference to one of the following DTDs must be placed at the beginning of every XHMTL document:

Reference: An XHTML Primer

Version:
1.0
Author:
Jay Damon
See Also:
Declaration, Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.jdc.xml.tag.DocumentType
DocumentType.Location
 
Field Summary
 
Fields inherited from class com.jdc.xml.Tag
LEFT_BRACKET, RIGHT_BRACKET, SLASH, SPACE
 
Constructor Summary
DocumentType()
          Constructs a new DocumentType object.
 
Method Summary
 DocumentType setFrameset()
          Sets the XHTML document type definition as Frameset.
 DocumentType setFrameset(boolean xhtml)
          Sets the XHTML or HTML document type definition as Frameset.
 DocumentType setStrict()
          Sets the XHTML document type definition as Strict.
 DocumentType setTransitional()
          Sets the XHTML document type definition as Transitional.
 DocumentType setTransitional(boolean xhtml)
          Sets the XHTML or HTML document type definition as Transitional.
 
Methods inherited from class com.jdc.xml.tag.DocumentType
getAttributes, setFile, setLocation, setPublic, setReference, setRoot, setSystem, toLowerCase
 
Methods inherited from class com.jdc.xml.SimpleTag
create, create, getEndChar, getStartChar, setEndChar, setStartChar, toString
 
Methods inherited from class com.jdc.xml.Tag
addAttribute, create, getAttribute, getIdentifier, setIdentifier, tag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentType

public DocumentType()
Constructs a new DocumentType object.

Method Detail

setFrameset

public DocumentType setFrameset()
Sets the XHTML document type definition as Frameset. The Frameset DTD is for the use of standard HTML frameset files.

Returns:
This document type definition tag.

setFrameset

public DocumentType setFrameset(boolean xhtml)
Sets the XHTML or HTML document type definition as Frameset. Specify true for an XHTML Frameset document type definition; false for an HTML Frameset document type definition.

Returns:
This document type definition tag.

setStrict

public DocumentType setStrict()
Sets the XHTML document type definition as Strict. Th Strict DTD requires that all style attributes be placed in a separate Cascading Style Sheet (CSS).

Returns:
This document type definition tag.

setTransitional

public DocumentType setTransitional()
Sets the XHTML document type definition as Transitional. The Transitional DTD permits the use of embedded style attributes for Web pages that need to support browsers which do not support Cascading Style Sheets (CSS).

Returns:
This document type definition tag.

setTransitional

public DocumentType setTransitional(boolean xhtml)
Sets the XHTML or HTML document type definition as Transitional. Specify true for an XHTML Transitional document type definition; false for an HTML Transitional document type definition.

Returns:
This document type definition tag.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.