Coverage Report - org.kuali.student.enrollment.academicrecord.dto.GPAInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
GPAInfo
0%
0/21
N/A
1
 
 1  
 /*
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.enrollment.academicrecord.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.List;
 20  
 
 21  
 import javax.xml.bind.annotation.XmlAccessType;
 22  
 import javax.xml.bind.annotation.XmlAccessorType;
 23  
 import javax.xml.bind.annotation.XmlAnyElement;
 24  
 import javax.xml.bind.annotation.XmlElement;
 25  
 import javax.xml.bind.annotation.XmlType;
 26  
 
 27  
 import org.kuali.student.enrollment.academicrecord.infc.GPA;
 28  
 import org.kuali.student.r2.common.dto.HasAttributesAndMetaInfo;
 29  
 import org.w3c.dom.Element;
 30  
 
 31  
 @XmlAccessorType(XmlAccessType.FIELD)
 32  
 @XmlType(name = "GPAInfo", propOrder = {
 33  
         "value", "calculationTypeKey", "scaleKey", 
 34  
         "meta", "attributes", "_futureElements"})
 35  
 
 36  
 public class GPAInfo 
 37  
     extends HasAttributesAndMetaInfo 
 38  
     implements GPA, Serializable {
 39  
 
 40  
     private static final long serialVersionUID = 1L;
 41  
 
 42  
     @XmlElement
 43  
     private String value;
 44  
 
 45  
     @XmlElement
 46  
     private String calculationTypeKey;
 47  
 
 48  
     @XmlElement
 49  
     private String scaleKey;
 50  
 
 51  
     @XmlAnyElement    
 52  
     List<Element> _futureElements;
 53  
 
 54  0
     public GPAInfo() {
 55  0
         value = null;
 56  0
         calculationTypeKey = null;
 57  0
         scaleKey = null;
 58  0
         _futureElements = null;
 59  0
     }
 60  
 
 61  
     /**
 62  
      * Constructs a new GPAInfo from another GPA.
 63  
      *
 64  
      * @param gpa the GPA to copy
 65  
      */
 66  
     public GPAInfo(GPA gpa) {
 67  0
         super(gpa);
 68  0
         this.value = gpa.getValue();
 69  0
         this.calculationTypeKey = gpa.getCalculationTypeKey();
 70  0
         this.scaleKey = gpa.getScaleKey();
 71  0
         _futureElements = null;
 72  0
     }
 73  
 
 74  
     @Override
 75  
     public String getValue() {
 76  0
         return value;
 77  
     }
 78  
 
 79  
     public void setValue(String value) {
 80  0
         this.value = value;
 81  0
     }
 82  
 
 83  
     @Override
 84  
     public String getCalculationTypeKey() {
 85  0
         return calculationTypeKey;
 86  
     }
 87  
 
 88  
     public void setCalculationTypeKey(String calculationTypeKey) {
 89  0
         this.calculationTypeKey = calculationTypeKey;
 90  0
     }
 91  
 
 92  
     @Override
 93  
     public String getScaleKey() {
 94  0
         return scaleKey;
 95  
     }
 96  
 
 97  
     public void setScaleKey(String scaleKey) {
 98  0
         this.scaleKey = scaleKey;
 99  0
     }
 100  
 }