Coverage Report - org.kuali.student.enrollment.lpr.dto.LprTransactionInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LprTransactionInfo
0%
0/21
0%
0/6
1.5
 
 1  
 package org.kuali.student.enrollment.lpr.dto;
 2  
 
 3  
 import java.io.Serializable;
 4  
 import java.util.ArrayList;
 5  
 import java.util.List;
 6  
 
 7  
 import javax.xml.bind.annotation.XmlAccessType;
 8  
 import javax.xml.bind.annotation.XmlAccessorType;
 9  
 import javax.xml.bind.annotation.XmlAnyElement;
 10  
 import javax.xml.bind.annotation.XmlElement;
 11  
 import javax.xml.bind.annotation.XmlType;
 12  
 
 13  
 import org.kuali.student.enrollment.lpr.infc.LprTransaction;
 14  
 import org.kuali.student.enrollment.lpr.infc.LprTransactionItem;
 15  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 16  
 import org.w3c.dom.Element;
 17  
 
 18  
 /**
 19  
  * @author Kuali Student Team (sambit)
 20  
  */
 21  
 @XmlAccessorType(XmlAccessType.FIELD)
 22  
 @XmlType(name = "LprTransactionInfo", propOrder = {"id",
 23  
     "typeKey",
 24  
     "stateKey",
 25  
     "name",
 26  
     "descr",
 27  
     "requestingPersonId",
 28  
     "atpId",
 29  
     "lprTransactionItems",
 30  
     "meta",
 31  
     "attributes",
 32  
     "_futureElements"})
 33  
 public class LprTransactionInfo extends IdEntityInfo implements LprTransaction, Serializable {
 34  
 
 35  
     private static final long serialVersionUID = 1L;
 36  
     @XmlElement
 37  
     private String requestingPersonId;
 38  
     @XmlElement
 39  
     private String atpId;
 40  
     @XmlElement
 41  
     private List<LprTransactionItemInfo> lprTransactionItems;
 42  
     @XmlAnyElement
 43  
     private List<Element> _futureElements;
 44  
 
 45  0
     public LprTransactionInfo() {
 46  0
     }
 47  
 
 48  
     public LprTransactionInfo(LprTransaction input) {
 49  0
         super(input);
 50  0
         if (input == null) {
 51  0
             return;
 52  
         }
 53  0
         this.requestingPersonId = input.getRequestingPersonId();
 54  0
         this.atpId = input.getAtpId();
 55  0
         this.lprTransactionItems = new ArrayList<LprTransactionItemInfo>();
 56  0
         if (input.getLprTransactionItems() != null) {
 57  0
             for (LprTransactionItem item : input.getLprTransactionItems()) {
 58  0
                 this.lprTransactionItems.add(new LprTransactionItemInfo(item));
 59  
             }
 60  
         }
 61  0
     }
 62  
 
 63  
     @Override
 64  
     public List<LprTransactionItemInfo> getLprTransactionItems() {
 65  0
         return lprTransactionItems;
 66  
     }
 67  
 
 68  
     public void setLprTransactionItems(List<LprTransactionItemInfo> lprTransactionItems) {
 69  0
         this.lprTransactionItems = lprTransactionItems;
 70  0
     }
 71  
 
 72  
     @Override
 73  
     public String getRequestingPersonId() {
 74  0
         return requestingPersonId;
 75  
     }
 76  
 
 77  
     public void setRequestingPersonId(String requestingPersonId) {
 78  0
         this.requestingPersonId = requestingPersonId;
 79  0
     }
 80  
 
 81  
     @Override
 82  
     public String getAtpId() {
 83  0
         return atpId;
 84  
     }
 85  
 
 86  
     public void setAtpId(String atpId) {
 87  0
         this.atpId = atpId;
 88  0
     }
 89  
 }