1 |
|
package org.kuali.student.common.ui.shared; |
2 |
|
|
3 |
|
import org.kuali.student.common.rice.StudentIdentityConstants; |
4 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
5 |
|
public class IdAttributes { |
6 |
|
|
7 |
|
public static final String ID_TYPE = "ID_TYPE"; |
8 |
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 4 |
Complexity Density: 0.67 |
|
9 |
|
public enum IdType { |
10 |
|
|
11 |
|
KS_KEW_OBJECT_ID(StudentIdentityConstants.QUALIFICATION_KEW_OBJECT_ID), DOCUMENT_ID(StudentIdentityConstants.DOCUMENT_NUMBER), OBJECT_ID("objectId"), COPY_OF_OBJECT_ID("copyOfObjectId"), COPY_OF_KS_KEW_OBJECT_ID("copyOfKualiStudentObjectWorkflowId"); |
12 |
|
|
13 |
|
final String stringValue; |
14 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
15 |
0
|
private IdType(String value) {... |
16 |
0
|
this.stringValue = value; |
17 |
|
} |
18 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
19 |
0
|
public String toString() {... |
20 |
0
|
return stringValue; |
21 |
|
} |
22 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
23 |
0
|
public static IdType fromString(String name) {... |
24 |
0
|
for (IdType idTypeEnum : values()) { |
25 |
0
|
if (name.equals(idTypeEnum.toString())) { |
26 |
0
|
return idTypeEnum; |
27 |
|
} |
28 |
|
} |
29 |
0
|
return null; |
30 |
|
} |
31 |
|
} |
32 |
|
} |