| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.kuali.student.core.proposal.dto; |
| 17 |
|
|
| 18 |
|
import java.io.Serializable; |
| 19 |
|
import java.util.ArrayList; |
| 20 |
|
import java.util.Date; |
| 21 |
|
import java.util.HashMap; |
| 22 |
|
import java.util.List; |
| 23 |
|
import java.util.Map; |
| 24 |
|
|
| 25 |
|
import javax.xml.bind.annotation.XmlAccessType; |
| 26 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
| 27 |
|
import javax.xml.bind.annotation.XmlAttribute; |
| 28 |
|
import javax.xml.bind.annotation.XmlElement; |
| 29 |
|
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
| 30 |
|
|
| 31 |
|
import org.kuali.student.common.dto.HasAttributes; |
| 32 |
|
import org.kuali.student.common.dto.HasTypeState; |
| 33 |
|
import org.kuali.student.common.dto.Idable; |
| 34 |
|
import org.kuali.student.common.dto.MetaInfo; |
| 35 |
|
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
|
|
|
| 100% |
Uncovered Elements: 0 (76) |
Complexity: 34 |
Complexity Density: 0.89 |
|
| 47 |
|
public class ProposalInfo implements Serializable, Idable, HasTypeState, HasAttributes { |
| 48 |
|
|
| 49 |
|
private static final long serialVersionUID = 1L; |
| 50 |
|
|
| 51 |
|
@XmlElement |
| 52 |
|
private String name; |
| 53 |
|
|
| 54 |
|
@XmlElement |
| 55 |
|
private List<String> proposerPerson; |
| 56 |
|
|
| 57 |
|
@XmlElement |
| 58 |
|
private List<String> proposerOrg; |
| 59 |
|
|
| 60 |
|
@XmlElement |
| 61 |
|
private String proposalReferenceType; |
| 62 |
|
|
| 63 |
|
@XmlElement |
| 64 |
|
private List<String> proposalReference; |
| 65 |
|
|
| 66 |
|
@XmlElement |
| 67 |
|
private String rationale; |
| 68 |
|
|
| 69 |
|
@XmlElement |
| 70 |
|
private String detailDesc; |
| 71 |
|
|
| 72 |
|
@XmlElement |
| 73 |
|
private Date effectiveDate; |
| 74 |
|
|
| 75 |
|
@XmlElement |
| 76 |
|
private Date expirationDate; |
| 77 |
|
|
| 78 |
|
@XmlElement |
| 79 |
|
private String workflowId; |
| 80 |
|
|
| 81 |
|
@XmlElement |
| 82 |
|
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
| 83 |
|
private Map<String, String> attributes; |
| 84 |
|
|
| 85 |
|
@XmlElement |
| 86 |
|
private MetaInfo metaInfo; |
| 87 |
|
|
| 88 |
|
@XmlAttribute |
| 89 |
|
private String type; |
| 90 |
|
|
| 91 |
|
@XmlAttribute |
| 92 |
|
private String state; |
| 93 |
|
|
| 94 |
|
@XmlAttribute |
| 95 |
|
private String id; |
| 96 |
|
|
| 97 |
|
|
| 98 |
|
|
| 99 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 100 |
10
|
public String getName() {... |
| 101 |
10
|
return name; |
| 102 |
|
} |
| 103 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 104 |
16
|
public void setName(String name) {... |
| 105 |
16
|
this.name = name; |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
|
| 109 |
|
|
| 110 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 111 |
22
|
public List<String> getProposerPerson() {... |
| 112 |
22
|
if (proposerPerson == null) { |
| 113 |
6
|
proposerPerson = new ArrayList<String>(0); |
| 114 |
|
} |
| 115 |
22
|
return proposerPerson; |
| 116 |
|
} |
| 117 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 118 |
17
|
public void setProposerPerson(List<String> proposerPerson) {... |
| 119 |
17
|
this.proposerPerson = proposerPerson; |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
|
| 123 |
|
|
| 124 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 125 |
17
|
public List<String> getProposerOrg() {... |
| 126 |
17
|
if (proposerOrg == null) { |
| 127 |
4
|
proposerOrg = new ArrayList<String>(0); |
| 128 |
|
} |
| 129 |
17
|
return proposerOrg; |
| 130 |
|
} |
| 131 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 132 |
16
|
public void setProposerOrg(List<String> proposerOrg) {... |
| 133 |
16
|
this.proposerOrg = proposerOrg; |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
|
| 137 |
|
|
| 138 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 139 |
13
|
public String getProposalReferenceType() {... |
| 140 |
13
|
return proposalReferenceType; |
| 141 |
|
} |
| 142 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 143 |
16
|
public void setProposalReferenceType(String proposalReferenceType) {... |
| 144 |
16
|
this.proposalReferenceType = proposalReferenceType; |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
|
| 148 |
|
|
| 149 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 150 |
17
|
public List<String> getProposalReference() {... |
| 151 |
17
|
if (proposalReference == null) { |
| 152 |
1
|
proposalReference = new ArrayList<String>(0); |
| 153 |
|
} |
| 154 |
17
|
return proposalReference; |
| 155 |
|
} |
| 156 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 157 |
17
|
public void setProposalReference(List<String> proposalReference) {... |
| 158 |
17
|
this.proposalReference = proposalReference; |
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
|
| 162 |
|
|
| 163 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 164 |
10
|
public String getRationale() {... |
| 165 |
10
|
return rationale; |
| 166 |
|
} |
| 167 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 168 |
16
|
public void setRationale(String rationale) {... |
| 169 |
16
|
this.rationale = rationale; |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
|
| 173 |
|
|
| 174 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 175 |
10
|
public String getDetailDesc() {... |
| 176 |
10
|
return detailDesc; |
| 177 |
|
} |
| 178 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 179 |
16
|
public void setDetailDesc(String detailDesc) {... |
| 180 |
16
|
this.detailDesc = detailDesc; |
| 181 |
|
} |
| 182 |
|
|
| 183 |
|
|
| 184 |
|
|
| 185 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 186 |
10
|
public Date getEffectiveDate() {... |
| 187 |
10
|
return effectiveDate; |
| 188 |
|
} |
| 189 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 190 |
16
|
public void setEffectiveDate(Date effectiveDate) {... |
| 191 |
16
|
this.effectiveDate = effectiveDate; |
| 192 |
|
} |
| 193 |
|
|
| 194 |
|
|
| 195 |
|
|
| 196 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 197 |
10
|
public Date getExpirationDate() {... |
| 198 |
10
|
return expirationDate; |
| 199 |
|
} |
| 200 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 201 |
16
|
public void setExpirationDate(Date expirationDate) {... |
| 202 |
16
|
this.expirationDate = expirationDate; |
| 203 |
|
} |
| 204 |
|
|
| 205 |
|
|
| 206 |
|
|
| 207 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 208 |
10
|
public Map<String, String> getAttributes() {... |
| 209 |
10
|
if (attributes == null) { |
| 210 |
1
|
attributes = new HashMap<String, String>(); |
| 211 |
|
} |
| 212 |
10
|
return attributes; |
| 213 |
|
} |
| 214 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 215 |
16
|
public void setAttributes(Map<String, String> attributes) {... |
| 216 |
16
|
this.attributes = attributes; |
| 217 |
|
} |
| 218 |
|
|
| 219 |
|
|
| 220 |
|
|
| 221 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 222 |
3
|
public MetaInfo getMetaInfo() {... |
| 223 |
3
|
return metaInfo; |
| 224 |
|
} |
| 225 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 226 |
15
|
public void setMetaInfo(MetaInfo metaInfo) {... |
| 227 |
15
|
this.metaInfo = metaInfo; |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
|
| 231 |
|
|
| 232 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 233 |
9
|
public String getType() {... |
| 234 |
9
|
return type; |
| 235 |
|
} |
| 236 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 237 |
16
|
public void setType(String type) {... |
| 238 |
16
|
this.type = type; |
| 239 |
|
} |
| 240 |
|
|
| 241 |
|
|
| 242 |
|
|
| 243 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 244 |
10
|
public String getState() {... |
| 245 |
10
|
return state; |
| 246 |
|
} |
| 247 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 248 |
16
|
public void setState(String state) {... |
| 249 |
16
|
this.state = state; |
| 250 |
|
} |
| 251 |
|
|
| 252 |
|
|
| 253 |
|
|
| 254 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 255 |
16
|
public String getId() {... |
| 256 |
16
|
return id; |
| 257 |
|
} |
| 258 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 259 |
18
|
public void setId(String id) {... |
| 260 |
18
|
this.id = id; |
| 261 |
|
} |
| 262 |
|
|
| 263 |
|
|
| 264 |
|
|
| 265 |
|
@return |
| 266 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 267 |
10
|
public String getWorkflowId() {... |
| 268 |
10
|
return workflowId; |
| 269 |
|
} |
| 270 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 271 |
16
|
public void setWorkflowId(String workflowId) {... |
| 272 |
16
|
this.workflowId = workflowId; |
| 273 |
|
} |
| 274 |
|
|
| 275 |
|
|
| 276 |
|
} |