Coverage Report - org.kuali.student.enrollment.courseregistration.dto.ActivityRegistrationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ActivityRegistrationInfo
0%
0/13
0%
0/2
1.167
 
 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.Date;
 21  
 import java.util.List;
 22  
 
 23  
 import javax.xml.bind.annotation.XmlAccessType;
 24  
 import javax.xml.bind.annotation.XmlAccessorType;
 25  
 import javax.xml.bind.annotation.XmlAnyElement;
 26  
 import javax.xml.bind.annotation.XmlElement;
 27  
 import javax.xml.bind.annotation.XmlType;
 28  
 
 29  
 import org.kuali.student.enrollment.courseregistration.infc.ActivityRegistration;
 30  
 import org.kuali.student.r2.common.dto.RelationshipInfo;
 31  
 import org.w3c.dom.Element;
 32  
  
 33  
 @XmlAccessorType(XmlAccessType.FIELD)
 34  
 @XmlType(name = "ActivityRegistrationInfo", propOrder = {
 35  
                 "id", "typeKey", "stateKey", 
 36  
                 "studentId", "activityOfferingId",
 37  
                 "effectiveDate", "expirationDate", "meta", "attributes", 
 38  
                 "_futureElements"})
 39  
 
 40  
 public class ActivityRegistrationInfo 
 41  
     extends RelationshipInfo 
 42  
     implements ActivityRegistration, Serializable {
 43  
 
 44  
     private static final long serialVersionUID = 1L;
 45  
 
 46  
     @XmlElement
 47  
     private String studentId;
 48  
 
 49  
     @XmlElement
 50  
     private String activityOfferingId;
 51  
 
 52  
     @XmlAnyElement
 53  
     private List<Element> _futureElements;
 54  
 
 55  
 
 56  
     /**
 57  
      * Constructs a new ActivityRegistrationInfo.
 58  
      */
 59  0
     public ActivityRegistrationInfo() {
 60  0
     }
 61  
 
 62  
     /**
 63  
      * Constructs a new ActivityRegistrationInfo from another
 64  
      * ActivityRegistration.
 65  
      *
 66  
      * @param activityRegistration the ActivityRegistration to copy
 67  
      */
 68  
 
 69  
     public ActivityRegistrationInfo(ActivityRegistration activityRegistration) {
 70  0
         super(activityRegistration);
 71  
 
 72  0
         if (activityRegistration != null) {
 73  0
             this.studentId = activityRegistration.getStudentId();
 74  0
             this.activityOfferingId = activityRegistration.getActivityOfferingId();
 75  
         }
 76  0
     }
 77  
   
 78  
     @Override
 79  
     public String getStudentId() {
 80  0
         return studentId;
 81  
     }
 82  
 
 83  
     public void setStudentId(String studentId) {
 84  0
         this.studentId = studentId;
 85  0
     }
 86  
 
 87  
     @Override
 88  
     public String getActivityOfferingId() {
 89  0
         return activityOfferingId;
 90  
     }
 91  
 
 92  
     public void setActivityOfferingId(String activityOfferingId) {
 93  0
         this.activityOfferingId = activityOfferingId;
 94  0
     }
 95  
 }