Coverage Report - org.kuali.student.enrollment.lpr.dto.LprTransactionItemResultInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LprTransactionItemResultInfo
0%
0/26
0%
0/2
1.222
 
 1  
 /*
 2  
  * Copyright 2007 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.student.enrollment.lpr.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.ArrayList;
 20  
 import java.util.List;
 21  
 
 22  
 import javax.xml.bind.annotation.XmlAccessType;
 23  
 import javax.xml.bind.annotation.XmlAccessorType;
 24  
 import javax.xml.bind.annotation.XmlAnyElement;
 25  
 import javax.xml.bind.annotation.XmlElement;
 26  
 import javax.xml.bind.annotation.XmlType;
 27  
 
 28  
 import org.kuali.student.enrollment.lpr.infc.LprTransactionItemResult;
 29  
 import org.w3c.dom.Element;
 30  
 
 31  
 
 32  
 /**
 33  
  * 
 34  
  * @author Kuali Student Team (sambitpatnaik)
 35  
  *
 36  
  */
 37  
 @XmlAccessorType(XmlAccessType.FIELD)
 38  
 @XmlType(name = "LprTransactionItemResultInfo", propOrder = {"resultingLprId", "message", "status", "_futureElements"})
 39  
 public class LprTransactionItemResultInfo implements LprTransactionItemResult, Serializable {
 40  
 
 41  
     private static final long serialVersionUID = 1L;
 42  
 
 43  
     @XmlElement
 44  
     private String resultingLprId;
 45  
 
 46  
     @XmlElement
 47  
     private String message;
 48  
     
 49  
     @XmlElement    
 50  
     private Boolean status;
 51  
     
 52  
     @XmlAnyElement
 53  
     private List<Element> _futureElements;
 54  
 
 55  
 
 56  0
     public LprTransactionItemResultInfo() {
 57  0
     }
 58  
     
 59  
     
 60  0
     public LprTransactionItemResultInfo(LprTransactionItemResult result) {
 61  
 
 62  0
         if(null == result) return;
 63  
         
 64  0
         this.resultingLprId = result.getResultingLprId();
 65  0
         this.status = result.getStatus();
 66  0
         this.message = result.getMessage();
 67  0
     }
 68  
     
 69  
     public void setResultingLprId(String resultingLprId) {
 70  0
         this.resultingLprId = resultingLprId;
 71  0
     }
 72  
     
 73  
     public void setStatus(Boolean status) {
 74  0
         this.status = status;
 75  0
     }
 76  
     
 77  
     @Override
 78  
     public String getResultingLprId() {
 79  0
         return resultingLprId;
 80  
     }
 81  
 
 82  
 
 83  
     @Override
 84  
     public Boolean getStatus() {
 85  0
         return status;
 86  
     }
 87  
 
 88  
 
 89  
     @Override
 90  
         public String getMessage() {
 91  0
                 return message;
 92  
         }
 93  
 
 94  
 
 95  
         public void setMessage(String message) {
 96  0
                 this.message = message;
 97  0
         }
 98  
 
 99  
 
 100  
         @Override
 101  
         public String toString() {
 102  0
                 StringBuilder builder = new StringBuilder();
 103  0
                 builder.append("LprTransactionItemResultInfo [resultingLprId=");
 104  0
                 builder.append(resultingLprId);
 105  0
                 builder.append(", message=");
 106  0
                 builder.append(message);
 107  0
                 builder.append(", status=");
 108  0
                 builder.append(status);
 109  0
                 builder.append("]");
 110  0
                 return builder.toString();
 111  
         }
 112  
         
 113  
         
 114  
 
 115  
 }