org.kuali.student.contract.writer.service
Class PureJavaInfcServiceWriter
java.lang.Object
org.kuali.student.contract.writer.XmlWriter
org.kuali.student.contract.writer.JavaClassWriter
org.kuali.student.contract.writer.service.PureJavaInfcServiceWriter
public class PureJavaInfcServiceWriter
- extends JavaClassWriter
- Author:
- nwright
Methods inherited from class org.kuali.student.contract.writer.JavaClassWriter |
closeBrace, getBody, getClassName, getDirectory, getFileName, getPackageName, getRootDirectory, importsAdd, indentPrintWrappedComment, openBrace, writeHeader, writeImports, 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 |
model
private ServiceContractModel model
finder
private ModelFinder finder
directory
private String directory
rootPackage
private String rootPackage
servKey
private String servKey
methods
private List<ServiceMethod> methods
PureJavaInfcServiceWriter
public PureJavaInfcServiceWriter(ServiceContractModel model,
String directory,
String rootPackage,
String servKey,
List<ServiceMethod> methods)
calcPackage
public static String calcPackage(String servKey,
String rootPackage)
calcClassName
public static String calcClassName(String servKey)
write
public void write()
- Write out the entire file
- Parameters:
out
-
stripList
private String stripList(String str)
calcExceptionClassName
private String calcExceptionClassName(ServiceMethodError error)
calcExceptionPackageName
private String calcExceptionPackageName(ServiceMethodError error)
calcType
private String calcType(String type,
String realType)
Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.