Coverage Report - org.kuali.student.enrollment.lpr.dto.LprTransactionItemInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LprTransactionItemInfo
0%
0/47
0%
0/8
1.235
 
 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.LprTransactionItem;
 14  
 import org.kuali.student.enrollment.lpr.infc.RequestOption;
 15  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 16  
 import org.w3c.dom.Element;
 17  
 
 18  0
 @XmlAccessorType(XmlAccessType.FIELD)
 19  
 @XmlType(name = "LprTransactionItemInfo", propOrder = {"id","personId", "newLuiId", "existingLuiId", "resultValuesGroupKeys", "requestOptions", "lprTransactionItemResult", "name", "descr", "typeKey",
 20  
         "stateKey", "meta", "attributes", "groupId", "_futureElements"})
 21  
 public class LprTransactionItemInfo extends IdEntityInfo implements LprTransactionItem, Serializable {
 22  
 
 23  
     private static final long serialVersionUID = 1L;
 24  
 
 25  
     @XmlElement
 26  
     private String personId;
 27  
 
 28  
     @XmlElement
 29  
     private String newLuiId;
 30  
 
 31  
     @XmlElement
 32  
     private String existingLuiId;
 33  
 
 34  
     @XmlElement
 35  
     private String groupId;
 36  
 
 37  
     @XmlElement
 38  
     private List<String> resultValuesGroupKeys;
 39  
 
 40  
     @XmlElement
 41  
     private List<RequestOptionInfo> requestOptions;
 42  
 
 43  
     @XmlElement
 44  
     private LprTransactionItemResultInfo lprTransactionItemResult;
 45  
 
 46  
     @XmlAnyElement
 47  
     private List<Element> _futureElements;
 48  
 
 49  
     public LprTransactionItemInfo() {
 50  0
         super();
 51  0
         this.personId = null;
 52  0
         this.newLuiId = null;
 53  0
         this.existingLuiId = null;
 54  0
         this.requestOptions = new ArrayList<RequestOptionInfo>();
 55  0
         this.resultValuesGroupKeys = new ArrayList<String>();
 56  0
         this._futureElements = null;
 57  0
     }
 58  
 
 59  
     public LprTransactionItemInfo(LprTransactionItem lprTransactionItem) {
 60  
 
 61  0
         super(lprTransactionItem);
 62  0
         if (null != lprTransactionItem) {
 63  0
             this.personId = lprTransactionItem.getPersonId();
 64  0
             this.newLuiId = lprTransactionItem.getNewLuiId();
 65  0
             this.existingLuiId = lprTransactionItem.getExistingLuiId();
 66  
 
 67  0
             this.requestOptions = new ArrayList<RequestOptionInfo>();
 68  0
             if (null != lprTransactionItem.getRequestOptions()) {
 69  0
                 for (RequestOption reqOp : lprTransactionItem.getRequestOptions()) {
 70  0
                     this.requestOptions.add(new RequestOptionInfo(reqOp));
 71  
                 }
 72  
             }
 73  
 
 74  0
             this.resultValuesGroupKeys = new ArrayList<String>();
 75  0
             if (null != lprTransactionItem.getResultValuesGroupKeys()) {
 76  0
                 resultValuesGroupKeys.addAll(lprTransactionItem.getResultValuesGroupKeys());
 77  
             }
 78  
 
 79  0
             this.lprTransactionItemResult = new LprTransactionItemResultInfo(lprTransactionItem.getLprTransactionItemResult());
 80  
 
 81  0
             this._futureElements = null;
 82  
         }
 83  0
     }
 84  
 
 85  
     @Override
 86  
     public LprTransactionItemResultInfo getLprTransactionItemResult() {
 87  0
         return lprTransactionItemResult;
 88  
     }
 89  
 
 90  
     public void setLprTransactionResult(LprTransactionItemResultInfo lprTransactionResult) {
 91  0
         this.lprTransactionItemResult = lprTransactionResult;
 92  0
     }
 93  
 
 94  
     @Override
 95  
     public List<RequestOptionInfo> getRequestOptions() {
 96  0
         return requestOptions;
 97  
     }
 98  
 
 99  
     public void setRequestOptions(List<RequestOptionInfo> requestOptions) {
 100  0
         this.requestOptions = requestOptions;
 101  0
     }
 102  
 
 103  
     public void setNewLuiId(String newLuiId) {
 104  0
         this.newLuiId = newLuiId;
 105  0
     }
 106  
 
 107  
     public void setExistingLuiId(String existingLuiId) {
 108  0
         this.existingLuiId = existingLuiId;
 109  0
     }
 110  
 
 111  
     @Override
 112  
     public String getNewLuiId() {
 113  0
         return newLuiId;
 114  
     }
 115  
 
 116  
     @Override
 117  
     public String getExistingLuiId() {
 118  0
         return existingLuiId;
 119  
     }
 120  
 
 121  
     @Override
 122  
     public String getPersonId() {
 123  0
         return personId;
 124  
     }
 125  
 
 126  
     public void setPersonId(String personId) {
 127  0
         this.personId = personId;
 128  0
     }
 129  
 
 130  
     @Override
 131  
     public List<String> getResultValuesGroupKeys() {
 132  0
         return resultValuesGroupKeys;
 133  
     }
 134  
 
 135  
     public void setResultValuesGroupKeys(List<String> resultValuesGroupKeys) {
 136  0
         this.resultValuesGroupKeys = resultValuesGroupKeys;
 137  0
     }
 138  
 
 139  
     public void setLprTransactionItemResult(LprTransactionItemResultInfo lprTransactionItemResult) {
 140  0
         this.lprTransactionItemResult = lprTransactionItemResult;
 141  0
     }
 142  
 
 143  
     @Override
 144  
     public String getGroupId() {
 145  0
         return groupId;
 146  
     }
 147  
 
 148  
     public void setGroupId(String groupId) {
 149  0
         this.groupId = groupId;
 150  0
     }
 151  
 }