Coverage Report - org.kuali.student.r2.core.scheduling.dto.ScheduleRequestComponentsInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ScheduleRequestComponentsInfo
0%
0/33
0%
0/2
1.062
 
 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.ScheduleRequestComponents;
 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 = "ScheduleRequestComponentsInfo", propOrder = {"id", "buildingIds", "campusIds", "orgIds", "resourceTypeKeys", "roomIds", "timeSlotIds", "_futureElements"})
 36  
 public class ScheduleRequestComponentsInfo implements ScheduleRequestComponents, Serializable {
 37  
 
 38  
     @XmlElement
 39  
     private String id;
 40  
     @XmlElement
 41  
     private List<String> buildingIds;
 42  
     @XmlElement
 43  
     private List<String> campusIds;
 44  
     @XmlElement
 45  
     private List<String> orgIds;
 46  
     @XmlElement
 47  
     private List<String> resourceTypeKeys;
 48  
     @XmlElement
 49  
     private List<String> roomIds;
 50  
     @XmlElement
 51  
     private List<String> timeSlotIds;
 52  
     @XmlAnyElement
 53  
     private List<Element> _futureElements;
 54  
 
 55  0
     public ScheduleRequestComponentsInfo() {
 56  0
     }
 57  
 
 58  0
     public ScheduleRequestComponentsInfo(ScheduleRequestComponents scheduleRequestComponents) {
 59  0
         if (null != scheduleRequestComponents) {
 60  0
             this.id = scheduleRequestComponents.getId();
 61  0
             this.buildingIds = new ArrayList<String>(scheduleRequestComponents.getBuildingIds());
 62  0
             this.campusIds = new ArrayList<String>(scheduleRequestComponents.getCampusIds());
 63  0
             this.orgIds = new ArrayList<String>(scheduleRequestComponents.getOrgIds());
 64  0
             this.resourceTypeKeys = scheduleRequestComponents.getResourceTypeKeys();
 65  0
             this.roomIds = scheduleRequestComponents.getRoomIds();
 66  0
             this.timeSlotIds = new ArrayList<String>(scheduleRequestComponents.getTimeSlotIds());
 67  
         }
 68  0
     }
 69  
 
 70  
     public String getId() {
 71  0
         return id;
 72  
     }
 73  
 
 74  
     public void setId(String id) {
 75  0
         this.id = id;
 76  0
     }
 77  
 
 78  
     @Override
 79  
     public List<String> getBuildingIds() {
 80  0
         return buildingIds;
 81  
     }
 82  
 
 83  
     public void setBuildingIds(List<String> buildingIds) {
 84  0
         this.buildingIds = buildingIds;
 85  0
     }
 86  
 
 87  
     @Override
 88  
     public List<String> getCampusIds() {
 89  0
         return campusIds;
 90  
     }
 91  
 
 92  
     public void setCampusIds(List<String> campusIds) {
 93  0
         this.campusIds = campusIds;
 94  0
     }
 95  
 
 96  
     @Override
 97  
     public List<String> getOrgIds() {
 98  0
         return orgIds;
 99  
     }
 100  
 
 101  
     public void setOrgIds(List<String> orgIds) {
 102  0
         this.orgIds = orgIds;
 103  0
     }
 104  
 
 105  
     @Override
 106  
     public List<String> getResourceTypeKeys() {
 107  0
         return resourceTypeKeys;
 108  
     }
 109  
 
 110  
     public void setResourceTypeKeys(List<String> resourceTypeKeys) {
 111  0
         this.resourceTypeKeys = resourceTypeKeys;
 112  0
     }
 113  
 
 114  
     @Override
 115  
     public List<String> getRoomIds() {
 116  0
         return roomIds;
 117  
     }
 118  
 
 119  
     public void setRoomIds(List<String> roomIds) {
 120  0
         this.roomIds = roomIds;
 121  0
     }
 122  
 
 123  
     @Override
 124  
     public List<String> getTimeSlotIds() {
 125  0
         return timeSlotIds;
 126  
     }
 127  
 
 128  
     public void setTimeSlotIds(List<String> timeSlotIds) {
 129  0
         this.timeSlotIds = timeSlotIds;
 130  0
     }
 131  
 }