1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.core.classI.atp.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.List; |
20 | |
import org.w3c.dom.Element; |
21 | |
|
22 | |
import javax.xml.bind.annotation.XmlAccessType; |
23 | |
import javax.xml.bind.annotation.XmlAccessorType; |
24 | |
import javax.xml.bind.annotation.XmlAnyElement; |
25 | |
|
26 | |
import javax.xml.bind.annotation.XmlElement; |
27 | |
import javax.xml.bind.annotation.XmlType; |
28 | |
|
29 | |
import org.kuali.student.r2.common.dto.RelationshipInfo; |
30 | |
import org.kuali.student.r2.common.infc.ModelBuilder; |
31 | |
import org.kuali.student.r2.core.classI.atp.infc.AtpAtpRelation; |
32 | |
|
33 | |
@XmlAccessorType(XmlAccessType.FIELD) |
34 | |
@XmlType(name = "AtpAtpRelationInfo", propOrder = {"id", "typeKey", "stateKey", "atpKey", "relatedAtpKey", "effectiveDate", "expirationDate", "metaInfo", "attributes", "_futureElements"}) |
35 | |
public class AtpAtpRelationInfo extends RelationshipInfo implements AtpAtpRelation, Serializable { |
36 | |
|
37 | |
private static final long serialVersionUID = 1L; |
38 | |
@XmlElement |
39 | |
private final String atpKey; |
40 | |
@XmlElement |
41 | |
private final String relatedAtpKey; |
42 | |
@XmlAnyElement |
43 | |
private final List<Element> _futureElements; |
44 | |
|
45 | 0 | private AtpAtpRelationInfo() { |
46 | 0 | atpKey = null; |
47 | 0 | relatedAtpKey = null; |
48 | 0 | _futureElements = null; |
49 | 0 | } |
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
public AtpAtpRelationInfo(AtpAtpRelation atpr) { |
58 | 0 | super(atpr); |
59 | 0 | this.atpKey = atpr.getAtpKey(); |
60 | 0 | this.relatedAtpKey = atpr.getRelatedAtpKey(); |
61 | 0 | _futureElements = null; |
62 | 0 | } |
63 | |
|
64 | |
@Override |
65 | |
public String getAtpKey() { |
66 | 0 | return atpKey; |
67 | |
} |
68 | |
|
69 | |
@Override |
70 | |
public String getRelatedAtpKey() { |
71 | 0 | return relatedAtpKey; |
72 | |
} |
73 | |
|
74 | |
|
75 | |
|
76 | |
|
77 | 0 | public static class Builder extends RelationshipInfo.Builder implements ModelBuilder<AtpAtpRelationInfo>, AtpAtpRelation { |
78 | |
|
79 | |
private String atpKey; |
80 | |
private String relatedAtpKey; |
81 | |
|
82 | |
|
83 | |
|
84 | |
|
85 | 0 | public Builder() { |
86 | 0 | } |
87 | |
|
88 | |
|
89 | |
|
90 | |
|
91 | |
|
92 | |
public Builder(AtpAtpRelation atprInfo) { |
93 | 0 | super(atprInfo); |
94 | 0 | this.atpKey = atprInfo.getAtpKey(); |
95 | 0 | this.relatedAtpKey = atprInfo.getRelatedAtpKey(); |
96 | 0 | } |
97 | |
|
98 | |
@Override |
99 | |
public AtpAtpRelationInfo build() { |
100 | 0 | return new AtpAtpRelationInfo(this); |
101 | |
} |
102 | |
|
103 | |
|
104 | |
@Override |
105 | |
public String getAtpKey() { |
106 | 0 | return atpKey; |
107 | |
} |
108 | |
|
109 | |
|
110 | |
public void setAtpKey(String atpKey) { |
111 | 0 | this.atpKey = atpKey; |
112 | 0 | } |
113 | |
|
114 | |
|
115 | |
@Override |
116 | |
public String getRelatedAtpKey() { |
117 | 0 | return relatedAtpKey; |
118 | |
} |
119 | |
|
120 | |
|
121 | |
public void setRelatedAtpKey(String relatedAtpKey) { |
122 | 0 | this.relatedAtpKey = relatedAtpKey; |
123 | 0 | } |
124 | |
} |
125 | |
} |