Coverage Report - org.kuali.student.enrollment.courseoffering.dto.OfferingInstructorInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
OfferingInstructorInfo
0%
0/27
0%
0/2
1.2
 
 1  
 /**
 2  
  * Copyright 2010 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.enrollment.courseoffering.dto;
 17  
  
 18  
 import java.io.Serializable;
 19  
 import java.util.List;
 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.XmlAttribute;
 25  
 import javax.xml.bind.annotation.XmlElement;
 26  
 import javax.xml.bind.annotation.XmlType;
 27  
 
 28  
 import org.kuali.student.enrollment.courseoffering.infc.OfferingInstructor;
 29  
 import org.kuali.student.r2.common.dto.TypeStateEntityInfo;
 30  
 import org.w3c.dom.Element;
 31  
 
 32  
 /**
 33  
  *Information about a potential instructor for a lui.
 34  
  */ 
 35  
 @XmlAccessorType(XmlAccessType.FIELD)
 36  
 @XmlType(name = "OfferingInstructorInfo", propOrder = {"id", "personId", 
 37  
         "percentageEffort","personName", "typeKey", "stateKey", "meta", "attributes", "_futureElements"})
 38  
 public class OfferingInstructorInfo extends TypeStateEntityInfo implements OfferingInstructor, Serializable {
 39  
 
 40  
     private static final long serialVersionUID = 1L;
 41  
 
 42  
     @XmlAttribute
 43  
     private String id;
 44  
     
 45  
     @XmlElement
 46  
     private String personId;
 47  
 
 48  
     @XmlElement
 49  
     private String personName;
 50  
     
 51  
     @XmlElement 
 52  
     private Float percentageEffort; 
 53  
     
 54  
     @XmlAnyElement
 55  
     private List<Element> _futureElements;
 56  
 
 57  0
     public OfferingInstructorInfo() {
 58  0
         this.id = null;
 59  0
         this.personId = null;
 60  0
         this.percentageEffort = null;
 61  0
         this._futureElements  = null;
 62  0
         this.personName = null;
 63  0
     }
 64  
     
 65  
     public OfferingInstructorInfo(OfferingInstructor instructor) {
 66  
         
 67  0
         super(instructor);
 68  
         
 69  0
         if(null == instructor) return;
 70  0
         this.id = instructor.getId();
 71  0
         this.personId = instructor.getPersonId();
 72  0
         this.percentageEffort = instructor.getPercentageEffort();
 73  0
         this.personName = instructor.getPersonName();
 74  0
         this._futureElements = null;
 75  0
     }
 76  
 
 77  
     @Override
 78  
     public String getId() {
 79  0
         return id;
 80  
     }
 81  
 
 82  
     public void setId(String id) {
 83  0
         this.id = id;
 84  0
     }
 85  
         
 86  
     @Override
 87  
     public String getPersonId() {
 88  0
         return personId;
 89  
     }
 90  
 
 91  
     public void setPersonId(String personId) {
 92  0
         this.personId = personId;
 93  0
     }
 94  
 
 95  
     @Override
 96  
     public Float getPercentageEffort() {
 97  0
         return percentageEffort;
 98  
     }
 99  
 
 100  
     public void setPercentageEffort(Float percentageEffort) {
 101  0
         this.percentageEffort = percentageEffort;
 102  0
     }
 103  
 
 104  
     public void setPersonName(String personName) {
 105  0
         this.personName = personName;
 106  0
     }
 107  
     @Override
 108  
     public String getPersonName() {
 109  0
         return personName;
 110  
     }
 111  
 
 112  
 }