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 | |
import javax.xml.bind.annotation.XmlAttribute; |
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.AtpMilestoneRelation; |
32 | |
|
33 | |
@XmlAccessorType(XmlAccessType.FIELD) |
34 | |
@XmlType(name = "AtpMilestoneRelationInfo", propOrder = {"id", "typeKey", "stateKey", "atpKey", "milestoneKey", "effectiveDate", "expirationDate", "metaInfo", "attributes", "_futureElements"}) |
35 | |
public class AtpMilestoneRelationInfo extends RelationshipInfo implements AtpMilestoneRelation, Serializable { |
36 | |
|
37 | |
private static final long serialVersionUID = 1L; |
38 | |
@XmlElement |
39 | |
private final String atpKey; |
40 | |
@XmlElement |
41 | |
private final String milestoneKey; |
42 | |
@XmlAnyElement |
43 | |
private final List<Element> _futureElements; |
44 | |
|
45 | 0 | private AtpMilestoneRelationInfo() { |
46 | 0 | atpKey = null; |
47 | 0 | milestoneKey = null; |
48 | 0 | _futureElements = null; |
49 | 0 | } |
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
public AtpMilestoneRelationInfo(AtpMilestoneRelation amr) { |
58 | 0 | super(amr); |
59 | 0 | this.atpKey = amr.getAtpKey(); |
60 | 0 | this.milestoneKey = amr.getMilestoneKey(); |
61 | 0 | _futureElements = null; |
62 | 0 | } |
63 | |
|
64 | |
@Override |
65 | |
public String getAtpKey() { |
66 | 0 | return atpKey; |
67 | |
} |
68 | |
|
69 | |
@Override |
70 | |
public String getMilestoneKey() { |
71 | 0 | return milestoneKey; |
72 | |
} |
73 | |
|
74 | |
|
75 | |
|
76 | |
|
77 | 0 | public static class Builder extends RelationshipInfo.Builder implements ModelBuilder<AtpMilestoneRelationInfo>, AtpMilestoneRelation { |
78 | |
|
79 | |
private String atpKey; |
80 | |
private String milestoneKey; |
81 | |
|
82 | |
|
83 | |
|
84 | |
|
85 | 0 | public Builder() { |
86 | 0 | } |
87 | |
|
88 | |
|
89 | |
|
90 | |
|
91 | |
|
92 | |
public Builder(AtpMilestoneRelation amrInfo) { |
93 | 0 | super(amrInfo); |
94 | 0 | this.atpKey = amrInfo.getAtpKey(); |
95 | 0 | this.milestoneKey = amrInfo.getMilestoneKey(); |
96 | 0 | } |
97 | |
|
98 | |
@Override |
99 | |
public AtpMilestoneRelationInfo build() { |
100 | 0 | return new AtpMilestoneRelationInfo(this); |
101 | |
} |
102 | |
|
103 | |
@Override |
104 | |
public String getAtpKey() { |
105 | 0 | return atpKey; |
106 | |
} |
107 | |
|
108 | |
public void setAtpKey(String atpKey) { |
109 | 0 | this.atpKey = atpKey; |
110 | 0 | } |
111 | |
|
112 | |
@Override |
113 | |
public String getMilestoneKey() { |
114 | 0 | return milestoneKey; |
115 | |
} |
116 | |
|
117 | |
public void setMilestoneKey(String milestoneKey) { |
118 | 0 | this.milestoneKey = milestoneKey; |
119 | 0 | } |
120 | |
} |
121 | |
} |