org.kuali.student.contract.writer.service
Class PureJavaInfcInfcWriter

java.lang.Object
  extended by org.kuali.student.contract.writer.XmlWriter
      extended by org.kuali.student.contract.writer.JavaClassWriter
          extended by org.kuali.student.contract.writer.service.PureJavaInfcInfcWriter

public class PureJavaInfcInfcWriter
extends JavaClassWriter

Author:
nwright

Field Summary
private  String directory
           
private  ModelFinder finder
           
private  ServiceContractModel model
           
private  String rootPackage
           
private  String service
           
private  XmlType xmlType
           
 
Constructor Summary
PureJavaInfcInfcWriter(ServiceContractModel model, String directory, String rootPackage, String service, XmlType xmlType)
           
 
Method Summary
static String calcClassName(String name)
           
private  String calcFieldTypeToUse(String type, String realType)
           
private  String calcGetter(MessageStructure ms)
           
static String calcPackage(String service, String rootPackage)
           
private  String calcSetter(MessageStructure ms)
           
private  String initLower(String str)
           
private  String stripList(String str)
           
 void write()
          Write out the entire file
 
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
 

Field Detail

model

private ServiceContractModel model

finder

private ModelFinder finder

directory

private String directory

rootPackage

private String rootPackage

service

private String service

xmlType

private XmlType xmlType
Constructor Detail

PureJavaInfcInfcWriter

public PureJavaInfcInfcWriter(ServiceContractModel model,
                              String directory,
                              String rootPackage,
                              String service,
                              XmlType xmlType)
Method Detail

calcPackage

public static String calcPackage(String service,
                                 String rootPackage)

calcClassName

public static String calcClassName(String name)

write

public void write()
Write out the entire file

Parameters:
out -

stripList

private String stripList(String str)

initLower

private String initLower(String str)

calcGetter

private String calcGetter(MessageStructure ms)

calcSetter

private String calcSetter(MessageStructure ms)

calcFieldTypeToUse

private String calcFieldTypeToUse(String type,
                                  String realType)


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