| 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.XmlAnyAttribute; |
| 7 | |
import javax.xml.bind.annotation.XmlAnyElement; |
| 8 | |
import javax.xml.bind.annotation.XmlAttribute; |
| 9 | |
import javax.xml.bind.annotation.XmlElement; |
| 10 | |
import javax.xml.bind.annotation.XmlType; |
| 11 | |
|
| 12 | |
import org.kuali.student.r2.common.dto.KeyEntityInfo; |
| 13 | |
import org.kuali.student.r2.common.dto.MetaInfo; |
| 14 | |
import org.kuali.student.r2.common.infc.RichText; |
| 15 | |
import org.w3c.dom.Element; |
| 16 | |
import org.kuali.student.r2.lum.classI.lrc.ResultValue; |
| 17 | |
|
| 18 | |
@XmlType(name = "ResultValueInfo", propOrder = { "key", "typeKey", "stateKey", |
| 19 | |
"name", "descr", "effectiveDate", "expirationDate", "value", "rank", |
| 20 | |
"metaInfo", "attributes", "_futureElements" }) |
| 21 | |
public class ResultValueInfo extends KeyEntityInfo implements ResultValue { |
| 22 | |
|
| 23 | |
private static final long serialVersionUID = 1L; |
| 24 | |
|
| 25 | |
@XmlAttribute |
| 26 | |
private String value; |
| 27 | |
|
| 28 | |
@XmlAttribute |
| 29 | |
private String rank; |
| 30 | |
|
| 31 | |
@XmlElement |
| 32 | |
private Date effectiveDate; |
| 33 | |
|
| 34 | |
@XmlElement |
| 35 | |
private Date expirationDate; |
| 36 | |
|
| 37 | |
@XmlAnyElement |
| 38 | |
private List<Element> _futureElements; |
| 39 | |
|
| 40 | |
@XmlAttribute |
| 41 | |
private String id; |
| 42 | |
|
| 43 | 0 | public ResultValueInfo() { |
| 44 | |
|
| 45 | 0 | } |
| 46 | |
|
| 47 | |
public ResultValueInfo(String name, String value, String rank, |
| 48 | |
String typeKey, String stateKey, MetaInfo metaInfo, RichText descr, |
| 49 | |
Date effectiveDate, Date expirationDate, |
| 50 | |
List<Element> futureElements, String id) { |
| 51 | |
|
| 52 | 0 | super(); |
| 53 | 0 | this.value = value; |
| 54 | 0 | this.rank = rank; |
| 55 | 0 | this.effectiveDate = effectiveDate; |
| 56 | 0 | this.expirationDate = expirationDate; |
| 57 | 0 | this._futureElements = futureElements; |
| 58 | 0 | this.id = id; |
| 59 | 0 | } |
| 60 | |
|
| 61 | |
public static ResultValueInfo createNewResultValueInfoFromResultValueInfo( |
| 62 | |
ResultValueInfo resultValueInfo) { |
| 63 | 0 | return new ResultValueInfo(resultValueInfo.getName(), |
| 64 | |
resultValueInfo.getValue(), resultValueInfo.getRank(), |
| 65 | |
resultValueInfo.getTypeKey(), resultValueInfo.getStateKey(), |
| 66 | |
resultValueInfo.getMetaInfo(), resultValueInfo.getDescr(), |
| 67 | |
resultValueInfo.getEffectiveDate(), |
| 68 | |
resultValueInfo.getEffectiveDate(), |
| 69 | |
resultValueInfo.get_futureElements(), resultValueInfo.getId()); |
| 70 | |
} |
| 71 | |
|
| 72 | |
|
| 73 | |
@Override |
| 74 | |
public String getValue() { |
| 75 | 0 | return value; |
| 76 | |
} |
| 77 | |
@Override |
| 78 | |
public String getRank() { |
| 79 | 0 | return rank; |
| 80 | |
} |
| 81 | |
@Override |
| 82 | |
public Date getEffectiveDate() { |
| 83 | 0 | return effectiveDate; |
| 84 | |
} |
| 85 | |
@Override |
| 86 | |
public Date getExpirationDate() { |
| 87 | 0 | return expirationDate; |
| 88 | |
} |
| 89 | |
|
| 90 | |
@Override |
| 91 | |
public String getId() { |
| 92 | 0 | return id; |
| 93 | |
} |
| 94 | |
|
| 95 | |
@Override |
| 96 | |
public List<Element> get_futureElements() { |
| 97 | |
|
| 98 | 0 | return _futureElements; |
| 99 | |
} |
| 100 | |
|
| 101 | |
} |