Coverage Report - org.kuali.student.r2.core.scheduling.dto.ScheduleResponseInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ScheduleResponseInfo
0%
0/21
0%
0/2
1.1
 
 1  
 /*
 2  
  * Copyright 2012 The Kuali Foundation Licensed under the
 3  
  *  Educational Community License, Version 2.0 (the "License"); you may
 4  
  *  not use this file except in compliance with the License. You may
 5  
  *  obtain a copy of the License at
 6  
  *
 7  
  *   http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  *  Unless required by applicable law or agreed to in writing,
 10  
  *  software distributed under the License is distributed on an "AS IS"
 11  
  *  BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  *  or implied. See the License for the specific language governing
 13  
  *  permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.r2.core.scheduling.dto;
 17  
 
 18  
 import org.kuali.student.r2.common.dto.IdNamelessEntityInfo;
 19  
 import org.kuali.student.r2.common.dto.StatusInfo;
 20  
 import org.kuali.student.r2.common.infc.Status;
 21  
 import org.kuali.student.r2.core.scheduling.infc.ScheduleResponse;
 22  
 import org.w3c.dom.Element;
 23  
 
 24  
 import javax.xml.bind.annotation.XmlAccessType;
 25  
 import javax.xml.bind.annotation.XmlAccessorType;
 26  
 import javax.xml.bind.annotation.XmlAnyElement;
 27  
 import javax.xml.bind.annotation.XmlElement;
 28  
 import javax.xml.bind.annotation.XmlType;
 29  
 import java.io.Serializable;
 30  
 import java.util.List;
 31  
 
 32  
 /**
 33  
  * @Version 2.0
 34  
  * @Author Sri komandur@uw.edu
 35  
  */
 36  
 @XmlAccessorType(XmlAccessType.FIELD)
 37  
 @XmlType(name = "ScheduleResponseInfo", propOrder = {"id", "typeKey", "stateKey",
 38  
         "batchResponseId", "scheduleRequestId", "scheduleId", "statusMessage",
 39  
         "meta", "attributes", "_futureElements"})
 40  
 public class ScheduleResponseInfo extends IdNamelessEntityInfo implements ScheduleResponse, Serializable {
 41  
 
 42  
     @XmlElement
 43  
     private String batchResponseId;
 44  
     @XmlElement
 45  
     private String scheduleRequestId;
 46  
     @XmlElement
 47  
     private String scheduleId;
 48  
     @XmlElement
 49  
     private String statusMessage;
 50  
     @XmlAnyElement
 51  
     private List<Element> _futureElements;
 52  
 
 53  0
     public ScheduleResponseInfo() {
 54  0
     }
 55  
 
 56  0
     public ScheduleResponseInfo(ScheduleResponse scheduleResponse) {
 57  0
         if (null != scheduleResponse) {
 58  0
             this.batchResponseId = scheduleResponse.getBatchResponseId();
 59  0
             this.scheduleRequestId = scheduleResponse.getScheduleRequestId();
 60  0
             this.scheduleId = scheduleResponse.getScheduleId();
 61  0
             this.statusMessage = scheduleResponse.getStatusMessage();
 62  
         }
 63  0
     }
 64  
 
 65  
     @Override
 66  
     public String getBatchResponseId() {
 67  0
         return this.batchResponseId;
 68  
     }
 69  
 
 70  
     public void setBatchResponseId(String batchResponseId) {
 71  0
         this.batchResponseId = batchResponseId;
 72  0
     }
 73  
 
 74  
     @Override
 75  
     public String getScheduleRequestId() {
 76  0
         return scheduleRequestId;
 77  
     }
 78  
 
 79  
     public void setScheduleRequestId(String scheduleRequestId) {
 80  0
         this.scheduleRequestId = scheduleRequestId;
 81  0
     }
 82  
 
 83  
     @Override
 84  
     public String getScheduleId() {
 85  0
         return this.scheduleId;
 86  
     }
 87  
 
 88  
     public void setScheduleId(String scheduleId) {
 89  0
         this.scheduleId = scheduleId;
 90  0
     }
 91  
 
 92  
     @Override
 93  
     public String getStatusMessage() {
 94  0
         return this.statusMessage;
 95  
     }
 96  
 
 97  
     public void setStatusMessage(String statusMessage) {
 98  0
         this.statusMessage = statusMessage;
 99  0
     }
 100  
 }