edu.stanford.smi.protegex.owl.writer.xml
Class DefaultXMLWriter.XMLElement
java.lang.Object
edu.stanford.smi.protegex.owl.writer.xml.DefaultXMLWriter.XMLElement
- Enclosing class:
- DefaultXMLWriter
- public class DefaultXMLWriter.XMLElement
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private String name
attributes
private Map attributes
textContent
String textContent
startWritten
private boolean startWritten
indentation
private int indentation
wrapAttributes
private boolean wrapAttributes
DefaultXMLWriter.XMLElement
public DefaultXMLWriter.XMLElement(String name)
DefaultXMLWriter.XMLElement
public DefaultXMLWriter.XMLElement(String name,
int indentation)
setWrapAttributes
public void setWrapAttributes(boolean b)
setAttribute
public void setAttribute(String attribute,
String value)
setText
public void setText(String content)
writeElementStart
public void writeElementStart(boolean close)
throws IOException
- Throws:
IOException
writeElementEnd
public void writeElementEnd()
throws IOException
- Throws:
IOException
writeAttribute
private void writeAttribute(String attr,
String val)
throws IOException
- Throws:
IOException
writeAttributes
private void writeAttributes()
throws IOException
- Throws:
IOException
writeTextContent
private void writeTextContent()
throws IOException
- Throws:
IOException
insertIndentation
private void insertIndentation()
throws IOException
- Throws:
IOException
writeNewLine
private void writeNewLine()
throws IOException
- Throws:
IOException