|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.dom.Node
org.apache.tapestry.dom.Document
public final class Document
The root node of a DOM.
| Constructor Summary | |
|---|---|
Document()
Builds with an instance of DefaultMarkupModel. |
|
Document(MarkupModel model)
|
|
Document(MarkupModel model,
String encoding)
|
|
| Method Summary | |
|---|---|
void |
dtd(String name,
String publicId,
String systemId)
|
Element |
find(String path)
Finds an element based on a path of element names. |
Element |
getElementById(String id)
Tries to find an element in this document whose id is specified. |
MarkupModel |
getMarkupModel()
|
Element |
getRootElement()
|
Element |
newRootElement(String name)
Creates the root element for this document, replacing any previous root element. |
Element |
newRootElement(String namespace,
String name)
Creates a new root element within a namespace. |
void |
toMarkup(PrintWriter writer)
Writes the markup for this node to the writer. |
String |
toString()
Invokes Node.toMarkup(PrintWriter), collecting output in a string, which is returned. |
| Methods inherited from class org.apache.tapestry.dom.Node |
|---|
getChildMarkup, getChildren, getContainer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Document(MarkupModel model)
public Document(MarkupModel model,
String encoding)
public Document()
DefaultMarkupModel.
| Method Detail |
|---|
public Element find(String path)
path - slash separated series of element names
Element.find(String)public MarkupModel getMarkupModel()
public Element newRootElement(String name)
public Element newRootElement(String namespace,
String name)
namespace - URI of namespace containing the elementname - name of element with namespace
public void toMarkup(PrintWriter writer)
Node
toMarkup in class Nodepublic String toString()
NodeNode.toMarkup(PrintWriter), collecting output in a string, which is returned.
toString in class Nodepublic Element getRootElement()
public Element getElementById(String id)
id - the value of the id attribute of the element being looked for
public void dtd(String name,
String publicId,
String systemId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||