|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.ecs.Document
This class creates a Document container, for convience.
Field Summary | |
private Body |
body
|
private java.lang.String |
codeset
|
private Doctype |
doctype
|
private Head |
head
|
private Html |
html
|
private Title |
title
|
Constructor Summary | |
Document()
Basic constructor. |
|
Document(java.lang.String codeset)
Basic constructor. |
Method Summary | |
(package private) void |
|
Document |
appendBody(Element value)
Append to the body element for this document container. |
Document |
appendBody(java.lang.String value)
Append to the body element for this document container. |
Document |
appendHead(Element value)
Append to the head element for this document container. |
Document |
appendHead(java.lang.String value)
Append to the head element for this document container. |
Document |
appendTitle(Element value)
Append to the title element for this document container. |
Document |
appendTitle(java.lang.String value)
Append to the title element for this document container. |
java.lang.Object |
clone()
Allows the document to be cloned. |
Body |
getBody()
Get the body element for this document container. |
java.lang.String |
getCodeset()
Gets the codeset for this Document |
Doctype |
getDoctype()
Get the doctype element for this document container. |
Head |
getHead()
Get the head element for this document container. |
Html |
getHtml()
Get the html element for this document container. |
Title |
getTitle()
Get the title element for this document 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 |
Document |
setBody(Body set_body)
Set the Body element for this document container. |
void |
setCodeset(java.lang.String codeset)
Sets the codeset for this Document |
Document |
setDoctype(Doctype set_doctype)
Set the doctype element for this document container. |
Document |
setHead(Head set_head)
Set the head element for this document container. |
Document |
setHtml(Html set_html)
Set the html element for this document container. |
Document |
setTitle(Title set_title)
Set the Title element for this document 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 |
private Html html
private Head head
private Body body
private Title title
private java.lang.String codeset
private Doctype doctype
Constructor Detail |
public Document()
public Document(java.lang.String codeset)
Method Detail |
void()
in class java.lang.Object
public Doctype getDoctype()
public Document setDoctype(Doctype set_doctype)
public Html getHtml()
public Document setHtml(Html set_html)
public Head getHead()
public Document setHead(Head set_head)
public Document appendHead(Element value)
value
- adds to the value between the head tagspublic Document appendHead(java.lang.String value)
value
- adds to the value between the head tagspublic Body getBody()
public Document setBody(Body set_body)
public Document appendBody(Element value)
value
- adds to the value between the body tagspublic Document appendBody(java.lang.String value)
value
- adds to the value between the body tagspublic Title getTitle()
public Document setTitle(Title set_title)
public Document appendTitle(Element value)
value
- adds to the value between the title tagspublic Document appendTitle(java.lang.String value)
value
- adds to the value between the title tagspublic void setCodeset(java.lang.String codeset)
public java.lang.String getCodeset()
public void output(java.io.OutputStream out)
public void output(java.io.PrintWriter out)
public final java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.String toString(java.lang.String codeset)
public java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |