org.kuali.student.admin.ui.mojo
Class AdminUiInquirableWriter

java.lang.Object
  extended by org.kuali.student.contract.writer.XmlWriter
      extended by org.kuali.student.contract.writer.JavaClassWriter
          extended by org.kuali.student.admin.ui.mojo.AdminUiInquirableWriter

public class AdminUiInquirableWriter
extends JavaClassWriter

Author:
nwright

Constructor Summary
AdminUiInquirableWriter(ServiceContractModel model, String directory, String rootPackage, String servKey, XmlType xmlType, List<ServiceMethod> methods)
           
 
Method Summary
static String calcClassName(String servKey, String xmlTypeName)
           
static String calcClassName(String servKey, XmlType xmlType)
           
static String calcDecoratorClassName(String servKey)
           
static String calcPackage(String servKey, String rootPackage, XmlType xmlType)
           
static String calcServiceConstantsPackage(XmlType xmlType)
           
static String calcServiceContantsName(String serviceClass)
           
 void write()
          Write out the entire file
static void writeServiceGetterAndSetter(JavaClassWriter out, String serviceClass, String serviceVar, XmlType xmlType)
           
 
Methods inherited from class org.kuali.student.contract.writer.JavaClassWriter
closeBrace, getBody, getClassName, getDirectory, getFileName, getPackageName, getRootDirectory, importsAdd, indentPrintWrappedComment, openBrace, setPackageName, 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
 

Constructor Detail

AdminUiInquirableWriter

public AdminUiInquirableWriter(ServiceContractModel model,
                               String directory,
                               String rootPackage,
                               String servKey,
                               XmlType xmlType,
                               List<ServiceMethod> methods)
Method Detail

calcPackage

public static String calcPackage(String servKey,
                                 String rootPackage,
                                 XmlType xmlType)

calcClassName

public static String calcClassName(String servKey,
                                   String xmlTypeName)

calcClassName

public static String calcClassName(String servKey,
                                   XmlType xmlType)

calcDecoratorClassName

public static String calcDecoratorClassName(String servKey)

write

public void write()
Write out the entire file

Parameters:
out -

writeServiceGetterAndSetter

public static void writeServiceGetterAndSetter(JavaClassWriter out,
                                               String serviceClass,
                                               String serviceVar,
                                               XmlType xmlType)

calcServiceContantsName

public static String calcServiceContantsName(String serviceClass)

calcServiceConstantsPackage

public static String calcServiceConstantsPackage(XmlType xmlType)


Copyright © 2004–2014 The Kuali Foundation. All rights reserved.