1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.lum.clu.dto; |
17 | |
|
18 | |
import org.kuali.student.r2.common.dto.RelationshipInfo; |
19 | |
import org.kuali.student.r2.lum.clu.infc.CluLoRelation; |
20 | |
|
21 | |
import javax.xml.bind.Element; |
22 | |
import javax.xml.bind.annotation.XmlAccessType; |
23 | |
import javax.xml.bind.annotation.XmlAccessorType; |
24 | |
import javax.xml.bind.annotation.XmlAnyElement; |
25 | |
import javax.xml.bind.annotation.XmlElement; |
26 | |
import javax.xml.bind.annotation.XmlType; |
27 | |
import java.io.Serializable; |
28 | |
import java.util.List; |
29 | |
|
30 | |
@XmlAccessorType(XmlAccessType.FIELD) |
31 | |
@XmlType(name = "CluLoRelationInfo", propOrder = {"id", "typeKey", |
32 | |
"stateKey", "cluId", "loId", "effectiveDate", |
33 | |
"expirationDate", "meta", "attributes", "_futureElements"}) |
34 | |
public class CluLoRelationInfo extends RelationshipInfo implements CluLoRelation, Serializable { |
35 | |
|
36 | |
private static final long serialVersionUID = 1L; |
37 | |
|
38 | |
@XmlElement |
39 | |
private String cluId; |
40 | |
|
41 | |
@XmlElement |
42 | |
private String loId; |
43 | |
|
44 | |
@XmlAnyElement |
45 | |
private List<Element> _futureElements; |
46 | |
|
47 | 0 | public CluLoRelationInfo() { |
48 | |
|
49 | 0 | } |
50 | |
|
51 | |
public CluLoRelationInfo(CluLoRelation cluLoRelation) { |
52 | 0 | super(cluLoRelation); |
53 | 0 | if (null != cluLoRelation) { |
54 | 0 | this.cluId = cluLoRelation.getCluId(); |
55 | 0 | this.loId = cluLoRelation.getLoId(); |
56 | |
} |
57 | 0 | } |
58 | |
|
59 | |
@Override |
60 | |
public String getCluId() { |
61 | 0 | return cluId; |
62 | |
} |
63 | |
|
64 | |
public void setCluId(String cluId) { |
65 | 0 | this.cluId = cluId; |
66 | 0 | } |
67 | |
|
68 | |
@Override |
69 | |
public String getLoId() { |
70 | 0 | return loId; |
71 | |
} |
72 | |
|
73 | |
public void setLoId(String loId) { |
74 | 0 | this.loId = loId; |
75 | 0 | } |
76 | |
|
77 | |
@Override |
78 | |
public String toString() { |
79 | 0 | return "CLuLoRelationInfo[id=" + this.getId() + ", cluId=" + this.getCluId() + ", loId=" + this.getLoId() + "]"; |
80 | |
} |
81 | |
|
82 | |
} |