1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.contract.model.test.source; |
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.contract.model.test.source.ModelBuilder; |
28 |
|
import org.kuali.student.contract.model.test.source.TimeAmount; |
29 |
|
import org.w3c.dom.Element; |
30 |
|
|
31 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
32 |
|
@XmlType(name = "TimeAmountInfo", propOrder = {"atpDurationTypeKey", "timeQuantity", "_futureElements"}) |
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 4 |
Complexity Density: 0.5 |
|
33 |
|
public class TimeAmountInfo implements TimeAmount, Serializable { |
34 |
|
private static final long serialVersionUID = 1L; |
35 |
|
|
36 |
|
@XmlElement |
37 |
|
private final String atpDurationTypeKey; |
38 |
|
|
39 |
|
@XmlElement |
40 |
|
private final Integer timeQuantity; |
41 |
|
|
42 |
|
@XmlAnyElement |
43 |
|
private final List<Element> _futureElements; |
44 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
45 |
0
|
private TimeAmountInfo() {... |
46 |
0
|
atpDurationTypeKey = null; |
47 |
0
|
timeQuantity = null; |
48 |
0
|
_futureElements = null; |
49 |
|
} |
50 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
51 |
0
|
private TimeAmountInfo(TimeAmount builder) {... |
52 |
0
|
this.atpDurationTypeKey = builder.getAtpDurationTypeKey(); |
53 |
0
|
this.timeQuantity = builder.getTimeQuantity(); |
54 |
0
|
this._futureElements = null; |
55 |
|
} |
56 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
0
|
public String getAtpDurationTypeKey(){... |
58 |
0
|
return atpDurationTypeKey; |
59 |
|
} |
60 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
0
|
public Integer getTimeQuantity(){... |
62 |
0
|
return timeQuantity; |
63 |
|
} |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 14 (14) |
Complexity: 7 |
Complexity Density: 1 |
|
65 |
|
public static class Builder implements ModelBuilder<TimeAmountInfo>, TimeAmount { |
66 |
|
private String atpDurationTypeKey; |
67 |
|
private Integer timeQuantity; |
68 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
69 |
0
|
public Builder() {}... |
70 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
71 |
0
|
public Builder(TimeAmount taInfo) {... |
72 |
0
|
this.atpDurationTypeKey = taInfo.getAtpDurationTypeKey(); |
73 |
0
|
this.timeQuantity = taInfo.getTimeQuantity(); |
74 |
|
} |
75 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
76 |
0
|
public TimeAmountInfo build() {... |
77 |
0
|
return new TimeAmountInfo(this); |
78 |
|
} |
79 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
80 |
0
|
public String getAtpDurationTypeKey() {... |
81 |
0
|
return atpDurationTypeKey; |
82 |
|
} |
83 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
84 |
0
|
public void setAtpDurationTypeKey(String atpDurationTypeKey) {... |
85 |
0
|
this.atpDurationTypeKey = atpDurationTypeKey; |
86 |
|
} |
87 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
0
|
public Integer getTimeQuantity() {... |
89 |
0
|
return timeQuantity; |
90 |
|
} |
91 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
92 |
0
|
public void setTimeQuantity(Integer timeQuantity) {... |
93 |
0
|
this.timeQuantity = timeQuantity; |
94 |
|
} |
95 |
|
} |
96 |
|
} |