| 1 | |
package org.kuali.student.r2.lum.classI.lrc.dto; |
| 2 | |
|
| 3 | |
import java.util.Date; |
| 4 | |
import java.util.List; |
| 5 | |
|
| 6 | |
import javax.xml.bind.annotation.XmlAttribute; |
| 7 | |
import javax.xml.bind.annotation.XmlElement; |
| 8 | |
import javax.xml.bind.annotation.XmlType; |
| 9 | |
|
| 10 | |
import org.kuali.student.r2.common.dto.KeyEntityInfo; |
| 11 | |
import org.kuali.student.r2.common.infc.Attribute; |
| 12 | |
import org.kuali.student.r2.common.infc.Meta; |
| 13 | |
import org.kuali.student.r2.common.infc.RichText; |
| 14 | |
import org.kuali.student.r2.lum.classI.lrc.ResultValueRange; |
| 15 | |
|
| 16 | |
@XmlType(name = "ResultValueInfo", propOrder = { "key", "typeKey", "stateKey", |
| 17 | |
"resultTypeKey", "minValue", "maxValue", "increment", "scaleKey", |
| 18 | |
"rank", "metaInfo", "effectiveDate", "expirationDate", "attributes" }) |
| 19 | |
public class ResultValueRangeInfo extends KeyEntityInfo implements |
| 20 | |
ResultValueRange { |
| 21 | |
|
| 22 | |
private static final long serialVersionUID = 1L; |
| 23 | |
|
| 24 | |
@XmlAttribute |
| 25 | |
private String resultTypeKey; |
| 26 | |
@XmlAttribute |
| 27 | |
private String id; |
| 28 | |
@XmlAttribute |
| 29 | |
private String minValue; |
| 30 | |
@XmlAttribute |
| 31 | |
private String maxValue; |
| 32 | |
@XmlAttribute |
| 33 | |
private float increment; |
| 34 | |
@XmlAttribute |
| 35 | |
private String scaleKey; |
| 36 | |
@XmlAttribute |
| 37 | |
private String rank; |
| 38 | |
@XmlElement |
| 39 | |
private Date effectiveDate; |
| 40 | |
@XmlElement |
| 41 | |
private Date expirationDate; |
| 42 | |
|
| 43 | 0 | public ResultValueRangeInfo() { |
| 44 | 0 | } |
| 45 | |
|
| 46 | |
public ResultValueRangeInfo(String key, String name, RichText descr, String typeKey, String stateKey, |
| 47 | |
String resultTypeKey, String id, |
| 48 | |
String minValue, String maxValue, float increment, String scaleKey, |
| 49 | |
String rank, Date effectiveDate, Date expirationDate, Meta meta, List<? extends Attribute> attributes) { |
| 50 | 0 | super(); |
| 51 | 0 | this.resultTypeKey = resultTypeKey; |
| 52 | 0 | this.id = id; |
| 53 | 0 | this.minValue = minValue; |
| 54 | 0 | this.maxValue = maxValue; |
| 55 | 0 | this.increment = increment; |
| 56 | 0 | this.scaleKey = scaleKey; |
| 57 | 0 | this.rank = rank; |
| 58 | 0 | this.effectiveDate = effectiveDate; |
| 59 | 0 | this.expirationDate = expirationDate; |
| 60 | 0 | } |
| 61 | |
|
| 62 | |
public ResultValueRangeInfo createNewResultValueRangeInfoFromResultValueRangeInfo( |
| 63 | |
ResultValueRangeInfo resultValueRangeInfo) { |
| 64 | 0 | return new ResultValueRangeInfo(resultValueRangeInfo.getKey(), |
| 65 | |
resultValueRangeInfo.getName(),resultValueRangeInfo.getDescr(), |
| 66 | |
resultValueRangeInfo.getTypeKey(),resultValueRangeInfo.getStateKey(), |
| 67 | |
resultValueRangeInfo.getResultTypeKey(), |
| 68 | |
resultValueRangeInfo.getId(), |
| 69 | |
resultValueRangeInfo.getMinValue(), |
| 70 | |
resultValueRangeInfo.getMaxValue(), |
| 71 | |
resultValueRangeInfo.getIncrement(), |
| 72 | |
resultValueRangeInfo.getScaleKey(), |
| 73 | |
resultValueRangeInfo.getRank(), |
| 74 | |
resultValueRangeInfo.getEffectiveDate(), |
| 75 | |
resultValueRangeInfo.getExpirationDate(), |
| 76 | |
resultValueRangeInfo.getMetaInfo(), |
| 77 | |
resultValueRangeInfo.getAttributes()); |
| 78 | |
} |
| 79 | |
|
| 80 | |
|
| 81 | |
|
| 82 | |
@Override |
| 83 | |
public String getMinValue() { |
| 84 | 0 | return minValue; |
| 85 | |
} |
| 86 | |
|
| 87 | |
public void setMinValue(String minValue) { |
| 88 | 0 | this.minValue = minValue; |
| 89 | 0 | } |
| 90 | |
|
| 91 | |
@Override |
| 92 | |
public String getMaxValue() { |
| 93 | 0 | return maxValue; |
| 94 | |
} |
| 95 | |
|
| 96 | |
public void setMaxValue(String maxValue) { |
| 97 | 0 | this.maxValue = maxValue; |
| 98 | 0 | } |
| 99 | |
|
| 100 | |
@Override |
| 101 | |
public float getIncrement() { |
| 102 | 0 | return increment; |
| 103 | |
} |
| 104 | |
|
| 105 | |
public void setIncrement(float increment) { |
| 106 | 0 | this.increment = increment; |
| 107 | 0 | } |
| 108 | |
|
| 109 | |
@Override |
| 110 | |
public String getScaleKey() { |
| 111 | 0 | return scaleKey; |
| 112 | |
} |
| 113 | |
|
| 114 | |
public void setScaleKey(String scaleKey) { |
| 115 | 0 | this.scaleKey = scaleKey; |
| 116 | 0 | } |
| 117 | |
|
| 118 | |
@Override |
| 119 | |
public String getRank() { |
| 120 | 0 | return rank; |
| 121 | |
} |
| 122 | |
|
| 123 | |
public void setRank(String rank) { |
| 124 | 0 | this.rank = rank; |
| 125 | 0 | } |
| 126 | |
|
| 127 | |
@Override |
| 128 | |
public Date getEffectiveDate() { |
| 129 | 0 | return effectiveDate; |
| 130 | |
} |
| 131 | |
|
| 132 | |
public void setEffectiveDate(Date effectiveDate) { |
| 133 | 0 | this.effectiveDate = effectiveDate; |
| 134 | 0 | } |
| 135 | |
|
| 136 | |
@Override |
| 137 | |
public Date getExpirationDate() { |
| 138 | 0 | return expirationDate; |
| 139 | |
} |
| 140 | |
|
| 141 | |
public void setExpirationDate(Date expirationDate) { |
| 142 | 0 | this.expirationDate = expirationDate; |
| 143 | 0 | } |
| 144 | |
|
| 145 | |
public void setType(String type) { |
| 146 | 0 | this.resultTypeKey = type; |
| 147 | 0 | } |
| 148 | |
|
| 149 | |
@Override |
| 150 | |
public String getId() { |
| 151 | 0 | return id; |
| 152 | |
} |
| 153 | |
|
| 154 | |
public void setId(String id) { |
| 155 | 0 | this.id = id; |
| 156 | 0 | } |
| 157 | |
|
| 158 | |
@Override |
| 159 | |
public String getResultTypeKey() { |
| 160 | 0 | return resultTypeKey; |
| 161 | |
} |
| 162 | |
|
| 163 | |
} |