1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.contract.model; |
17 |
|
|
18 |
|
import java.util.ArrayList; |
19 |
|
import java.util.List; |
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
@author |
24 |
|
|
|
|
| 0% |
Uncovered Elements: 66 (66) |
Complexity: 30 |
Complexity Density: 0.86 |
|
25 |
|
public class OrchestrationObjectField { |
26 |
|
|
27 |
|
private OrchestrationObject parent; |
28 |
|
private String name; |
29 |
|
private String type; |
30 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
31 |
|
public enum FieldTypeCategory { |
32 |
|
|
33 |
|
PRIMITIVE, |
34 |
|
MAPPED_STRING, |
35 |
|
DYNAMIC_ATTRIBUTE, |
36 |
|
COMPLEX, |
37 |
|
COMPLEX_INLINE, |
38 |
|
LIST_OF_PRIMITIVE, |
39 |
|
LIST_OF_MAPPED_STRING, |
40 |
|
LIST_OF_COMPLEX, |
41 |
|
LIST_OF_COMPLEX_INLINE; |
42 |
|
} |
43 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
44 |
0
|
public OrchestrationObject getParent() {... |
45 |
0
|
return parent; |
46 |
|
} |
47 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
48 |
0
|
public void setParent(OrchestrationObject parent) {... |
49 |
0
|
this.parent = parent; |
50 |
|
} |
51 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
52 |
0
|
public void setName(String name) {... |
53 |
0
|
this.name = name; |
54 |
|
} |
55 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
56 |
0
|
public String getName() {... |
57 |
0
|
return name; |
58 |
|
} |
59 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
60 |
0
|
public String getPropertyName() {... |
61 |
0
|
return name.substring(0, 1).toLowerCase() + name.substring(1); |
62 |
|
} |
63 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
64 |
0
|
public String getProperName() {... |
65 |
0
|
return name.substring(0, 1).toUpperCase() + name.substring(1); |
66 |
|
} |
67 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
68 |
0
|
public void setType(String type) {... |
69 |
0
|
this.type = type; |
70 |
|
} |
71 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
72 |
0
|
public String getType() {... |
73 |
0
|
return type; |
74 |
|
} |
75 |
|
private FieldTypeCategory fieldTypeCategory; |
76 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
77 |
0
|
public FieldTypeCategory getFieldTypeCategory() {... |
78 |
0
|
return fieldTypeCategory; |
79 |
|
} |
80 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
81 |
0
|
public void setFieldTypeCategory(... |
82 |
|
FieldTypeCategory fieldTypeCategory) { |
83 |
0
|
this.fieldTypeCategory = fieldTypeCategory; |
84 |
|
} |
85 |
|
private OrchestrationObject inlineObject; |
86 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
87 |
0
|
public OrchestrationObject getInlineObject() {... |
88 |
0
|
return inlineObject; |
89 |
|
} |
90 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
91 |
0
|
public void setInlineObject(OrchestrationObject inlineObject) {... |
92 |
0
|
this.inlineObject = inlineObject; |
93 |
|
} |
94 |
|
private List<TypeStateConstraint> constraints; |
95 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
96 |
0
|
public List<TypeStateConstraint> getConstraints() {... |
97 |
0
|
if (constraints == null) { |
98 |
0
|
constraints = new ArrayList(); |
99 |
|
} |
100 |
0
|
return constraints; |
101 |
|
} |
102 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
0
|
public void setConstraints(List<TypeStateConstraint> constraints) {... |
104 |
0
|
this.constraints = constraints; |
105 |
|
} |
106 |
|
private String defaultValue; |
107 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
108 |
0
|
public String getDefaultValue() {... |
109 |
0
|
return defaultValue; |
110 |
|
} |
111 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
112 |
0
|
public void setDefaultValue(String defaultValue) {... |
113 |
0
|
this.defaultValue = defaultValue; |
114 |
|
} |
115 |
|
private String defaultValuePath; |
116 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
117 |
0
|
public String getDefaultValuePath() {... |
118 |
0
|
return defaultValuePath; |
119 |
|
} |
120 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
121 |
0
|
public void setDefaultValuePath(String defaultValuePath) {... |
122 |
0
|
this.defaultValuePath = defaultValuePath; |
123 |
|
} |
124 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
125 |
0
|
public String getFullyQualifiedName() {... |
126 |
|
|
127 |
0
|
StringBuffer buf = new StringBuffer(); |
128 |
0
|
buf.append(getParent().getName()); |
129 |
0
|
buf.append("."); |
130 |
0
|
buf.append(getProperName()); |
131 |
0
|
return buf.toString(); |
132 |
|
} |
133 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
134 |
|
public enum WriteAccess { |
135 |
|
|
136 |
|
ALWAYS, NEVER, ON_CREATE; |
137 |
|
} |
138 |
|
private WriteAccess writeAccess; |
139 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
140 |
0
|
public WriteAccess getWriteAccess() {... |
141 |
0
|
return writeAccess; |
142 |
|
} |
143 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
144 |
0
|
public void setWriteAccess(WriteAccess writeAccess) {... |
145 |
0
|
this.writeAccess = writeAccess; |
146 |
|
} |
147 |
|
private String lookup; |
148 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
149 |
0
|
public String getLookup() {... |
150 |
0
|
return lookup; |
151 |
|
} |
152 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
153 |
0
|
public void setLookup(String lookup) {... |
154 |
0
|
this.lookup = lookup; |
155 |
|
} |
156 |
|
private List<String> additionalLookups; |
157 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
158 |
0
|
public List<String> getAdditionalLookups() {... |
159 |
0
|
return additionalLookups; |
160 |
|
} |
161 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
162 |
0
|
public void setAdditionalLookups(List<String> additionalLookups) {... |
163 |
0
|
this.additionalLookups = additionalLookups; |
164 |
|
} |
165 |
|
private String lookupContextPath; |
166 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
167 |
0
|
public String getLookupContextPath() {... |
168 |
0
|
return lookupContextPath; |
169 |
|
} |
170 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
171 |
0
|
public void setLookupContextPath(String lookupContextPath) {... |
172 |
0
|
this.lookupContextPath = lookupContextPath; |
173 |
|
} |
174 |
|
private Integer maxRecursions; |
175 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
176 |
0
|
public Integer getMaxRecursions() {... |
177 |
0
|
return maxRecursions; |
178 |
|
} |
179 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
180 |
0
|
public void setMaxRecursions(Integer maxRecursions) {... |
181 |
0
|
this.maxRecursions = maxRecursions; |
182 |
|
} |
183 |
|
} |