Coverage Report - org.kuali.student.enrollment.courseregistration.dto.CourseRegistrationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CourseRegistrationInfo
0%
0/31
0%
0/2
1.083
 
 1  
 package org.kuali.student.enrollment.courseregistration.dto;
 2  
 
 3  
 import java.io.Serializable;
 4  
 import java.util.List;
 5  
 
 6  
 import javax.xml.bind.annotation.XmlAccessType;
 7  
 import javax.xml.bind.annotation.XmlAccessorType;
 8  
 import javax.xml.bind.annotation.XmlAnyElement;
 9  
 import javax.xml.bind.annotation.XmlElement;
 10  
 import javax.xml.bind.annotation.XmlType;
 11  
 
 12  
 import org.kuali.student.enrollment.courseoffering.dto.CourseOfferingInfo;
 13  
 import org.kuali.student.enrollment.courseregistration.infc.CourseRegistration;
 14  
 import org.kuali.student.r2.common.dto.RelationshipInfo;
 15  
 import org.w3c.dom.Element;
 16  
 
 17  0
 @XmlAccessorType(XmlAccessType.FIELD)
 18  
 @XmlType(name = "CourseRegistrationInfo", propOrder = {"id", "typeKey", "stateKey", "courseOffering", "studentId",
 19  
         "regGroupRegistration", "credits", "gradingOptionKey", "effectiveDate", "expirationDate", "meta",
 20  
         "attributes", "_futureElements"})
 21  
 public class CourseRegistrationInfo extends RelationshipInfo implements CourseRegistration, Serializable {
 22  
 
 23  
     private static final long serialVersionUID = 1L;
 24  
 
 25  
     @XmlElement
 26  
     private CourseOfferingInfo courseOffering;
 27  
 
 28  
     @XmlElement
 29  
     private RegGroupRegistrationInfo regGroupRegistration;
 30  
 
 31  
     @XmlElement
 32  
     private String studentId;
 33  
 
 34  
     @XmlElement
 35  
     private String credits;
 36  
 
 37  
     @XmlElement
 38  
     private String gradingOptionKey;
 39  
 
 40  
     @XmlAnyElement
 41  
     private List<Element> _futureElements;
 42  
 
 43  
     public CourseRegistrationInfo() {
 44  0
         super();
 45  0
         this.courseOffering = null;
 46  0
         this.studentId = null;
 47  0
         this.credits = null;
 48  0
         this.gradingOptionKey = null;
 49  0
         this._futureElements = null;
 50  0
     }
 51  
 
 52  
     public CourseRegistrationInfo(CourseRegistration courseRegistration) {
 53  0
         super(courseRegistration);
 54  0
         if (null != courseRegistration) {
 55  0
             this.courseOffering = new CourseOfferingInfo(courseRegistration.getCourseOffering());
 56  0
             this.studentId = courseRegistration.getStudentId();
 57  0
             this.credits = courseRegistration.getCredits();
 58  0
             this.gradingOptionKey = courseRegistration.getGradingOptionKey();
 59  0
             this._futureElements = null;
 60  
         }
 61  0
     }
 62  
 
 63  
     @Override
 64  
     public String getStudentId() {
 65  0
         return studentId;
 66  
     }
 67  
 
 68  
     @Override
 69  
     public String getCredits() {
 70  0
         return credits;
 71  
     }
 72  
 
 73  
     @Override
 74  
     public String getGradingOptionKey() {
 75  0
         return gradingOptionKey;
 76  
     }
 77  
 
 78  
     public void setGradingOptionKey(String gradingOptionKey) {
 79  0
         this.gradingOptionKey = gradingOptionKey;
 80  0
     }
 81  
 
 82  
     @Override
 83  
     public CourseOfferingInfo getCourseOffering() {
 84  0
         return courseOffering;
 85  
     }
 86  
 
 87  
     @Override
 88  
     public RegGroupRegistrationInfo getRegGroupRegistration() {
 89  0
         return regGroupRegistration;
 90  
     }
 91  
 
 92  
     public void setRegGroupRegistration(RegGroupRegistrationInfo regGroupRegistration) {
 93  0
         this.regGroupRegistration = regGroupRegistration;
 94  0
     }
 95  
 
 96  
     public void setCourseOffering(CourseOfferingInfo courseOffering) {
 97  0
         this.courseOffering = courseOffering;
 98  0
     }
 99  
 
 100  
     public void setStudentId(String studentId) {
 101  0
         this.studentId = studentId;
 102  0
     }
 103  
 
 104  
     public void setCredits(String creditCount) {
 105  0
         this.credits = creditCount;
 106  0
     }
 107  
 
 108  
 }