1 |
|
package org.kuali.spring.util; |
2 |
|
|
3 |
|
import org.springframework.util.StringValueResolver; |
4 |
|
|
|
|
| 70.8% |
Uncovered Elements: 7 (24) |
Complexity: 10 |
Complexity Density: 0.77 |
|
5 |
|
public class DefaultStringValueResolver implements StringValueResolver { |
6 |
|
PlaceholderStringResolver resolver; |
7 |
|
ValueRetriever retriever; |
8 |
|
String nullValue; |
9 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
10 |
1
|
public DefaultStringValueResolver() {... |
11 |
1
|
this(null, null, null); |
12 |
|
} |
13 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
14 |
1
|
public DefaultStringValueResolver(PlaceholderStringResolver resolver, ValueRetriever retriever, String nullValue) {... |
15 |
1
|
super(); |
16 |
1
|
this.resolver = resolver; |
17 |
1
|
this.retriever = retriever; |
18 |
1
|
this.nullValue = nullValue; |
19 |
|
} |
20 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
21 |
38
|
@Override... |
22 |
|
public String resolveStringValue(String strVal) { |
23 |
38
|
String value = resolver.resolve(strVal, retriever); |
24 |
38
|
return value.equals(nullValue) ? null : value; |
25 |
|
} |
26 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
27 |
0
|
public ValueRetriever getRetriever() {... |
28 |
0
|
return retriever; |
29 |
|
} |
30 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
31 |
1
|
public void setRetriever(ValueRetriever resolver) {... |
32 |
1
|
this.retriever = resolver; |
33 |
|
} |
34 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
35 |
0
|
public String getNullValue() {... |
36 |
0
|
return nullValue; |
37 |
|
} |
38 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
39 |
1
|
public void setNullValue(String nullValue) {... |
40 |
1
|
this.nullValue = nullValue; |
41 |
|
} |
42 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
43 |
0
|
public PlaceholderStringResolver getResolver() {... |
44 |
0
|
return resolver; |
45 |
|
} |
46 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
47 |
1
|
public void setResolver(PlaceholderStringResolver resolver) {... |
48 |
1
|
this.resolver = resolver; |
49 |
|
} |
50 |
|
|
51 |
|
} |