public abstract static class ERXML.Content extends ERXML.Node
| Constructor and Description |
|---|
Content(String text)
Constructs a new Content.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setText(String text)
Sets text text of this node.
|
String |
text()
Returns the text of this node.
|
void |
visit(ERXML.Visitor visitor)
Visits this item and any of its children (if the visitor allows).
|
void |
write(PrintWriter writer,
int indent)
Writes this item to the given writer with a certain indentation.
|
protected abstract void |
writeText(PrintWriter writer)
Writes the text of this node to the writer.
|
w3cdoc, parent, setParent, toString, writeEscapedString, writeIndentpublic Content(String text)
text - the text of the nodepublic String text()
public void setText(String text)
text - text text of this nodepublic void visit(ERXML.Visitor visitor)
ERXML.Itemvisit in class ERXML.Itemvisitor - the visitor to visit withprotected abstract void writeText(PrintWriter writer)
writer - the writer to write topublic void write(PrintWriter writer, int indent)
ERXML.Itemwrite in class ERXML.Itemwriter - the writer to write toindent - the current indentationCopyright © 2002 – 2020 Project Wonder.