public class XMLWriterImpl.XMLElement extends Object
Constructor | Description |
---|---|
XMLElement(String name,
int indentation) |
Modifier and Type | Method | 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
- io errorpublic void writeElementEnd() throws IOException
IOException
- io errorCopyright © 2018 The University of Manchester. All rights reserved.