Coverage Report - org.kuali.student.r2.lum.course.dto.CourseVariationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CourseVariationInfo
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  
 import java.util.List;
 15  
 
 16  
 import javax.xml.bind.annotation.XmlAccessType;
 17  
 import javax.xml.bind.annotation.XmlAccessorType;
 18  
 import javax.xml.bind.annotation.XmlAnyElement;
 19  
 import javax.xml.bind.annotation.XmlAttribute;
 20  
 import javax.xml.bind.annotation.XmlElement;
 21  
 import javax.xml.bind.annotation.XmlType;
 22  
 
 23  
 import org.kuali.student.r2.common.dto.IdNamelessEntityInfo;
 24  
 import org.kuali.student.r2.lum.course.infc.CourseVariation;
 25  
 import org.w3c.dom.Element;
 26  
 
 27  
 @XmlType(name = "CourseRevenueInfo", propOrder = {"id", "typeKey", "stateKey", "variationTitle", "subjectArea", "courseNumberSuffix", "variationCode", "meta", "attributes", "_futureElements"})
 28  
 @XmlAccessorType(XmlAccessType.FIELD)
 29  
 public class CourseVariationInfo extends IdNamelessEntityInfo implements CourseVariation, Serializable {
 30  
 
 31  
     private static final long serialVersionUID = 1L;
 32  
 
 33  
     @XmlElement
 34  
     private String variationTitle;
 35  
 
 36  
     @XmlElement
 37  
     private String subjectArea;
 38  
 
 39  
     @XmlElement
 40  
     private String courseNumberSuffix;
 41  
 
 42  
     @XmlElement
 43  
     private String variationCode;
 44  
 
 45  
     @XmlAnyElement
 46  
     private List<Element> _futureElements;
 47  
 
 48  0
     public CourseVariationInfo() {
 49  
 
 50  0
     }
 51  
 
 52  
     public CourseVariationInfo(CourseVariation courseVariation) {
 53  0
         super(courseVariation);
 54  
 
 55  0
         if (courseVariation != null) {
 56  0
             this.variationTitle = courseVariation.getVariationTitle();
 57  0
             this.subjectArea = courseVariation.getSubjectArea();
 58  0
             this.courseNumberSuffix = courseVariation.getCourseNumberSuffix();
 59  0
             this.variationCode = courseVariation.getVariationCode();
 60  
 
 61  
         }
 62  0
     }
 63  
 
 64  
     /**
 65  
      * Full name of the variation, commonly used on catalogues
 66  
      */
 67  
     @Override
 68  
     public String getVariationTitle() {
 69  0
         return variationTitle;
 70  
     }
 71  
 
 72  
     public void setVariationTitle(String variationTitle) {
 73  0
         this.variationTitle = variationTitle;
 74  0
     }
 75  
 
 76  
     /**
 77  
      * 
 78  
      */
 79  
     @Override
 80  
     public String getSubjectArea() {
 81  0
         return subjectArea;
 82  
     }
 83  
 
 84  
     public void setSubjectArea(String subjectArea) {
 85  0
         this.subjectArea = subjectArea;
 86  0
     }
 87  
 
 88  
     /**
 89  
      * The "extra" portion of the code, which usually corresponds with the most
 90  
      * detailed part of the number.
 91  
      */
 92  
     @Override
 93  
     public String getCourseNumberSuffix() {
 94  0
         return courseNumberSuffix;
 95  
     }
 96  
 
 97  
     public void setCourseNumberSuffix(String courseNumberSuffix) {
 98  0
         this.courseNumberSuffix = courseNumberSuffix;
 99  0
     }
 100  
 
 101  
     /**
 102  
      * A number that indicates the sequence or order of variation in cases where
 103  
      * several different variations have the same offical Identifier
 104  
      */
 105  
     @Override
 106  
     public String getVariationCode() {
 107  0
         return variationCode;
 108  
     }
 109  
 
 110  
     public void setVariationCode(String variationCode) {
 111  0
         this.variationCode = variationCode;
 112  0
     }
 113  
 
 114  
 }