org.apache.ecs
Class FrameSetDocument

java.lang.Object
  |
  +--org.apache.ecs.FrameSetDocument
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class FrameSetDocument
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

This class creates a FrameSetDocument container, for convience.

Version:
$Id: FrameSetDocument.java,v 1.4 2003/04/27 09:43:57 rdonkin Exp $
Author:
Stephan Nagy, Jon S. Stevens
See Also:
Serialized Form

Field Summary
private  Body body
           
private  java.lang.String codeset
           
private  Doctype doctype
           
private  FrameSet frameset
           
private  Head head
           
private  Html html
           
private  NoFrames noframes
           
private  Title title
           
 
Constructor Summary
FrameSetDocument()
          Basic constructor.
FrameSetDocument(java.lang.String codeset)
          Basic constructor.
 
Method Summary
(package private)  void ()
           
 FrameSetDocument appendBody(Element value)
          Append to the body element for this FrameSetDocument container.
 FrameSetDocument appendBody(java.lang.String value)
          Append to the body element for this FrameSetDocument container.
 FrameSetDocument appendFrameSet(Element value)
          Append to the head element for this FrameSetDocument container.
 FrameSetDocument appendFrameSet(java.lang.String value)
          Append to the head element for this FrameSetDocument container.
 FrameSetDocument appendHead(Element value)
          Append to the head element for this FrameSetDocument container.
 FrameSetDocument appendHead(java.lang.String value)
          Append to the head element for this FrameSetDocument container.
 FrameSetDocument appendTitle(Element value)
          Append to the title element for this FrameSetDocument container.
 FrameSetDocument appendTitle(java.lang.String value)
          Append to the title element for this FrameSetDocument container.
 java.lang.Object clone()
          Allows the FrameSetDocument to be cloned.
 Body getBody()
          Get the body element for this FrameSetDocument container.
 java.lang.String getCodeset()
          Gets the codeset for this FrameSetDocument
 Doctype getDoctype()
          Get the doctype element for this document container.
 FrameSet getFrameSet()
          Get the FrameSet element for this FrameSetDocument container.
 Head getHead()
          Get the head element for this FrameSetDocument container.
 Html getHtml()
          Get the html element for this document container.
 Title getTitle()
          Get the title element for this FrameSetDocument container.
 void output(java.io.OutputStream out)
          Write the container to the OutputStream
 void output(java.io.PrintWriter out)
          Write the container to the PrintWriter
 FrameSetDocument setBody(Body set_body)
          Set the Body element for this FrameSetDocument container.
 void setCodeset(java.lang.String codeset)
          Sets the codeset for this FrameSetDocument
 FrameSetDocument setDoctype(Doctype set_doctype)
          Set the doctype element for this document container.
 FrameSetDocument setFrameSet(FrameSet set_frameset)
          Set the FrameSet element for this FrameSetDocument container.
 FrameSetDocument setHead(Head set_head)
          Set the head element for this FrameSetDocument container.
 FrameSetDocument setHtml(Html set_html)
          Set the html element for this FrameSetDocument container.
 FrameSetDocument setTitle(Title set_title)
          Set the Title element for this FrameSetDocument container.
 java.lang.String toString()
          Override the toString() method so that it prints something meaningful.
 java.lang.String toString(java.lang.String codeset)
          Override the toString() method so that it prints something meaningful.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

html

private Html html

head

private Head head

body

private Body body

title

private Title title

frameset

private FrameSet frameset

noframes

private NoFrames noframes

doctype

private Doctype doctype

codeset

private java.lang.String codeset
Constructor Detail

FrameSetDocument

public FrameSetDocument()
Basic constructor.

FrameSetDocument

public FrameSetDocument(java.lang.String codeset)
Basic constructor. Sets the codeset for the page output.
Method Detail

void ()
Overrides:
in class java.lang.Object

getDoctype

public Doctype getDoctype()
Get the doctype element for this document container.

setDoctype

public FrameSetDocument setDoctype(Doctype set_doctype)
Set the doctype element for this document container.

getHtml

public Html getHtml()
Get the html element for this document container.

setHtml

public FrameSetDocument setHtml(Html set_html)
Set the html element for this FrameSetDocument container.

getHead

public Head getHead()
Get the head element for this FrameSetDocument container.

setHead

public FrameSetDocument setHead(Head set_head)
Set the head element for this FrameSetDocument container.

appendHead

public FrameSetDocument appendHead(Element value)
Append to the head element for this FrameSetDocument container.
Parameters:
value - adds to the value between the head tags

appendHead

public FrameSetDocument appendHead(java.lang.String value)
Append to the head element for this FrameSetDocument container.
Parameters:
value - adds to the value between the head tags

getFrameSet

public FrameSet getFrameSet()
Get the FrameSet element for this FrameSetDocument container.

setFrameSet

public FrameSetDocument setFrameSet(FrameSet set_frameset)
Set the FrameSet element for this FrameSetDocument container.

appendFrameSet

public FrameSetDocument appendFrameSet(Element value)
Append to the head element for this FrameSetDocument container.
Parameters:
value - adds to the value between the head tags

appendFrameSet

public FrameSetDocument appendFrameSet(java.lang.String value)
Append to the head element for this FrameSetDocument container.
Parameters:
value - adds to the value between the head tags

getBody

public Body getBody()
Get the body element for this FrameSetDocument container.

setBody

public FrameSetDocument setBody(Body set_body)
Set the Body element for this FrameSetDocument container.

appendBody

public FrameSetDocument appendBody(Element value)
Append to the body element for this FrameSetDocument container.
Parameters:
value - adds to the value between the body tags

appendBody

public FrameSetDocument appendBody(java.lang.String value)
Append to the body element for this FrameSetDocument container.
Parameters:
value - adds to the value between the body tags

getTitle

public Title getTitle()
Get the title element for this FrameSetDocument container.

setTitle

public FrameSetDocument setTitle(Title set_title)
Set the Title element for this FrameSetDocument container.

appendTitle

public FrameSetDocument appendTitle(Element value)
Append to the title element for this FrameSetDocument container.
Parameters:
value - adds to the value between the title tags

appendTitle

public FrameSetDocument appendTitle(java.lang.String value)
Append to the title element for this FrameSetDocument container.
Parameters:
value - adds to the value between the title tags

setCodeset

public void setCodeset(java.lang.String codeset)
Sets the codeset for this FrameSetDocument

getCodeset

public java.lang.String getCodeset()
Gets the codeset for this FrameSetDocument
Returns:
the codeset

output

public void output(java.io.OutputStream out)
Write the container to the OutputStream

output

public void output(java.io.PrintWriter out)
Write the container to the PrintWriter

toString

public final java.lang.String toString()
Override the toString() method so that it prints something meaningful.
Overrides:
toString in class java.lang.Object

toString

public final java.lang.String toString(java.lang.String codeset)
Override the toString() method so that it prints something meaningful.

clone

public java.lang.Object clone()
Allows the FrameSetDocument to be cloned. Doesn't return an instanceof FrameSetDocument returns instance of Html.
Overrides:
clone in class java.lang.Object


Copyright © 1999-2003 Apache Software Foundation. All Rights Reserved.