1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
package org.kuali.student.contract.model.test.source; |
13 |
|
|
14 |
|
import java.io.Serializable; |
15 |
|
import java.util.Date; |
16 |
|
|
17 |
|
import javax.xml.bind.annotation.XmlAccessType; |
18 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
19 |
|
import javax.xml.bind.annotation.XmlAttribute; |
20 |
|
import javax.xml.bind.annotation.XmlElement; |
21 |
|
import javax.xml.bind.annotation.XmlTransient; |
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
28 |
|
@XmlTransient |
|
|
| 0% |
Uncovered Elements: 27 (27) |
Complexity: 9 |
Complexity Density: 0.56 |
|
29 |
|
public abstract class RelationshipInfo extends HasAttributesAndMetaInfo implements Relationship, Serializable { |
30 |
|
|
31 |
|
@XmlAttribute |
32 |
|
private String id; |
33 |
|
@XmlAttribute (required = true) |
34 |
|
private String typeKey; |
35 |
|
@XmlAttribute (required = true) |
36 |
|
private String stateKey; |
37 |
|
@XmlElement |
38 |
|
private final Date effectiveDate; |
39 |
|
@XmlElement |
40 |
|
private final Date expirationDate; |
41 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
42 |
0
|
protected RelationshipInfo() {... |
43 |
0
|
id = null; |
44 |
0
|
typeKey = null; |
45 |
0
|
stateKey = null; |
46 |
0
|
effectiveDate = null; |
47 |
0
|
expirationDate = null; |
48 |
|
} |
49 |
|
|
|
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 3 |
Complexity Density: 0.5 |
|
50 |
0
|
protected RelationshipInfo(Relationship builder) {... |
51 |
0
|
super(builder); |
52 |
0
|
this.id = builder.getId(); |
53 |
0
|
this.typeKey = builder.getTypeKey(); |
54 |
0
|
this.stateKey = builder.getStateKey(); |
55 |
0
|
this.effectiveDate = null != builder.getEffectiveDate() ? new Date(builder.getEffectiveDate().getTime()) : null; |
56 |
0
|
this.expirationDate = null != builder.getExpirationDate() ? new Date(builder.getExpirationDate().getTime()) : null; |
57 |
|
} |
58 |
|
|
59 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
60 |
0
|
@Override... |
61 |
|
public String getId() { |
62 |
0
|
return id; |
63 |
|
} |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
0
|
@Override... |
66 |
|
public String getTypeKey() { |
67 |
0
|
return typeKey; |
68 |
|
} |
69 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
70 |
0
|
@Override... |
71 |
|
public String getStateKey() { |
72 |
0
|
return stateKey; |
73 |
|
} |
74 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
0
|
@Override... |
76 |
|
public Date getEffectiveDate() { |
77 |
0
|
return effectiveDate; |
78 |
|
} |
79 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
80 |
0
|
@Override... |
81 |
|
public Date getExpirationDate() { |
82 |
0
|
return expirationDate; |
83 |
|
} |
84 |
|
|
|
|
| 0% |
Uncovered Elements: 28 (28) |
Complexity: 12 |
Complexity Density: 0.75 |
|
85 |
|
public static class Builder extends HasAttributesAndMetaInfo.Builder implements Relationship { |
86 |
|
|
87 |
|
private String id; |
88 |
|
private String typeKey; |
89 |
|
private String stateKey; |
90 |
|
private Date effectiveDate; |
91 |
|
private Date expirationDate; |
92 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
93 |
0
|
public Builder() {... |
94 |
|
} |
95 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
96 |
0
|
public Builder(Relationship amrInfo) {... |
97 |
0
|
super(amrInfo); |
98 |
0
|
this.id = amrInfo.getId(); |
99 |
0
|
this.typeKey = amrInfo.getTypeKey(); |
100 |
0
|
this.stateKey = amrInfo.getStateKey(); |
101 |
0
|
this.effectiveDate = amrInfo.getEffectiveDate(); |
102 |
0
|
this.expirationDate = amrInfo.getExpirationDate(); |
103 |
|
} |
104 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
105 |
0
|
@Override... |
106 |
|
public String getId() { |
107 |
0
|
return id; |
108 |
|
} |
109 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
110 |
0
|
public void setId(String id) {... |
111 |
0
|
this.id = id; |
112 |
|
} |
113 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
114 |
0
|
@Override... |
115 |
|
public String getTypeKey() { |
116 |
0
|
return typeKey; |
117 |
|
} |
118 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
119 |
0
|
public void setTypeKey(String typeKey) {... |
120 |
0
|
this.typeKey = typeKey; |
121 |
|
} |
122 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
123 |
0
|
@Override... |
124 |
|
public String getStateKey() { |
125 |
0
|
return stateKey; |
126 |
|
} |
127 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
128 |
0
|
public void setStateKey(String stateKey) {... |
129 |
0
|
this.stateKey = stateKey; |
130 |
|
} |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
131 |
0
|
@Override... |
132 |
|
public Date getEffectiveDate() { |
133 |
0
|
return effectiveDate; |
134 |
|
} |
135 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
136 |
0
|
public void setEffectiveDate(Date effectiveDate) {... |
137 |
0
|
this.effectiveDate = effectiveDate; |
138 |
|
} |
139 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
140 |
0
|
@Override... |
141 |
|
public Date getExpirationDate() { |
142 |
0
|
return expirationDate; |
143 |
|
} |
144 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
145 |
0
|
public void setExpirationDate(Date expirationDate) {... |
146 |
0
|
this.expirationDate = expirationDate; |
147 |
|
} |
148 |
|
} |
149 |
|
} |