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.HasAttributes; |
31 |
|
import org.kuali.student.core.dto.HasTypeState; |
32 |
|
import org.kuali.student.core.dto.Idable; |
33 |
|
import org.kuali.student.core.dto.MetaInfo; |
34 |
|
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
|
|
| 0% |
Uncovered Elements: 32 (32) |
Complexity: 14 |
Complexity Density: 0.88 |
|
46 |
|
public class FormatInfo implements Serializable, Idable, HasTypeState, HasAttributes { |
47 |
|
|
48 |
|
private static final long serialVersionUID = 1L; |
49 |
|
|
50 |
|
@XmlElement |
51 |
|
private List<ActivityInfo> activities; |
52 |
|
|
53 |
|
@XmlElement |
54 |
|
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
55 |
|
private Map<String, String> attributes; |
56 |
|
|
57 |
|
@XmlElement |
58 |
|
private MetaInfo metaInfo; |
59 |
|
|
60 |
|
@XmlAttribute |
61 |
|
private String type; |
62 |
|
|
63 |
|
@XmlAttribute |
64 |
|
private String state; |
65 |
|
|
66 |
|
@XmlAttribute |
67 |
|
private String id; |
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
72 |
0
|
public List<ActivityInfo> getActivities() {... |
73 |
0
|
if (activities == null) { |
74 |
0
|
activities = new ArrayList<ActivityInfo>(0); |
75 |
|
} |
76 |
0
|
return activities; |
77 |
|
} |
78 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
79 |
0
|
public void setActivities(List<ActivityInfo> activities) {... |
80 |
0
|
this.activities = activities; |
81 |
|
} |
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
86 |
0
|
public Map<String, String> getAttributes() {... |
87 |
0
|
if (attributes == null) { |
88 |
0
|
attributes = new HashMap<String, String>(); |
89 |
|
} |
90 |
0
|
return attributes; |
91 |
|
} |
92 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
93 |
0
|
public void setAttributes(Map<String, String> attributes) {... |
94 |
0
|
this.attributes = attributes; |
95 |
|
} |
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
0
|
public MetaInfo getMetaInfo() {... |
101 |
0
|
return metaInfo; |
102 |
|
} |
103 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
104 |
0
|
public void setMetaInfo(MetaInfo metaInfo) {... |
105 |
0
|
this.metaInfo = metaInfo; |
106 |
|
} |
107 |
|
|
108 |
|
|
109 |
|
|
110 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
111 |
0
|
public String getType() {... |
112 |
0
|
return type; |
113 |
|
} |
114 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
115 |
0
|
public void setType(String type) {... |
116 |
0
|
this.type = type; |
117 |
|
} |
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
122 |
0
|
public String getState() {... |
123 |
0
|
return state; |
124 |
|
} |
125 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
126 |
0
|
public void setState(String state) {... |
127 |
0
|
this.state = state; |
128 |
|
} |
129 |
|
|
130 |
|
|
131 |
|
|
132 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
133 |
0
|
public String getId() {... |
134 |
0
|
return id; |
135 |
|
} |
136 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
137 |
0
|
public void setId(String id) {... |
138 |
0
|
this.id = id; |
139 |
|
} |
140 |
|
} |