| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
package org.kuali.student.common.dictionary.old.dto; |
| 25 |
|
|
| 26 |
|
import java.io.Serializable; |
| 27 |
|
import java.util.HashMap; |
| 28 |
|
import java.util.Map; |
| 29 |
|
|
| 30 |
|
import javax.xml.bind.annotation.XmlAccessType; |
| 31 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
| 32 |
|
import javax.xml.bind.annotation.XmlAttribute; |
| 33 |
|
import javax.xml.bind.annotation.XmlElement; |
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| 57 |
|
|
| 58 |
|
|
| 59 |
|
|
| 60 |
|
|
| 61 |
|
|
| 62 |
|
|
| 63 |
|
|
| 64 |
|
|
| 65 |
|
|
| 66 |
|
|
| 67 |
|
|
| 68 |
|
|
| 69 |
|
|
| 70 |
|
|
| 71 |
|
|
| 72 |
|
|
| 73 |
|
|
| 74 |
|
|
| 75 |
|
|
| 76 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
|
|
|
| 0% |
Uncovered Elements: 36 (36) |
Complexity: 17 |
Complexity Density: 0.89 |
|
| 77 |
|
public class FieldDescriptor implements Serializable { |
| 78 |
|
|
| 79 |
|
private static final long serialVersionUID = 1L; |
| 80 |
|
|
| 81 |
|
@XmlAttribute |
| 82 |
|
protected String id; |
| 83 |
|
|
| 84 |
|
@XmlElement(required = true) |
| 85 |
|
protected String name; |
| 86 |
|
|
| 87 |
|
@XmlElement(required = true) |
| 88 |
|
protected String desc; |
| 89 |
|
|
| 90 |
|
@XmlElement |
| 91 |
|
protected boolean readOnly; |
| 92 |
|
|
| 93 |
|
@XmlElement(required = true) |
| 94 |
|
protected String dataType; |
| 95 |
|
|
| 96 |
|
@XmlElement |
| 97 |
|
protected SearchSelector search; |
| 98 |
|
|
| 99 |
|
@XmlElement |
| 100 |
|
protected ObjectStructure objectStructure; |
| 101 |
|
|
| 102 |
|
@XmlElement |
| 103 |
|
protected String objectStructureRef; |
| 104 |
|
|
| 105 |
|
|
| 106 |
|
|
| 107 |
|
|
| 108 |
|
|
| 109 |
|
@return |
| 110 |
|
|
| 111 |
|
@link |
| 112 |
|
|
| 113 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 114 |
0
|
public String getDataType() {... |
| 115 |
0
|
return dataType; |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
|
| 119 |
|
|
| 120 |
|
|
| 121 |
|
@param |
| 122 |
|
|
| 123 |
|
@link |
| 124 |
|
|
| 125 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 126 |
0
|
public void setDataType(String value) {... |
| 127 |
0
|
this.dataType = value; |
| 128 |
|
} |
| 129 |
|
|
| 130 |
|
|
| 131 |
|
@return |
| 132 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 133 |
0
|
public String getName() {... |
| 134 |
0
|
return name; |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
|
| 138 |
|
@param |
| 139 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 140 |
0
|
public void setName(String name) {... |
| 141 |
0
|
this.name = name; |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
|
| 145 |
|
@return |
| 146 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 147 |
0
|
public String getDesc() {... |
| 148 |
0
|
return desc; |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
|
| 152 |
|
@param |
| 153 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 154 |
0
|
public void setDesc(String desc) {... |
| 155 |
0
|
this.desc = desc; |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
|
| 159 |
|
@return |
| 160 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 161 |
0
|
public boolean isReadOnly() {... |
| 162 |
0
|
return readOnly; |
| 163 |
|
} |
| 164 |
|
|
| 165 |
|
|
| 166 |
|
@param |
| 167 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 168 |
0
|
public void setReadOnly(boolean readOnly) {... |
| 169 |
0
|
this.readOnly = readOnly; |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
|
| 173 |
|
@return |
| 174 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 175 |
0
|
public SearchSelector getSearch() {... |
| 176 |
0
|
return search; |
| 177 |
|
} |
| 178 |
|
|
| 179 |
|
|
| 180 |
|
@param |
| 181 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 182 |
0
|
public void setSearch(SearchSelector search) {... |
| 183 |
0
|
this.search = search; |
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
|
| 187 |
|
@return |
| 188 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 189 |
0
|
public String getId() {... |
| 190 |
0
|
return id; |
| 191 |
|
} |
| 192 |
|
|
| 193 |
|
|
| 194 |
|
@param |
| 195 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 196 |
0
|
public void setId(String id) {... |
| 197 |
0
|
this.id = id; |
| 198 |
|
} |
| 199 |
|
|
| 200 |
|
|
| 201 |
|
@return |
| 202 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 203 |
0
|
public ObjectStructure getObjectStructure() {... |
| 204 |
0
|
return objectStructure; |
| 205 |
|
} |
| 206 |
|
|
| 207 |
|
|
| 208 |
|
@param |
| 209 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 210 |
0
|
public void setObjectStructure(ObjectStructure objectStructure) {... |
| 211 |
0
|
this.objectStructure = objectStructure; |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
|
| 215 |
|
@return |
| 216 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 217 |
0
|
public String getObjectStructureRef() {... |
| 218 |
0
|
return objectStructureRef; |
| 219 |
|
} |
| 220 |
|
|
| 221 |
|
|
| 222 |
|
@param |
| 223 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 224 |
0
|
public void setObjectStructureRef(String objectStructureRef) {... |
| 225 |
0
|
this.objectStructureRef = objectStructureRef; |
| 226 |
|
} |
| 227 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
| 228 |
0
|
public Map<String, Object> toMap(){... |
| 229 |
0
|
Map<String, Object> fieldDescMap = new HashMap<String, Object>(); |
| 230 |
0
|
fieldDescMap.put("dataType", dataType); |
| 231 |
0
|
return fieldDescMap; |
| 232 |
|
} |
| 233 |
|
|
| 234 |
|
|
| 235 |
|
} |