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