public class XMLWriterImpl.XMLElement extends Object
Constructor and Description |
---|
XMLElement(String name) |
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)
name
- namepublic 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 © 2017 The University of Manchester. All Rights Reserved.