Coverage Report - org.kuali.student.contract.model.util.ServiceDumper
 
Classes in this File Line Coverage Branch Coverage Complexity
ServiceDumper
0%
0/36
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.Service;
 10  
 
 11  
 /**
 12  
  *
 13  
  * @author nwright
 14  
  */
 15  
 public class ServiceDumper
 16  
 {
 17  
 
 18  
  private Service service;
 19  
  private PrintStream out;
 20  
 
 21  
  public ServiceDumper (Service service, PrintStream out)
 22  0
  {
 23  0
   this.service = service;
 24  0
   this.out = out;
 25  0
  }
 26  
 
 27  
  public void dump ()
 28  
  {
 29  0
   out.println (service.getKey () + "." + service.getName () + "(" + service.
 30  
    getVersion () + ")");
 31  0
  }
 32  
 
 33  
  public void writeTabbedHeader ()
 34  
  {
 35  0
   out.print ("Key");
 36  0
   out.print ("\t");
 37  0
   out.print ("Name");
 38  0
   out.print ("\t");
 39  0
   out.print ("Version");
 40  0
   out.print ("\t");
 41  0
   out.print ("url");
 42  0
   out.print ("\t");
 43  0
   out.print ("ImplProject");
 44  0
   out.print ("\t");
 45  0
   out.print ("status");
 46  0
   out.print ("\t");
 47  0
   out.print ("comments");
 48  0
   out.println ("");
 49  0
  }
 50  
 
 51  
  public void writeTabbedData ()
 52  
  {
 53  0
   out.print (service.getKey ());
 54  0
   out.print ("\t");
 55  0
   out.print (service.getName ());
 56  0
   out.print ("\t");
 57  0
   out.print (service.getVersion ());
 58  0
   out.print ("\t");
 59  0
   out.print (service.getUrl ());
 60  0
   out.print ("\t");
 61  0
   out.print (service.getImplProject ());
 62  0
   out.print ("\t");
 63  0
   out.print (service.getStatus ());
 64  0
   out.print ("\t");
 65  0
   out.print (service.getComments ());
 66  0
   out.println ("");
 67  0
  }
 68  
 
 69  
 }