Clover Coverage Report - Kuali Spring Utilities 1.1.1-SNAPSHOT
Coverage timestamp: Thu Apr 21 2011 14:08:56 EST
../../../../img/srcFileCovDistChart7.png 30% of files have more coverage
13   51   10   1.44
2   39   0.77   9
9     1.11  
1    
 
  DefaultStringValueResolver       Line # 5 13 0% 10 7 70.8% 0.7083333
 
No Tests
 
1    package org.kuali.spring.util;
2   
3    import org.springframework.util.StringValueResolver;
4   
 
5    public class DefaultStringValueResolver implements StringValueResolver {
6    PlaceholderStringResolver resolver;
7    ValueRetriever retriever;
8    String nullValue;
9   
 
10  1 toggle public DefaultStringValueResolver() {
11  1 this(null, null, null);
12    }
13   
 
14  1 toggle 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   
 
21  38 toggle @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   
 
27  0 toggle public ValueRetriever getRetriever() {
28  0 return retriever;
29    }
30   
 
31  1 toggle public void setRetriever(ValueRetriever resolver) {
32  1 this.retriever = resolver;
33    }
34   
 
35  0 toggle public String getNullValue() {
36  0 return nullValue;
37    }
38   
 
39  1 toggle public void setNullValue(String nullValue) {
40  1 this.nullValue = nullValue;
41    }
42   
 
43  0 toggle public PlaceholderStringResolver getResolver() {
44  0 return resolver;
45    }
46   
 
47  1 toggle public void setResolver(PlaceholderStringResolver resolver) {
48  1 this.resolver = resolver;
49    }
50   
51    }