Coverage Report - org.kuali.student.r2.lum.course.dto.CourseCrossListingInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CourseCrossListingInfo
0%
0/21
0%
0/2
1.1
 
 1  
 /*
 2  
  * Copyright 2009 The Kuali Foundation Licensed under the Educational Community
 3  
  * License, Version 1.0 (the "License"); you may not use this file except in
 4  
  * compliance with the License. You may obtain a copy of the License at
 5  
  * http://www.opensource.org/licenses/ecl1.php Unless required by applicable law
 6  
  * or agreed to in writing, software distributed under the License is
 7  
  * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 8  
  * KIND, either express or implied. See the License for the specific language
 9  
  * governing permissions and limitations under the License.
 10  
  */
 11  
 package org.kuali.student.r2.lum.course.dto;
 12  
 
 13  
 import java.io.Serializable;
 14  
 
 15  
 import javax.xml.bind.annotation.XmlAccessType;
 16  
 import javax.xml.bind.annotation.XmlAccessorType;
 17  
 import javax.xml.bind.annotation.XmlElement;
 18  
 import javax.xml.bind.annotation.XmlType;
 19  
 
 20  
 import org.kuali.student.r2.common.dto.IdNamelessEntityInfo;
 21  
 import org.kuali.student.r2.lum.course.infc.CourseCrossListing;
 22  
 
 23  
 /**
 24  
  * This is a description of what this class does - sambit don't forget to fill
 25  
  * this in.
 26  
  * 
 27  
  * @author Kuali Student Team (sambitpa@kuali.org)
 28  
  */
 29  
 
 30  
 @XmlType(name = "CourseCrossListingInfo", propOrder = {"id", "typeKey", "stateKey", "code", "subjectArea", "department", "courseNumberSuffix", "meta", "attributes", "_futureElements"})
 31  
 @XmlAccessorType(XmlAccessType.FIELD)
 32  
 public class CourseCrossListingInfo extends IdNamelessEntityInfo implements CourseCrossListing, Serializable {
 33  
 
 34  
     private static final long serialVersionUID = 1L;
 35  
 
 36  
     @XmlElement
 37  
     private String code;
 38  
 
 39  
     @XmlElement
 40  
     private String subjectArea;
 41  
 
 42  
     @XmlElement
 43  
     private String department;
 44  
 
 45  
     @XmlElement
 46  
     private String courseNumberSuffix;
 47  
 
 48  0
     public CourseCrossListingInfo() {
 49  
 
 50  0
     }
 51  
 
 52  
     public CourseCrossListingInfo(CourseCrossListing courseCrossListing) {
 53  0
         super(courseCrossListing);
 54  0
         if (courseCrossListing != null) {
 55  0
             this.code = courseCrossListing.getCode();
 56  0
             this.subjectArea = courseCrossListing.getSubjectArea();
 57  0
             this.department = courseCrossListing.getDepartment();
 58  0
             this.courseNumberSuffix = courseCrossListing.getCourseNumberSuffix();
 59  
         }
 60  0
     }
 61  
 
 62  
     @Override
 63  
     public String getCode() {
 64  0
         return code;
 65  
     }
 66  
 
 67  
     public void setCode(String code) {
 68  0
         this.code = code;
 69  0
     }
 70  
 
 71  
     @Override
 72  
     public String getSubjectArea() {
 73  0
         return subjectArea;
 74  
     }
 75  
 
 76  
     public void setSubjectArea(String subjectArea) {
 77  0
         this.subjectArea = subjectArea;
 78  0
     }
 79  
 
 80  
     @Override
 81  
     public String getDepartment() {
 82  0
         return department;
 83  
     }
 84  
 
 85  
     public void setDepartment(String department) {
 86  0
         this.department = department;
 87  0
     }
 88  
 
 89  
     @Override
 90  
     public String getCourseNumberSuffix() {
 91  0
         return courseNumberSuffix;
 92  
     }
 93  
 
 94  
     public void setCourseNumberSuffix(String courseNumberSuffix) {
 95  0
         this.courseNumberSuffix = courseNumberSuffix;
 96  0
     }
 97  
 
 98  
 }