Coverage Report - org.kuali.student.r2.core.scheduling.dto.ScheduleRequestComponentInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ScheduleRequestComponentInfo
0%
0/45
0%
0/14
1.812
 
 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.ScheduleRequestComponent;
 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 = "ScheduleRequestComponentInfo", propOrder = {"id", "buildingIds", "campusIds", "orgIds", "resourceTypeKeys", "roomIds", "timeSlotIds", "_futureElements"})
 36  
 public class ScheduleRequestComponentInfo implements ScheduleRequestComponent, 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 ScheduleRequestComponentInfo() {
 56  0
     }
 57  
 
 58  0
     public ScheduleRequestComponentInfo(ScheduleRequestComponent scheduleRequestComponent) {
 59  0
         if (null != scheduleRequestComponent) {
 60  0
             this.id = scheduleRequestComponent.getId();
 61  0
             this.buildingIds = new ArrayList<String>(scheduleRequestComponent.getBuildingIds());
 62  0
             this.campusIds = new ArrayList<String>(scheduleRequestComponent.getCampusIds());
 63  0
             this.orgIds = new ArrayList<String>(scheduleRequestComponent.getOrgIds());
 64  0
             this.resourceTypeKeys = scheduleRequestComponent.getResourceTypeKeys();
 65  0
             this.roomIds = scheduleRequestComponent.getRoomIds();
 66  0
             this.timeSlotIds = new ArrayList<String>(scheduleRequestComponent.getTimeSlotIds());
 67  
         }
 68  0
     }
 69  
 
 70  
     public String getId() {
 71  0
         return this.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
         if (null == this.buildingIds) {
 81  0
             return new ArrayList<String>();
 82  
         }
 83  
         else {
 84  0
             return this.buildingIds;
 85  
         }
 86  
     }
 87  
 
 88  
     public void setBuildingIds(List<String> buildingIds) {
 89  0
         this.buildingIds = buildingIds;
 90  0
     }
 91  
 
 92  
     @Override
 93  
     public List<String> getCampusIds() {
 94  0
         if (null == this.campusIds) {
 95  0
             return new ArrayList<String>();
 96  
         }
 97  
         else {
 98  0
             return this.campusIds;
 99  
         }
 100  
     }
 101  
 
 102  
     public void setCampusIds(List<String> campusIds) {
 103  0
         this.campusIds = campusIds;
 104  0
     }
 105  
 
 106  
     @Override
 107  
     public List<String> getOrgIds() {
 108  0
         if (null == this.orgIds) {
 109  0
             return new ArrayList<String>();
 110  
         }
 111  
         else {
 112  0
             return this.orgIds;
 113  
         }
 114  
     }
 115  
 
 116  
     public void setOrgIds(List<String> orgIds) {
 117  0
         this.orgIds = orgIds;
 118  0
     }
 119  
 
 120  
     @Override
 121  
     public List<String> getResourceTypeKeys() {
 122  0
         if (null == this.resourceTypeKeys) {
 123  0
             return new ArrayList<String>();
 124  
         }
 125  
         else {
 126  0
             return this.resourceTypeKeys;
 127  
         }
 128  
     }
 129  
 
 130  
     public void setResourceTypeKeys(List<String> resourceTypeKeys) {
 131  0
         this.resourceTypeKeys = resourceTypeKeys;
 132  0
     }
 133  
 
 134  
     @Override
 135  
     public List<String> getRoomIds() {
 136  0
         if (null == this.roomIds) {
 137  0
             return new ArrayList<String>();
 138  
         }
 139  
         else {
 140  0
             return this.roomIds;
 141  
         }
 142  
     }
 143  
 
 144  
     public void setRoomIds(List<String> roomIds) {
 145  0
         this.roomIds = roomIds;
 146  0
     }
 147  
 
 148  
     @Override
 149  
     public List<String> getTimeSlotIds() {
 150  0
         if (null == this.timeSlotIds) {
 151  0
             return new ArrayList<String>();
 152  
         }
 153  
         else {
 154  0
             return timeSlotIds;
 155  
         }
 156  
     }
 157  
 
 158  
     public void setTimeSlotIds(List<String> timeSlotIds) {
 159  0
         this.timeSlotIds = timeSlotIds;
 160  0
     }
 161  
 }