net.sf.jolene.dom
Class Header

java.lang.Object
  extended by net.sf.jolene.dom.HTMLElement
      extended by net.sf.jolene.dom.Header
All Implemented Interfaces:
java.lang.Cloneable, IAttributes, ICollection, IStyles

public final class Header
extends HTMLElement

An element in the header in a html document. Usually a meta, script, link or style tag.

Since:
Sep 19, 2006 9:11:49 AM
Author:
Dan Howard

Constructor Summary
Header()
          Default construcor.
Header(Tags tag)
          Construct a Header using a predefined Tag.
 
Method Summary
 Header clone()
          Returns a clone of the header element object.
 void setValue(java.lang.String value)
          Sets the value of the element.
 java.lang.String toString()
          Renders the Header.
 
Methods inherited from class net.sf.jolene.dom.HTMLElement
clear, getAfterText, getAttribute, getBeforeText, getContent, getName, getStyle, getTag, getValue, hasAttribute, hasStyle, isChecked, isDisabled, isReadonly, isRenderable, keySet, removeAttribute, removeStyle, resetStyles, resetStyles, setAfterText, setAttribute, setBeforeText, setChecked, setContent, setDisabled, setName, setReadonly, setRenderable, setStyle, setStyles, setStyles, swapWith
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Header

public Header()
Default construcor.


Header

public Header(Tags tag)
Construct a Header using a predefined Tag. Note the shoot in the footness here. You can define a header with any defined Tag. Really you should only use meta, link, script or style.

Parameters:
tag - A Tag enum. Usually script, link, meta.
Method Detail

clone

public Header clone()
Returns a clone of the header element object.

Overrides:
clone in class HTMLElement
Returns:
Header object.
See Also:
DocumentFactory

setValue

public void setValue(java.lang.String value)
Description copied from class: HTMLElement
Sets the value of the element.

Overrides:
setValue in class HTMLElement
Parameters:
value - value of object

toString

public java.lang.String toString()
Renders the Header.

Overrides:
toString in class HTMLElement
Returns:
The header element as a html string.