org.kuali.student.contract.writer
Class XmlWriter

java.lang.Object
  extended by org.kuali.student.contract.writer.XmlWriter
Direct Known Subclasses:
HtmlWriter, JavaClassWriter, SearchCriteriaParameterWriter, SearchCriteriaWriter, SearchResultColumnWriter, SearchResultWriter, SearchTypeWriter

public class XmlWriter
extends Object

Base class for all XML writers

Author:
nwright

Field Summary
private  int indent
           
private  char indentChar
           
private  PrintStream out
           
 
Constructor Summary
XmlWriter()
           
XmlWriter(PrintStream out, int indent)
           
 
Method Summary
 void decrementIndent()
           
 String escapeXML(String s)
           
 int getIndent()
           
 PrintStream getOut()
           
 void incrementIndent()
           
 void indent()
           
 void indent(PrintStream o, char indentCharacter)
           
 void indentPrint(String str)
           
 void indentPrintln(String str)
           
 void print(String str)
           
 void println(String str)
           
 void setIndent(int indent)
           
 void setOut(PrintStream out)
           
 void writeAttribute(String attribute, String value)
           
 void writeComment(String comment)
           
 void writeCommentBox(String comment)
           
 void writeTag(String tag, String value)
           
 void writeTag(String tag, String modifiers, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indentChar

private char indentChar

indent

private int indent

out

private PrintStream out
Constructor Detail

XmlWriter

public XmlWriter()

XmlWriter

public XmlWriter(PrintStream out,
                 int indent)
Method Detail

setOut

public void setOut(PrintStream out)

setIndent

public void setIndent(int indent)

getIndent

public int getIndent()

incrementIndent

public void incrementIndent()

decrementIndent

public void decrementIndent()

getOut

public PrintStream getOut()

indent

public void indent()

indent

public void indent(PrintStream o,
                   char indentCharacter)

println

public void println(String str)

indentPrintln

public void indentPrintln(String str)

indentPrint

public void indentPrint(String str)

print

public void print(String str)

writeAttribute

public void writeAttribute(String attribute,
                           String value)

writeTag

public void writeTag(String tag,
                     String value)

writeTag

public void writeTag(String tag,
                     String modifiers,
                     String value)

writeComment

public void writeComment(String comment)

escapeXML

public String escapeXML(String s)

writeCommentBox

public void writeCommentBox(String comment)


Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.