Coverage Report - org.kuali.student.contract.model.util.XmlTypeDumper
 
Classes in this File Line Coverage Branch Coverage Complexity
XmlTypeDumper
0%
0/48
N/A
1
 
 1  
 /*
 2  
  * To change this template, choose Tools | Templates
 3  
  * and open the template in the editor.
 4  
  */
 5  
 package org.kuali.student.contract.model.util;
 6  
 
 7  
 import java.io.PrintStream;
 8  
 
 9  
 import org.kuali.student.contract.model.XmlType;
 10  
 
 11  
 /**
 12  
  *
 13  
  * @author nwright
 14  
  */
 15  
 public class XmlTypeDumper {
 16  
 
 17  
     private XmlType xmlType;
 18  
     private PrintStream out;
 19  
 
 20  
     public XmlTypeDumper(XmlType xmlType,
 21  0
             PrintStream out) {
 22  0
         this.xmlType = xmlType;
 23  0
         this.out = out;
 24  0
     }
 25  
 
 26  
     public void dump() {
 27  0
         out.println(xmlType.getName()
 28  
                 + " - " + xmlType.getPrimitive()
 29  
                 + " - " + xmlType.getDesc()
 30  
                 + " - Http://XXX" + xmlType.getUrl());
 31  0
     }
 32  
 
 33  
     public void writeTabbedHeader() {
 34  0
         out.print("name");
 35  0
         out.print("\t");
 36  0
         out.print("desc");
 37  0
         out.print("\t");
 38  0
         out.print("primitive");
 39  0
         out.print("\t");
 40  0
         out.print("hasOwnType");
 41  0
         out.print("\t");
 42  0
         out.print("hasOwnState");
 43  0
         out.print("\t");
 44  0
         out.print("hasOwnCreateUpdate");
 45  0
         out.print("\t");
 46  0
         out.print("Service");
 47  0
         out.print("\t");
 48  0
         out.print("examples");
 49  0
         out.print("\t");
 50  0
         out.print("javaPackage");
 51  0
         out.print("\t");
 52  0
         out.print("comments");
 53  
 
 54  0
         out.println("");
 55  0
     }
 56  
 
 57  
     public void writeTabbedData() {
 58  0
         out.print(xmlType.getName());
 59  0
         out.print("\t");
 60  0
         out.print(xmlType.getDesc());
 61  0
         out.print("\t");
 62  0
         out.print(xmlType.getPrimitive());
 63  0
         out.print("\t");
 64  0
         out.print(xmlType.hasOwnType());
 65  0
         out.print("\t");
 66  0
         out.print(xmlType.hasOwnState());
 67  0
         out.print("\t");
 68  0
         out.print(xmlType.hasOwnCreateUpdate());
 69  0
         out.print("\t");
 70  0
         out.print(xmlType.getService());
 71  0
         out.print("\t");
 72  0
         out.print(xmlType.getExamples());
 73  0
         out.print("\t");
 74  0
         out.print(xmlType.getJavaPackage());
 75  0
         out.print("\t");
 76  0
         out.print(xmlType.getComments());
 77  0
         out.println("");
 78  0
     }
 79  
 }