org.kuali.student.contract.writer
Class JavaClassWriter

java.lang.Object
  extended by org.kuali.student.contract.writer.XmlWriter
      extended by org.kuali.student.contract.writer.JavaClassWriter
Direct Known Subclasses:
EachMethodServiceWriterForOneMethod, MockImplServiceWriter, PureJavaInfcBeanWriter, PureJavaInfcInfcWriter, PureJavaInfcServiceWriter, ServiceExceptionWriter, ValidationDecoratorServiceWriter

public abstract class JavaClassWriter
extends XmlWriter

Author:
nwright

Constructor Summary
JavaClassWriter(String rootDirectory, String packageName, String className)
           
 
Method Summary
 void closeBrace()
           
 ByteArrayOutputStream getBody()
           
 String getClassName()
           
 String getDirectory()
           
 String getFileName()
           
 String getPackageName()
           
 String getRootDirectory()
           
 void importsAdd(String pack)
           
 void indentPrintWrappedComment(String str)
           
 void openBrace()
           
 void writeHeader()
           
 void writeImports()
           
 void writeJavaClassAndImportsOutToFile()
           
 
Methods inherited from class org.kuali.student.contract.writer.XmlWriter
decrementIndent, escapeXML, getIndent, getOut, incrementIndent, indent, indent, indentPrint, indentPrintln, print, println, setIndent, setOut, writeAttribute, writeComment, writeCommentBox, writeTag, writeTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaClassWriter

public JavaClassWriter(String rootDirectory,
                       String packageName,
                       String className)
Method Detail

getBody

public ByteArrayOutputStream getBody()

getClassName

public String getClassName()

getDirectory

public String getDirectory()

getFileName

public String getFileName()

getPackageName

public String getPackageName()

getRootDirectory

public String getRootDirectory()

importsAdd

public void importsAdd(String pack)

writeHeader

public void writeHeader()

writeImports

public void writeImports()

writeJavaClassAndImportsOutToFile

public void writeJavaClassAndImportsOutToFile()

openBrace

public void openBrace()

closeBrace

public void closeBrace()

indentPrintWrappedComment

public void indentPrintWrappedComment(String str)


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