1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.core.atp.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.r2.core.atp.infc.AtpAtpRelation; |
28 | |
import org.kuali.student.r2.common.dto.RelationshipInfo; |
29 | |
import org.w3c.dom.Element; |
30 | |
|
31 | |
@XmlAccessorType(XmlAccessType.FIELD) |
32 | |
@XmlType(name = "AtpAtpRelationInfo", propOrder = { |
33 | |
"id", "typeKey", "stateKey", |
34 | |
"atpId", "relatedAtpId", |
35 | |
"effectiveDate", "expirationDate", |
36 | |
"meta", "attributes", "_futureElements" }) |
37 | |
|
38 | |
public class AtpAtpRelationInfo |
39 | |
extends RelationshipInfo |
40 | |
implements AtpAtpRelation, Serializable { |
41 | |
|
42 | |
private static final long serialVersionUID = 1L; |
43 | |
|
44 | |
@XmlElement |
45 | |
private String atpId; |
46 | |
|
47 | |
@XmlElement |
48 | |
private String relatedAtpId; |
49 | |
|
50 | |
@XmlAnyElement |
51 | |
private List<Element> _futureElements; |
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | 0 | public AtpAtpRelationInfo() { |
58 | 0 | } |
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
|
65 | |
|
66 | |
public AtpAtpRelationInfo(AtpAtpRelation atpr) { |
67 | 0 | super(atpr); |
68 | |
|
69 | 0 | if (atpr != null) { |
70 | 0 | this.atpId = atpr.getAtpId(); |
71 | 0 | this.relatedAtpId = atpr.getRelatedAtpId(); |
72 | |
} |
73 | 0 | } |
74 | |
|
75 | |
@Override |
76 | |
public String getAtpId() { |
77 | 0 | return atpId; |
78 | |
} |
79 | |
|
80 | |
public void setAtpId(String atpId) { |
81 | 0 | this.atpId = atpId; |
82 | 0 | } |
83 | |
|
84 | |
@Override |
85 | |
public String getRelatedAtpId() { |
86 | 0 | return relatedAtpId; |
87 | |
} |
88 | |
|
89 | |
public void setRelatedAtpId(String relatedAtpId) { |
90 | 0 | this.relatedAtpId = relatedAtpId; |
91 | 0 | } |
92 | |
} |