| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.kuali.student.core.document.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.common.dto.RichTextInfo; |
| 36 |
|
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
|
|
|
| 100% |
Uncovered Elements: 0 (48) |
Complexity: 23 |
Complexity Density: 0.96 |
|
| 49 |
|
public class DocumentInfo implements Serializable, Idable, HasTypeState, HasAttributes { |
| 50 |
|
|
| 51 |
|
private static final long serialVersionUID = 1L; |
| 52 |
|
|
| 53 |
|
@XmlElement |
| 54 |
|
private String name; |
| 55 |
|
|
| 56 |
|
@XmlElement |
| 57 |
|
private String fileName; |
| 58 |
|
|
| 59 |
|
@XmlElement |
| 60 |
|
private RichTextInfo desc; |
| 61 |
|
|
| 62 |
|
@XmlElement |
| 63 |
|
private DocumentBinaryInfo documentBinaryInfo; |
| 64 |
|
|
| 65 |
|
@XmlElement |
| 66 |
|
private Date effectiveDate; |
| 67 |
|
|
| 68 |
|
@XmlElement |
| 69 |
|
private Date expirationDate; |
| 70 |
|
|
| 71 |
|
@XmlElement |
| 72 |
|
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
| 73 |
|
private Map<String, String> attributes; |
| 74 |
|
|
| 75 |
|
@XmlElement |
| 76 |
|
private MetaInfo metaInfo; |
| 77 |
|
|
| 78 |
|
@XmlAttribute |
| 79 |
|
private String type; |
| 80 |
|
|
| 81 |
|
@XmlAttribute |
| 82 |
|
private String state; |
| 83 |
|
|
| 84 |
|
@XmlAttribute |
| 85 |
|
private String id; |
| 86 |
|
|
| 87 |
|
|
| 88 |
|
|
| 89 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 90 |
7
|
public String getName() {... |
| 91 |
7
|
return name; |
| 92 |
|
} |
| 93 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 94 |
12
|
public void setName(String name) {... |
| 95 |
12
|
this.name = name; |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
|
| 99 |
|
|
| 100 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 101 |
8
|
public String getFileName() {... |
| 102 |
8
|
return fileName; |
| 103 |
|
} |
| 104 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 105 |
13
|
public void setFileName(String fileName) {... |
| 106 |
13
|
this.fileName = fileName; |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
|
| 110 |
|
|
| 111 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 112 |
9
|
public RichTextInfo getDesc() {... |
| 113 |
9
|
return desc; |
| 114 |
|
} |
| 115 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 116 |
12
|
public void setDesc(RichTextInfo desc) {... |
| 117 |
12
|
this.desc = desc; |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
|
| 121 |
|
|
| 122 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 123 |
18
|
public DocumentBinaryInfo getDocumentBinaryInfo() {... |
| 124 |
18
|
return documentBinaryInfo; |
| 125 |
|
} |
| 126 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 127 |
13
|
public void setDocumentBinaryInfo(DocumentBinaryInfo documentBinaryInfo) {... |
| 128 |
13
|
this.documentBinaryInfo = documentBinaryInfo; |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
|
| 132 |
|
|
| 133 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 134 |
8
|
public Date getEffectiveDate() {... |
| 135 |
8
|
return effectiveDate; |
| 136 |
|
} |
| 137 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 138 |
12
|
public void setEffectiveDate(Date effectiveDate) {... |
| 139 |
12
|
this.effectiveDate = effectiveDate; |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
|
| 143 |
|
|
| 144 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 145 |
8
|
public Date getExpirationDate() {... |
| 146 |
8
|
return expirationDate; |
| 147 |
|
} |
| 148 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 149 |
12
|
public void setExpirationDate(Date expirationDate) {... |
| 150 |
12
|
this.expirationDate = expirationDate; |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
|
| 154 |
|
|
| 155 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 156 |
6
|
public Map<String, String> getAttributes() {... |
| 157 |
6
|
if (attributes == null) { |
| 158 |
3
|
attributes = new HashMap<String, String>(); |
| 159 |
|
} |
| 160 |
6
|
return attributes; |
| 161 |
|
} |
| 162 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 163 |
11
|
public void setAttributes(Map<String, String> attributes) {... |
| 164 |
11
|
this.attributes = attributes; |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
|
| 168 |
|
|
| 169 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 170 |
3
|
public MetaInfo getMetaInfo() {... |
| 171 |
3
|
return metaInfo; |
| 172 |
|
} |
| 173 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 174 |
10
|
public void setMetaInfo(MetaInfo metaInfo) {... |
| 175 |
10
|
this.metaInfo = metaInfo; |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
|
| 179 |
|
|
| 180 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 181 |
2
|
public String getType() {... |
| 182 |
2
|
return type; |
| 183 |
|
} |
| 184 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 185 |
12
|
public void setType(String type) {... |
| 186 |
12
|
this.type = type; |
| 187 |
|
} |
| 188 |
|
|
| 189 |
|
|
| 190 |
|
|
| 191 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 192 |
6
|
public String getState() {... |
| 193 |
6
|
return state; |
| 194 |
|
} |
| 195 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 196 |
11
|
public void setState(String state) {... |
| 197 |
11
|
this.state = state; |
| 198 |
|
} |
| 199 |
|
|
| 200 |
|
|
| 201 |
|
|
| 202 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 203 |
12
|
public String getId() {... |
| 204 |
12
|
return id; |
| 205 |
|
} |
| 206 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 207 |
10
|
public void setId(String id) {... |
| 208 |
10
|
this.id = id; |
| 209 |
|
} |
| 210 |
|
} |