| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 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 | |
|
| 63 | |
|
| 64 | |
|
| 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 | |
} |