public class XMLWriterImpl.XMLElement extends Object
| Constructor and Description |
|---|
XMLElement(String name,
int indentation) |
| Modifier and Type | Method and Description |
|---|---|
void |
setAttribute(String attribute,
String value) |
void |
setText(String content) |
void |
setWrapAttributes(boolean b) |
void |
writeElementEnd()
write end element
|
void |
writeElementStart(boolean close) |
public XMLElement(String name, int indentation)
name - nameindentation - indentationpublic void setWrapAttributes(boolean b)
b - bpublic void setAttribute(String attribute, String value)
attribute - attributevalue - valuepublic void setText(String content)
content - contentpublic void writeElementStart(boolean close)
throws IOException
close - closeIOException - if there was a problem writing to the output streampublic void writeElementEnd()
throws IOException
IOException - if there was a problem writing to the output streamCopyright © 2020 The University of Manchester. All rights reserved.