Coverage Report - org.kuali.student.r2.common.dto.MeetingScheduleInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
MeetingScheduleInfo
0%
0/17
0%
0/2
1.125
 
 1  
 /*
 2  
  * Copyright 2011 The Kuali Foundation 
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the
 5  
  * "License"); you may not use this file except in compliance with the
 6  
  * License. You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.osedu.org/licenses/ECL-2.0
 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
 13  
  * implied. See the License for the specific language governing
 14  
  * permissions and limitations under the License.
 15  
  */
 16  
 
 17  
 package org.kuali.student.r2.common.dto;
 18  
 
 19  
 import java.io.Serializable;
 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.r2.common.infc.MeetingSchedule;
 29  
 import org.w3c.dom.Element;
 30  
 
 31  
 /**
 32  
  * Information about a MeetingSchedule. This will move into the
 33  
  * Scheduling service.
 34  
  *
 35  
  * @author kamal
 36  
  */
 37  
 
 38  
 @XmlAccessorType(XmlAccessType.FIELD)
 39  
 @XmlType(name = "MeetingScheduleInfo", propOrder = {
 40  
                 "id", "spaceId", "scheduleId",
 41  
                 "_futureElements"})
 42  
 
 43  
 public class MeetingScheduleInfo 
 44  
     implements MeetingSchedule, Serializable {
 45  
 
 46  
     private static final long serialVersionUID = 1L;
 47  
 
 48  
     @XmlElement
 49  
     private String id;
 50  
 
 51  
     @XmlElement
 52  
     private String spaceId;
 53  
 
 54  
     @XmlElement
 55  
     private String scheduleId;
 56  
 
 57  
     @XmlAnyElement
 58  
     private List<Element> _futureElements;    
 59  
 
 60  
 
 61  
     /**
 62  
      * Constructs a new MeetingScheduleInfo.
 63  
      */
 64  0
     public MeetingScheduleInfo() {
 65  0
     }
 66  
 
 67  
     /**
 68  
      * Constructs a new MeetingScheduleInfo from another
 69  
      * MeetingSchedule.
 70  
      *
 71  
      * @param meetingSchedule the MeetingSchedule to copy
 72  
      */
 73  0
     public MeetingScheduleInfo(MeetingSchedule meetingSchedule) {
 74  0
         if (null != meetingSchedule) {
 75  0
             this.id = meetingSchedule.getId();
 76  0
             this.spaceId = meetingSchedule.getSpaceId();
 77  0
             this.scheduleId = meetingSchedule.getScheduleId();
 78  
         }
 79  0
     }
 80  
 
 81  
     @Override
 82  
     public String getId() {
 83  0
         return id;
 84  
     }
 85  
 
 86  
     public void setId(String id) {
 87  0
         this.id = id;
 88  0
     }
 89  
 
 90  
     @Override
 91  
     public String getSpaceId() {
 92  0
         return spaceId;
 93  
     }
 94  
 
 95  
     public void setSpaceId(String spaceId) {
 96  0
         this.spaceId = spaceId;
 97  0
     }
 98  
 
 99  
     @Override
 100  
     public String getScheduleId() {
 101  0
         return scheduleId;
 102  
     }
 103  
 
 104  
     public void setScheduleId(String scheduleId) {
 105  0
         this.scheduleId = scheduleId;
 106  0
     }
 107  
 
 108  
 }