Coverage Report - org.kuali.student.r2.core.scheduling.dto.ScheduleResponseItemInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ScheduleResponseItemInfo
0%
0/23
0%
0/4
1.3
 
 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.core.scheduling.infc.ScheduleResponseItem;
 19  
 import org.w3c.dom.Element;
 20  
 
 21  
 import javax.xml.bind.annotation.XmlAccessType;
 22  
 import javax.xml.bind.annotation.XmlAccessorType;
 23  
 import javax.xml.bind.annotation.XmlAnyElement;
 24  
 import javax.xml.bind.annotation.XmlElement;
 25  
 import javax.xml.bind.annotation.XmlType;
 26  
 import java.io.Serializable;
 27  
 import java.util.ArrayList;
 28  
 import java.util.List;
 29  
 
 30  
 /**
 31  
  * @Version 2.0
 32  
  * @Author Sri komandur@uw.edu
 33  
  */
 34  
 @XmlAccessorType(XmlAccessType.FIELD)
 35  
 @XmlType(name = "ScheduleResponseItemInfo", propOrder = {"id", "scheduleIds", "scheduleRequestItemId", "scheduleResponseId", "_futureElements"})
 36  
 public class ScheduleResponseItemInfo implements ScheduleResponseItem, Serializable {
 37  
 
 38  
     @XmlElement
 39  
     private String id;
 40  
     @XmlElement
 41  
     private List<String> scheduleIds;
 42  
     @XmlElement
 43  
     private String scheduleRequestItemId;
 44  
     @XmlElement
 45  
     private String scheduleResponseId;
 46  
     @XmlAnyElement
 47  
     private List<Element> _futureElements;
 48  
 
 49  0
     public ScheduleResponseItemInfo() {
 50  0
     }
 51  
 
 52  0
     public ScheduleResponseItemInfo(ScheduleResponseItem scheduleResponseItem) {
 53  0
         if (null != scheduleResponseItem) {
 54  0
             this.id = scheduleResponseItem.getId();
 55  0
             this.scheduleIds = new ArrayList<String>(scheduleResponseItem.getScheduleIds());
 56  0
             this.scheduleRequestItemId = scheduleResponseItem.getScheduleRequestItemId();
 57  0
             this.scheduleResponseId = scheduleResponseItem.getScheduleResponseId();
 58  
         }
 59  0
     }
 60  
 
 61  
     @Override
 62  
     public String getId() {
 63  0
         return this.id;
 64  
     }
 65  
 
 66  
     public void setId(String id) {
 67  0
         this.id = id;
 68  0
     }
 69  
 
 70  
     @Override
 71  
     public List<String> getScheduleIds() {
 72  0
         if (null == this.scheduleIds) {
 73  0
             return new ArrayList<String>();
 74  
         }
 75  
         else {
 76  0
             return this.scheduleIds;
 77  
         }
 78  
     }
 79  
 
 80  
     public void setScheduleIds(List<String> scheduleIds) {
 81  0
         this.scheduleIds = scheduleIds;
 82  0
     }
 83  
 
 84  
     @Override
 85  
     public String getScheduleRequestItemId() {
 86  0
         return this.scheduleRequestItemId;
 87  
     }
 88  
 
 89  
     public void setScheduleRequestItemId(String scheduleRequestItemId) {
 90  0
         this.scheduleRequestItemId = scheduleRequestItemId;
 91  0
     }
 92  
 
 93  
     @Override
 94  
     public String getScheduleResponseId() {
 95  0
         return this.scheduleResponseId;
 96  
     }
 97  
 
 98  
     public void setScheduleResponseId(String scheduleResponseId) {
 99  0
         this.scheduleResponseId = scheduleResponseId;
 100  0
     }
 101  
 }