1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.lum.program.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.common.dto.HasAttributes; |
31 |
|
import org.kuali.student.common.dto.HasTypeState; |
32 |
|
import org.kuali.student.common.dto.Idable; |
33 |
|
import org.kuali.student.common.dto.MetaInfo; |
34 |
|
import org.kuali.student.common.dto.RichTextInfo; |
35 |
|
import org.kuali.student.core.statement.dto.StatementTreeViewInfo; |
36 |
|
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
37 |
|
import org.kuali.student.lum.course.dto.LoDisplayInfo; |
38 |
|
import org.kuali.student.lum.program.dto.assembly.ProgramCommonAssembly; |
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
|
|
| 96.4% |
Uncovered Elements: 2 (56) |
Complexity: 26 |
Complexity Density: 0.93 |
|
50 |
|
public class ProgramRequirementInfo implements Serializable, Idable, HasTypeState, HasAttributes, ProgramCommonAssembly { |
51 |
|
|
52 |
|
private static final long serialVersionUID = 1L; |
53 |
|
|
54 |
|
@XmlElement |
55 |
|
private String shortTitle; |
56 |
|
|
57 |
|
@XmlElement |
58 |
|
private String longTitle; |
59 |
|
|
60 |
|
@XmlElement |
61 |
|
private RichTextInfo descr; |
62 |
|
|
63 |
|
@XmlElement |
64 |
|
private List<LoDisplayInfo> learningObjectives; |
65 |
|
|
66 |
|
@XmlElement |
67 |
|
private StatementTreeViewInfo statement; |
68 |
|
|
69 |
|
@XmlElement |
70 |
|
Integer minCredits; |
71 |
|
|
72 |
|
@XmlElement |
73 |
|
Integer maxCredits; |
74 |
|
|
75 |
|
@XmlElement |
76 |
|
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
77 |
|
private Map<String, String> attributes; |
78 |
|
|
79 |
|
@XmlElement |
80 |
|
private MetaInfo metaInfo; |
81 |
|
|
82 |
|
@XmlAttribute |
83 |
|
private String type; |
84 |
|
|
85 |
|
@XmlAttribute |
86 |
|
private String state; |
87 |
|
|
88 |
|
@XmlAttribute |
89 |
|
private String id; |
90 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
91 |
9
|
public String getShortTitle() {... |
92 |
9
|
return shortTitle; |
93 |
|
} |
94 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
95 |
18
|
public void setShortTitle(String shortTitle) {... |
96 |
18
|
this.shortTitle = shortTitle; |
97 |
|
} |
98 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
99 |
9
|
public String getLongTitle() {... |
100 |
9
|
return longTitle; |
101 |
|
} |
102 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
18
|
public void setLongTitle(String longTitle) {... |
104 |
18
|
this.longTitle = longTitle; |
105 |
|
} |
106 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
107 |
15
|
public RichTextInfo getDescr() {... |
108 |
15
|
return descr; |
109 |
|
} |
110 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
111 |
18
|
public void setDescr(RichTextInfo descr) {... |
112 |
18
|
this.descr = descr; |
113 |
|
} |
114 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
115 |
37
|
public List<LoDisplayInfo> getLearningObjectives() {... |
116 |
37
|
if(null == learningObjectives) { |
117 |
5
|
learningObjectives = new ArrayList<LoDisplayInfo>(0); |
118 |
|
} |
119 |
37
|
return learningObjectives; |
120 |
|
} |
121 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
122 |
11
|
public void setLearningObjectives(List<LoDisplayInfo> learningObjectives) {... |
123 |
11
|
this.learningObjectives = learningObjectives; |
124 |
|
} |
125 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
126 |
34
|
public StatementTreeViewInfo getStatement() {... |
127 |
34
|
return statement; |
128 |
|
} |
129 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
130 |
11
|
public void setStatement(StatementTreeViewInfo statement) {... |
131 |
11
|
this.statement = statement; |
132 |
|
} |
133 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
134 |
12
|
public Integer getMinCredits() {... |
135 |
12
|
return minCredits; |
136 |
|
} |
137 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
138 |
13
|
public void setMinCredits(Integer minCredits) {... |
139 |
13
|
this.minCredits = minCredits; |
140 |
|
} |
141 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
142 |
12
|
public Integer getMaxCredits() {... |
143 |
12
|
return maxCredits; |
144 |
|
} |
145 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
146 |
13
|
public void setMaxCredits(Integer maxCredits) {... |
147 |
13
|
this.maxCredits = maxCredits; |
148 |
|
} |
149 |
|
|
150 |
|
|
151 |
|
|
152 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
153 |
9
|
@Override... |
154 |
|
public Map<String, String> getAttributes() { |
155 |
9
|
if (attributes == null) { |
156 |
6
|
attributes = new HashMap<String, String>(); |
157 |
|
} |
158 |
9
|
return attributes; |
159 |
|
} |
160 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
161 |
12
|
@Override... |
162 |
|
public void setAttributes(Map<String, String> attributes) { |
163 |
12
|
this.attributes = attributes; |
164 |
|
} |
165 |
|
|
166 |
|
|
167 |
|
|
168 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
169 |
9
|
public MetaInfo getMetaInfo() {... |
170 |
9
|
return metaInfo; |
171 |
|
} |
172 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
173 |
12
|
public void setMetaInfo(MetaInfo metaInfo) {... |
174 |
12
|
this.metaInfo = metaInfo; |
175 |
|
} |
176 |
|
|
177 |
|
|
178 |
|
|
179 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
180 |
9
|
@Override... |
181 |
|
public String getType() { |
182 |
9
|
return type; |
183 |
|
} |
184 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
185 |
18
|
@Override... |
186 |
|
public void setType(String type) { |
187 |
18
|
this.type = type; |
188 |
|
} |
189 |
|
|
190 |
|
|
191 |
|
|
192 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
193 |
18
|
@Override... |
194 |
|
public String getState() { |
195 |
18
|
return state; |
196 |
|
} |
197 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
198 |
0
|
@Override... |
199 |
|
public void setState(String state) { |
200 |
0
|
this.state = state; |
201 |
|
} |
202 |
|
|
203 |
|
|
204 |
|
|
205 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
206 |
39
|
@Override... |
207 |
|
public String getId() { |
208 |
39
|
return id; |
209 |
|
} |
210 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
211 |
21
|
@Override... |
212 |
|
public void setId(String id) { |
213 |
21
|
this.id = id; |
214 |
|
} |
215 |
|
} |