Coverage Report - org.kuali.student.r2.core.appointment.dto.AppointmentInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
AppointmentInfo
0%
0/13
0%
0/2
1.167
 
 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.appointment.dto;
 17  
 
 18  
 import org.kuali.student.r2.common.dto.RelationshipInfo;
 19  
 import org.kuali.student.r2.core.appointment.infc.Appointment;
 20  
 
 21  
 import javax.xml.bind.Element;
 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  
 import java.util.List;
 28  
 
 29  
 @XmlAccessorType(XmlAccessType.FIELD)
 30  
 @XmlType(name = "AppointmentInfo", propOrder = {"id", "typeKey", "stateKey",
 31  
         "personId", "slotId", "effectiveDate", "expirationDate",
 32  
         "meta", "attributes", "_futureElements"})
 33  
 public class AppointmentInfo extends RelationshipInfo implements Appointment {
 34  
 
 35  
     @XmlElement
 36  
     private String personId;
 37  
     @XmlElement
 38  
     private String slotId;
 39  
     @XmlAnyElement
 40  
     private List<Element> _futureElements;
 41  
 
 42  0
     public AppointmentInfo() {
 43  
 
 44  0
     }
 45  
 
 46  
     public AppointmentInfo(Appointment appointment) {
 47  0
         super(appointment);
 48  0
         if (null != appointment) {
 49  0
             this.personId = appointment.getPersonId();
 50  0
             this.slotId = appointment.getSlotId();
 51  
         }
 52  0
     }
 53  
 
 54  
     public void setPersonId(String personId) {
 55  0
         this.personId = personId;
 56  0
     }
 57  
 
 58  
     @Override
 59  
     public String getPersonId() {
 60  0
         return this.personId;
 61  
     }
 62  
 
 63  
     public void setSlotId(String slotId) {
 64  0
         this.slotId = slotId;
 65  0
     }
 66  
 
 67  
     @Override
 68  
     public String getSlotId() {
 69  0
         return this.slotId;
 70  
     }
 71  
 }