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.
|
w3c
doc, parent, setParent, toString, writeEscapedString, writeIndent
public 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.Item
visit
in class ERXML.Item
visitor
- the visitor to visit withprotected abstract void writeText(PrintWriter writer)
writer
- the writer to write topublic void write(PrintWriter writer, int indent)
ERXML.Item
write
in class ERXML.Item
writer
- the writer to write toindent
- the current indentationCopyright © 2002 – 2020 Project Wonder.