public static class ERXML.Declaration extends ERXML.Item
Constructor and Description |
---|
Declaration(String version,
String encoding)
Constructs a new Declaration.
|
Modifier and Type | Method and Description |
---|---|
String |
encoding()
Returns the encoding for this document.
|
void |
setEncoding(String encoding)
Sets the encoding for this document.
|
void |
setVersion(String version)
Sets the version of this document.
|
String |
version()
Returns the version of this declaration.
|
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.
|
doc, parent, setParent, toString, writeEscapedString, writeIndent
public String version()
public void setVersion(String version)
version
- the version of this documentpublic String encoding()
public void setEncoding(String encoding)
encoding
- the encoding for this documentpublic void visit(ERXML.Visitor visitor)
ERXML.Item
visit
in class ERXML.Item
visitor
- the visitor to visit withpublic void write(PrintWriter writer, int indent)
ERXML.Item
write
in class ERXML.Item
writer
- the writer to write toindent
- the current indentationCopyright © 2002 – 2024 Project Wonder.