| 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.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 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
|
|
|
| 100% |
Uncovered Elements: 0 (52) |
Complexity: 25 |
Complexity Density: 0.96 |
|
| 47 |
|
public class RefDocRelationInfo implements Serializable, Idable, HasTypeState, HasAttributes { |
| 48 |
|
|
| 49 |
|
private static final long serialVersionUID = 1L; |
| 50 |
|
|
| 51 |
|
@XmlElement |
| 52 |
|
private String refObjectTypeKey; |
| 53 |
|
|
| 54 |
|
@XmlElement |
| 55 |
|
private String refObjectId; |
| 56 |
|
|
| 57 |
|
@XmlElement |
| 58 |
|
private String documentId; |
| 59 |
|
|
| 60 |
|
@XmlElement |
| 61 |
|
private String title; |
| 62 |
|
|
| 63 |
|
@XmlElement |
| 64 |
|
private RichTextInfo desc; |
| 65 |
|
|
| 66 |
|
@XmlElement |
| 67 |
|
private Date effectiveDate; |
| 68 |
|
|
| 69 |
|
@XmlElement |
| 70 |
|
private Date expirationDate; |
| 71 |
|
|
| 72 |
|
@XmlElement |
| 73 |
|
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
| 74 |
|
private Map<String, String> attributes; |
| 75 |
|
|
| 76 |
|
@XmlElement |
| 77 |
|
private MetaInfo metaInfo; |
| 78 |
|
|
| 79 |
|
@XmlAttribute |
| 80 |
|
private String type; |
| 81 |
|
|
| 82 |
|
@XmlAttribute |
| 83 |
|
private String state; |
| 84 |
|
|
| 85 |
|
@XmlAttribute |
| 86 |
|
private String id; |
| 87 |
|
|
| 88 |
|
|
| 89 |
|
|
| 90 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 91 |
20
|
public String getRefObjectTypeKey() {... |
| 92 |
20
|
return refObjectTypeKey; |
| 93 |
|
} |
| 94 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 95 |
10
|
public void setRefObjectTypeKey(String refObjectTypeKey) {... |
| 96 |
10
|
this.refObjectTypeKey = refObjectTypeKey; |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
|
| 100 |
|
|
| 101 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 102 |
16
|
public String getRefObjectId() {... |
| 103 |
16
|
return refObjectId; |
| 104 |
|
} |
| 105 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 106 |
10
|
public void setRefObjectId(String refObjectId) {... |
| 107 |
10
|
this.refObjectId = refObjectId; |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
|
| 111 |
|
|
| 112 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 113 |
16
|
public String getDocumentId() {... |
| 114 |
16
|
return documentId; |
| 115 |
|
} |
| 116 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 117 |
7
|
public void setDocumentId(String documentId) {... |
| 118 |
7
|
this.documentId = documentId; |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
|
| 122 |
|
|
| 123 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 124 |
12
|
public String getTitle() {... |
| 125 |
12
|
return title; |
| 126 |
|
} |
| 127 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 128 |
7
|
public void setTitle(String title) {... |
| 129 |
7
|
this.title = title; |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
|
| 133 |
|
|
| 134 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 135 |
26
|
public RichTextInfo getDesc() {... |
| 136 |
26
|
return desc; |
| 137 |
|
} |
| 138 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 139 |
7
|
public void setDesc(RichTextInfo desc) {... |
| 140 |
7
|
this.desc = desc; |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
|
| 144 |
|
|
| 145 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 146 |
12
|
public Date getEffectiveDate() {... |
| 147 |
12
|
return effectiveDate; |
| 148 |
|
} |
| 149 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 150 |
7
|
public void setEffectiveDate(Date effectiveDate) {... |
| 151 |
7
|
this.effectiveDate = effectiveDate; |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
|
| 155 |
|
|
| 156 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 157 |
12
|
public Date getExpirationDate() {... |
| 158 |
12
|
return expirationDate; |
| 159 |
|
} |
| 160 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 161 |
7
|
public void setExpirationDate(Date expirationDate) {... |
| 162 |
7
|
this.expirationDate = expirationDate; |
| 163 |
|
} |
| 164 |
|
|
| 165 |
|
|
| 166 |
|
|
| 167 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 168 |
2
|
public Map<String, String> getAttributes() {... |
| 169 |
2
|
if (attributes == null) { |
| 170 |
1
|
attributes = new HashMap<String, String>(); |
| 171 |
|
} |
| 172 |
2
|
return attributes; |
| 173 |
|
} |
| 174 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 175 |
5
|
public void setAttributes(Map<String, String> attributes) {... |
| 176 |
5
|
this.attributes = attributes; |
| 177 |
|
} |
| 178 |
|
|
| 179 |
|
|
| 180 |
|
|
| 181 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 182 |
2
|
public MetaInfo getMetaInfo() {... |
| 183 |
2
|
return metaInfo; |
| 184 |
|
} |
| 185 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 186 |
5
|
public void setMetaInfo(MetaInfo metaInfo) {... |
| 187 |
5
|
this.metaInfo = metaInfo; |
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
|
| 191 |
|
|
| 192 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 193 |
19
|
public String getType() {... |
| 194 |
19
|
return type; |
| 195 |
|
} |
| 196 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 197 |
10
|
public void setType(String type) {... |
| 198 |
10
|
this.type = type; |
| 199 |
|
} |
| 200 |
|
|
| 201 |
|
|
| 202 |
|
|
| 203 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 204 |
12
|
public String getState() {... |
| 205 |
12
|
return state; |
| 206 |
|
} |
| 207 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 208 |
7
|
public void setState(String state) {... |
| 209 |
7
|
this.state = state; |
| 210 |
|
} |
| 211 |
|
|
| 212 |
|
|
| 213 |
|
|
| 214 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 215 |
7
|
public String getId() {... |
| 216 |
7
|
return id; |
| 217 |
|
} |
| 218 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 219 |
7
|
public void setId(String id) {... |
| 220 |
7
|
this.id = id; |
| 221 |
|
} |
| 222 |
|
} |