Coverage Report - org.kuali.student.enrollment.lpr.dto.LprTransactionItemResultInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LprTransactionItemResultInfo
0%
0/22
0%
0/4
1.375
 
 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  
  * This is a description of what this class does - sambitpatnaik don't forget to fill this in. 
 34  
  * 
 35  
  * @author Kuali Student Team (sambitpatnaik)
 36  
  *
 37  
  */
 38  
 @XmlAccessorType(XmlAccessType.FIELD)
 39  
 @XmlType(name = "LuiPersonRelationTransactionItemResultInfo", propOrder = {"resultingLprId", "messages", "status", "_futureElements"})
 40  
 public class LprTransactionItemResultInfo implements LprTransactionItemResult, Serializable {
 41  
 
 42  
     private static final long serialVersionUID = 1L;
 43  
 
 44  
     @XmlElement
 45  
     private String resultingLprId;
 46  
 
 47  
     @XmlElement
 48  
     private List<String> messages;
 49  
     
 50  
     @XmlElement    
 51  
     private String status;
 52  
     
 53  
     @XmlAnyElement
 54  
     private List<Element> _futureElements;
 55  
 
 56  
 
 57  0
     public LprTransactionItemResultInfo() {
 58  0
         this.resultingLprId = null;
 59  0
         this.messages = new ArrayList<String>();
 60  0
         this.status = null;
 61  0
         this._futureElements = null;
 62  0
     }
 63  
     
 64  
     
 65  0
     public LprTransactionItemResultInfo(LprTransactionItemResult result) {
 66  
 
 67  0
         if(null == result) return;
 68  
         
 69  0
         this.resultingLprId = result.getResultingLprId();
 70  0
         this.status = result.getStatus();
 71  0
         this.messages = (null != result.getMessages()) ? new ArrayList<String>(result.getMessages()) : new ArrayList<String>();
 72  0
         this._futureElements = null;        
 73  0
     }
 74  
     
 75  
     public void setResultingLprId(String resultingLprId) {
 76  0
         this.resultingLprId = resultingLprId;
 77  0
     }
 78  
 
 79  
     public void setMessages(List<String> messages) {
 80  0
         this.messages = messages;
 81  0
     }
 82  
 
 83  
     public void setStatus(String status) {
 84  0
         this.status = status;
 85  0
     }
 86  
     
 87  
     @Override
 88  
     public String getResultingLprId() {
 89  0
         return resultingLprId;
 90  
     }
 91  
 
 92  
     @Override
 93  
     public List<String> getMessages() {
 94  0
         return messages;
 95  
     }
 96  
 
 97  
     @Override
 98  
     public String getStatus() {
 99  0
         return status;
 100  
     }
 101  
 
 102  
 }