1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.core.atp.dto; |
18 | |
|
19 | |
import java.io.Serializable; |
20 | |
import java.util.List; |
21 | |
import org.w3c.dom.Element; |
22 | |
|
23 | |
import javax.xml.bind.annotation.XmlAccessType; |
24 | |
import javax.xml.bind.annotation.XmlAccessorType; |
25 | |
import javax.xml.bind.annotation.XmlAnyElement; |
26 | |
import javax.xml.bind.annotation.XmlAttribute; |
27 | |
import javax.xml.bind.annotation.XmlElement; |
28 | |
import javax.xml.bind.annotation.XmlType; |
29 | |
|
30 | |
import org.kuali.student.common.infc.ModelBuilder; |
31 | |
import org.kuali.student.common.dto.RelationshipInfo; |
32 | |
import org.kuali.student.core.atp.infc.AtpMilestoneRelation; |
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
@XmlAccessorType(XmlAccessType.FIELD) |
43 | |
@XmlType(name = "AtpMilestoneRelationInfo", propOrder = {"id", "typeKey", "stateKey", "name", "descr", "effectiveDate", "expirationDate", "atpKey", "milestoneKey", "metaInfo", "attributes", "_futureElements"}) |
44 | |
|
45 | |
public class AtpMilestoneRelationInfo extends RelationshipInfo implements AtpMilestoneRelation, Serializable { |
46 | |
|
47 | |
private static final long serialVersionUID = 1L; |
48 | |
|
49 | |
@XmlElement |
50 | |
private final String atpKey; |
51 | |
|
52 | |
@XmlElement |
53 | |
private final String milestoneKey; |
54 | |
|
55 | |
@XmlAnyElement |
56 | |
private final List<Element> _futureElements; |
57 | |
|
58 | 0 | private AtpMilestoneRelationInfo() { |
59 | 0 | atpKey = null; |
60 | 0 | milestoneKey = null; |
61 | 0 | _futureElements = null; |
62 | 0 | } |
63 | |
|
64 | |
|
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
public AtpMilestoneRelationInfo(AtpMilestoneRelation amr) { |
71 | 0 | super(amr); |
72 | 0 | this.atpKey = amr.getAtpKey(); |
73 | 0 | this.milestoneKey = amr.getMilestoneKey(); |
74 | 0 | _futureElements = null; |
75 | 0 | } |
76 | |
|
77 | |
|
78 | |
|
79 | |
|
80 | |
|
81 | |
|
82 | |
|
83 | |
@Override |
84 | |
public String getAtpKey() { |
85 | 0 | return atpKey; |
86 | |
} |
87 | |
|
88 | |
|
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
|
94 | |
@Override |
95 | |
public String getMilestoneKey() { |
96 | 0 | return milestoneKey; |
97 | |
} |
98 | |
|
99 | |
|
100 | |
|
101 | |
|
102 | 0 | public static class Builder extends RelationshipInfo.Builder implements ModelBuilder<AtpMilestoneRelationInfo>, AtpMilestoneRelation { |
103 | |
|
104 | |
private String atpKey; |
105 | |
private String milestoneKey; |
106 | |
|
107 | |
|
108 | |
|
109 | |
|
110 | 0 | public Builder() { |
111 | 0 | } |
112 | |
|
113 | |
|
114 | |
|
115 | |
|
116 | |
|
117 | |
public Builder(AtpMilestoneRelation amrInfo) { |
118 | 0 | super(amrInfo); |
119 | 0 | this.atpKey = amrInfo.getAtpKey(); |
120 | 0 | this.milestoneKey = amrInfo.getMilestoneKey(); |
121 | 0 | } |
122 | |
|
123 | |
|
124 | |
|
125 | |
|
126 | |
|
127 | |
|
128 | |
public AtpMilestoneRelationInfo build() { |
129 | 0 | return new AtpMilestoneRelationInfo(this); |
130 | |
} |
131 | |
|
132 | |
|
133 | |
|
134 | |
|
135 | |
|
136 | |
|
137 | |
@Override |
138 | |
public String getAtpKey() { |
139 | 0 | return atpKey; |
140 | |
} |
141 | |
|
142 | |
|
143 | |
|
144 | |
|
145 | |
|
146 | |
|
147 | |
public void atpKey(String atpKey) { |
148 | 0 | this.atpKey = atpKey; |
149 | 0 | } |
150 | |
|
151 | |
|
152 | |
|
153 | |
|
154 | |
|
155 | |
|
156 | |
@Override |
157 | |
public String getMilestoneKey() { |
158 | 0 | return milestoneKey; |
159 | |
} |
160 | |
|
161 | |
|
162 | |
|
163 | |
|
164 | |
|
165 | |
|
166 | |
|
167 | |
public void setMilestoneKey(String milestoneKey) { |
168 | 0 | this.milestoneKey = milestoneKey; |
169 | 0 | } |
170 | |
} |
171 | |
} |