2004.04.29


com.jdc.gui.html.tag
Class Head

java.lang.Object
  |
  +--com.jdc.xml.ComplexTag
        |
        +--com.jdc.gui.html.ComplexTag
              |
              +--com.jdc.gui.html.tag.Head
All Implemented Interfaces:
MarkupLanguage, Serializable

public class Head
extends ComplexTag

Head contains header information about the document, such as its title, keywords, description, and style sheet. HEAD is required in all documents, but its start and end tags are always optional. The HEAD element is followed by the BODY in HTML 4.0 Strict and Transitional documents; in HTML 4.0 Frameset documents, the HEAD is followed by a FRAMESET element.

Content in the HEAD is generally not rendered, with the exception of the required TITLE element. If the HEAD end tag is omitted, the first BODY or FRAMESET element infers the end of the HEAD.

The optional PROFILE attribute of HEAD gives the location of a metadata profile. A profile defines properties that may be used by META and LINK elements within the HEAD. There is no prescribed format for profiles.

Reference: The HEAD element

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

Field Summary
 
Fields inherited from interface com.jdc.gui.html.MarkupLanguage
XHTML
 
Constructor Summary
Head()
          Constructs a new Head object.
 
Method Summary
protected  String getBody()
          Returns the Head tag body.
 Title getTitle()
          Returns the document title.
static void main(String[] args)
          Executes unit tests for the Head class.
 Head setTitle(Title title)
          Sets the document title.
 
Methods inherited from class com.jdc.gui.html.ComplexTag
addAttribute, create, create, endTag, setFormat, setIdentifier, startTag
 
Methods inherited from class com.jdc.xml.ComplexTag
addAttribute, create, create, endTag, getAttributes, getIdentifier, setBody, startTag, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Head

public Head()
Constructs a new Head object.

Method Detail

getBody

protected String getBody()
Returns the Head tag body.

Overrides:
getBody in class ComplexTag
Returns:
The Head tag body.

getTitle

public Title getTitle()
Returns the document title.

Returns:
The Title tag.

setTitle

public Head setTitle(Title title)
Sets the document title.

Returns:
This Head tag.

main

public static void main(String[] args)
Executes unit tests for the Head class.


2004.04.29



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