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, writeIndentpublic 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.Itemvisit in class ERXML.Itemvisitor - the visitor to visit withpublic void write(PrintWriter writer, int indent)
ERXML.Itemwrite in class ERXML.Itemwriter - the writer to write toindent - the current indentationCopyright © 2002 – 2020 Project Wonder.