1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.lum.course.dto; |
17 |
|
|
18 |
|
import java.io.Serializable; |
19 |
|
import java.util.ArrayList; |
20 |
|
import java.util.HashMap; |
21 |
|
import java.util.List; |
22 |
|
import java.util.Map; |
23 |
|
|
24 |
|
import javax.xml.bind.annotation.XmlAccessType; |
25 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
26 |
|
import javax.xml.bind.annotation.XmlAttribute; |
27 |
|
import javax.xml.bind.annotation.XmlElement; |
28 |
|
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
29 |
|
|
30 |
|
import org.kuali.student.core.dto.AmountInfo; |
31 |
|
import org.kuali.student.core.dto.HasAttributes; |
32 |
|
import org.kuali.student.core.dto.Idable; |
33 |
|
import org.kuali.student.core.dto.MetaInfo; |
34 |
|
import org.kuali.student.core.dto.TimeAmountInfo; |
35 |
|
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
|
|
| 95.5% |
Uncovered Elements: 2 (44) |
Complexity: 20 |
Complexity Density: 0.91 |
|
47 |
|
public class ActivityInfo implements Serializable, Idable, HasAttributes { |
48 |
|
|
49 |
|
private static final long serialVersionUID = 1L; |
50 |
|
|
51 |
|
@XmlElement |
52 |
|
private TimeAmountInfo duration; |
53 |
|
|
54 |
|
@XmlElement |
55 |
|
private List<String> unitsContentOwner; |
56 |
|
|
57 |
|
@XmlElement |
58 |
|
private int defaultEnrollmentEstimate; |
59 |
|
|
60 |
|
@XmlElement |
61 |
|
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
62 |
|
private Map<String, String> attributes; |
63 |
|
|
64 |
|
@XmlElement |
65 |
|
private MetaInfo metaInfo; |
66 |
|
|
67 |
|
@XmlAttribute |
68 |
|
private String activityType; |
69 |
|
|
70 |
|
@XmlAttribute |
71 |
|
private String state; |
72 |
|
|
73 |
|
@XmlAttribute |
74 |
|
private String id; |
75 |
|
|
76 |
|
@XmlElement |
77 |
|
private AmountInfo contactHours; |
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
82 |
118
|
public TimeAmountInfo getDuration() {... |
83 |
118
|
return duration; |
84 |
|
} |
85 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
86 |
198
|
public void setDuration(TimeAmountInfo duration) {... |
87 |
198
|
this.duration = duration; |
88 |
|
} |
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
|
|
|
| 60% |
Uncovered Elements: 2 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
93 |
24
|
public List<String> getUnitsContentOwner() {... |
94 |
24
|
if (unitsContentOwner == null) { |
95 |
0
|
unitsContentOwner = new ArrayList<String>(0); |
96 |
|
} |
97 |
24
|
return unitsContentOwner; |
98 |
|
} |
99 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
60
|
public void setUnitsContentOwner(List<String> unitsContentOwner) {... |
101 |
60
|
this.unitsContentOwner = unitsContentOwner; |
102 |
|
} |
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
107 |
118
|
public int getDefaultEnrollmentEstimate() {... |
108 |
118
|
return defaultEnrollmentEstimate; |
109 |
|
} |
110 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
111 |
198
|
public void setDefaultEnrollmentEstimate(int defaultEnrollmentEstimate) {... |
112 |
198
|
this.defaultEnrollmentEstimate = defaultEnrollmentEstimate; |
113 |
|
} |
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
118 |
119
|
public Map<String, String> getAttributes() {... |
119 |
119
|
if (attributes == null) { |
120 |
2
|
attributes = new HashMap<String, String>(); |
121 |
|
} |
122 |
119
|
return attributes; |
123 |
|
} |
124 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
125 |
199
|
public void setAttributes(Map<String, String> attributes) {... |
126 |
199
|
this.attributes = attributes; |
127 |
|
} |
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
132 |
118
|
public MetaInfo getMetaInfo() {... |
133 |
118
|
return metaInfo; |
134 |
|
} |
135 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
136 |
138
|
public void setMetaInfo(MetaInfo metaInfo) {... |
137 |
138
|
this.metaInfo = metaInfo; |
138 |
|
} |
139 |
|
|
140 |
|
|
141 |
|
|
142 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
143 |
120
|
public String getActivityType() {... |
144 |
120
|
return activityType; |
145 |
|
} |
146 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
147 |
201
|
public void setActivityType(String activityType) {... |
148 |
201
|
this.activityType = activityType; |
149 |
|
} |
150 |
|
|
151 |
|
|
152 |
|
|
153 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
154 |
118
|
public String getState() {... |
155 |
118
|
return state; |
156 |
|
} |
157 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
158 |
200
|
public void setState(String state) {... |
159 |
200
|
this.state = state; |
160 |
|
} |
161 |
|
|
162 |
|
|
163 |
|
|
164 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
165 |
163
|
public String getId() {... |
166 |
163
|
return id; |
167 |
|
} |
168 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
169 |
230
|
public void setId(String id) {... |
170 |
230
|
this.id = id; |
171 |
|
} |
172 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
173 |
198
|
public void setContactHours(AmountInfo contactHours) {... |
174 |
198
|
this.contactHours = contactHours; |
175 |
|
} |
176 |
|
|
177 |
|
|
178 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
179 |
118
|
public AmountInfo getContactHours() {... |
180 |
118
|
return contactHours; |
181 |
|
} |
182 |
|
} |