edu.stanford.smi.protegex.owl.writer.xml
Class DefaultXMLWriter.XMLElement

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.writer.xml.DefaultXMLWriter.XMLElement
Enclosing class:
DefaultXMLWriter

public class DefaultXMLWriter.XMLElement
extends Object


Field Summary
private  Map attributes
           
private  int indentation
           
private  String name
           
private  boolean startWritten
           
(package private)  String textContent
           
private  boolean wrapAttributes
           
 
Constructor Summary
DefaultXMLWriter.XMLElement(String name)
           
DefaultXMLWriter.XMLElement(String name, int indentation)
           
 
Method Summary
private  void insertIndentation()
           
 void setAttribute(String attribute, String value)
           
 void setText(String content)
           
 void setWrapAttributes(boolean b)
           
private  void writeAttribute(String attr, String val)
           
private  void writeAttributes()
           
 void writeElementEnd()
           
 void writeElementStart(boolean close)
           
private  void writeNewLine()
           
private  void writeTextContent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private String name

attributes

private Map attributes

textContent

String textContent

startWritten

private boolean startWritten

indentation

private int indentation

wrapAttributes

private boolean wrapAttributes
Constructor Detail

DefaultXMLWriter.XMLElement

public DefaultXMLWriter.XMLElement(String name)

DefaultXMLWriter.XMLElement

public DefaultXMLWriter.XMLElement(String name,
                                   int indentation)
Method Detail

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