Coverage Report - org.kuali.student.enrollment.courseregistration.dto.CourseRegistrationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CourseRegistrationInfo
0%
0/21
0%
0/2
1.1
 
 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.enrollment.courseregistration.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.enrollment.courseregistration.infc.CourseRegistration;
 29  
 import org.kuali.student.r2.common.dto.RelationshipInfo;
 30  
 import org.w3c.dom.Element;
 31  
 
 32  
 @XmlAccessorType(XmlAccessType.FIELD)
 33  
 @XmlType(name = "CourseRegistrationInfo", propOrder = {
 34  
         "id", "typeKey", "stateKey", 
 35  
         "studentId", "courseOfferingId", "credits", "gradingOptionId", 
 36  
         "effectiveDate", "expirationDate", "meta", "attributes", 
 37  
         "_futureElements"})
 38  
 
 39  
 public class CourseRegistrationInfo 
 40  
     extends RelationshipInfo 
 41  
     implements CourseRegistration, Serializable {
 42  
 
 43  
     private static final long serialVersionUID = 1L;
 44  
 
 45  
     @XmlElement
 46  
     private String studentId;
 47  
 
 48  
     @XmlElement
 49  
     private String courseOfferingId;
 50  
 
 51  
     @XmlElement
 52  
     private String credits;
 53  
 
 54  
     @XmlElement
 55  
     private String gradingOptionId;
 56  
 
 57  
     @XmlAnyElement
 58  
     private List<Element> _futureElements;
 59  
 
 60  
 
 61  
     /**
 62  
      * Constructs a new CourseRegistrationInfo.
 63  
      */
 64  0
     public CourseRegistrationInfo() {
 65  0
     }
 66  
 
 67  
     /**
 68  
      * Constructs a new CourseRegistrationInfo from another
 69  
      * CourseRegistration.
 70  
      *
 71  
      * @param courseRegistration the CourseRegistration to copy
 72  
      */
 73  
     public CourseRegistrationInfo(CourseRegistration courseRegistration) {
 74  0
         super(courseRegistration);
 75  
 
 76  0
         if (courseRegistration != null) {
 77  0
             this.studentId = courseRegistration.getStudentId();
 78  0
             this.courseOfferingId = courseRegistration.getCourseOfferingId();
 79  0
             this.credits = courseRegistration.getCredits();
 80  0
             this.gradingOptionId = courseRegistration.getGradingOptionId();
 81  
          }
 82  0
     }
 83  
 
 84  
     @Override
 85  
     public String getStudentId() {
 86  0
         return studentId;
 87  
     }
 88  
 
 89  
     public void setStudentId(String studentId) {
 90  0
         this.studentId = studentId;
 91  0
     }
 92  
 
 93  
     @Override
 94  
     public String getCourseOfferingId() {
 95  0
         return courseOfferingId;
 96  
     }
 97  
 
 98  
     public void setCourseOfferingId(String courseOfferingId) {
 99  0
         this.courseOfferingId = courseOfferingId;
 100  0
     }
 101  
 
 102  
     @Override
 103  
     public String getCredits() {
 104  0
         return credits;
 105  
     }
 106  
 
 107  
     public void setCredits(String credits) {
 108  0
         this.credits = credits;
 109  0
     }
 110  
 
 111  
     @Override
 112  
     public String getGradingOptionId() {
 113  0
         return gradingOptionId;
 114  
     }
 115  
 
 116  
     public void setGradingOptionId(String gradingOptionId) {
 117  0
         this.gradingOptionId = gradingOptionId;
 118  0
     }
 119  
 }