1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.core.atp.dto; |
17 |
|
|
18 |
|
import java.io.Serializable; |
19 |
|
import java.util.Date; |
20 |
|
import java.util.HashMap; |
21 |
|
import java.util.Map; |
22 |
|
|
23 |
|
import javax.xml.bind.annotation.XmlAccessType; |
24 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
25 |
|
import javax.xml.bind.annotation.XmlAttribute; |
26 |
|
import javax.xml.bind.annotation.XmlElement; |
27 |
|
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
28 |
|
|
29 |
|
import org.kuali.student.common.dto.HasAttributes; |
30 |
|
import org.kuali.student.common.dto.HasTypeState; |
31 |
|
import org.kuali.student.common.dto.Idable; |
32 |
|
import org.kuali.student.common.dto.MetaInfo; |
33 |
|
import org.kuali.student.common.dto.RichTextInfo; |
34 |
|
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
|
|
| 100% |
Uncovered Elements: 0 (40) |
Complexity: 19 |
Complexity Density: 0.95 |
|
40 |
|
public class AtpInfo implements Serializable, Idable, HasTypeState, HasAttributes { |
41 |
|
|
42 |
|
private static final long serialVersionUID = 1L; |
43 |
|
|
44 |
|
@XmlElement |
45 |
|
private String name; |
46 |
|
|
47 |
|
@XmlElement |
48 |
|
private RichTextInfo desc; |
49 |
|
|
50 |
|
@XmlElement |
51 |
|
private Date startDate; |
52 |
|
|
53 |
|
@XmlElement |
54 |
|
private Date endDate; |
55 |
|
|
56 |
|
@XmlElement |
57 |
|
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
58 |
|
private Map<String,String> attributes; |
59 |
|
|
60 |
|
@XmlElement |
61 |
|
private MetaInfo metaInfo; |
62 |
|
|
63 |
|
@XmlAttribute |
64 |
|
private String type; |
65 |
|
|
66 |
|
@XmlAttribute |
67 |
|
private String state; |
68 |
|
|
69 |
|
@XmlAttribute(name="key") |
70 |
|
private String id; |
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
3
|
public String getName() {... |
76 |
3
|
return name; |
77 |
|
} |
78 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
79 |
7
|
public void setName(String name) {... |
80 |
7
|
this.name = name; |
81 |
|
} |
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
86 |
7
|
public RichTextInfo getDesc() {... |
87 |
7
|
return desc; |
88 |
|
} |
89 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
90 |
7
|
public void setDesc(RichTextInfo desc) {... |
91 |
7
|
this.desc = desc; |
92 |
|
} |
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
97 |
5
|
public Date getStartDate() {... |
98 |
5
|
return startDate; |
99 |
|
} |
100 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
101 |
7
|
public void setStartDate(Date startDate) {... |
102 |
7
|
this.startDate = startDate; |
103 |
|
} |
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
108 |
5
|
public Date getEndDate() {... |
109 |
5
|
return endDate; |
110 |
|
} |
111 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
112 |
7
|
public void setEndDate(Date endDate) {... |
113 |
7
|
this.endDate = endDate; |
114 |
|
} |
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
119 |
4
|
public Map<String,String> getAttributes() {... |
120 |
4
|
if (attributes == null) { |
121 |
2
|
attributes = new HashMap<String,String>(); |
122 |
|
} |
123 |
4
|
return attributes; |
124 |
|
} |
125 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
126 |
6
|
public void setAttributes(Map<String,String> attributes) {... |
127 |
6
|
this.attributes = attributes; |
128 |
|
} |
129 |
|
|
130 |
|
|
131 |
|
|
132 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
133 |
5
|
public MetaInfo getMetaInfo() {... |
134 |
5
|
return metaInfo; |
135 |
|
} |
136 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
137 |
6
|
public void setMetaInfo(MetaInfo metaInfo) {... |
138 |
6
|
this.metaInfo = metaInfo; |
139 |
|
} |
140 |
|
|
141 |
|
|
142 |
|
|
143 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
144 |
3
|
public String getType() {... |
145 |
3
|
return type; |
146 |
|
} |
147 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
148 |
7
|
public void setType(String type) {... |
149 |
7
|
this.type = type; |
150 |
|
} |
151 |
|
|
152 |
|
|
153 |
|
|
154 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
155 |
3
|
public String getState() {... |
156 |
3
|
return state; |
157 |
|
} |
158 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
159 |
7
|
public void setState(String state) {... |
160 |
7
|
this.state = state; |
161 |
|
} |
162 |
|
|
163 |
|
|
164 |
|
|
165 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
166 |
7
|
public String getId() {... |
167 |
7
|
return id; |
168 |
|
} |
169 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
170 |
9
|
public void setId(String id) {... |
171 |
9
|
this.id = id; |
172 |
|
} |
173 |
|
} |