Clover Coverage Report - Kuali Student 1.2-M5-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Aug 29 2011 05:04:27 EDT
../../../../../../img/srcFileCovDistChart7.png 33% of files have more coverage
39   184   30   1.39
4   131   0.77   7
28     1.07  
4    
 
  UILookupData       Line # 13 39 0% 30 25 64.8% 0.64788735
  UILookupData.Usage       Line # 41 0 - 0 0 - -1.0
  UILookupData.Widget       Line # 48 0 - 0 0 - -1.0
  UILookupData.WidgetOption       Line # 54 0 - 0 0 - -1.0
 
  (4)
 
1    package org.kuali.student.common.assembly.data;
2   
3    import java.util.ArrayList;
4    import java.util.List;
5    import java.util.Map;
6   
7    import javax.xml.bind.annotation.XmlElement;
8    import javax.xml.bind.annotation.XmlElementWrapper;
9   
10    import org.kuali.student.common.dictionary.dto.CommonLookup;
11    import org.kuali.student.common.search.dto.SortDirection;
12   
 
13    public class UILookupData extends CommonLookup {
14   
15    private static final long serialVersionUID = 1L;
16   
17    private String id; // unique ID of this lookup
18    private String name; // name of this search
19    private String desc;
20    private String title; // advanced search window title
21   
22    @XmlElement(name = "result")
23    @XmlElementWrapper
24    private List<LookupResultMetadata> results;
25   
26    private LookupQosMetadata qosMetadata;
27   
28    private String resultDisplayKey;
29   
30    private String resultSortKey;
31   
32    private Integer minQuerySize; // minimum size of query before initiating
33    // search.
34   
35    private SortDirection sortDirection;
36   
37    // how a search criteria will be used. ADVANCED_CUSTOM is shown on both
38    // advanced
39    // and custom screens of the advanced search lightbox
40    // TODO is DEFAULT needed? it has 0 references
 
41    public enum Usage {
42    DEFAULT, ADVANCED, CUSTOM, ADVANCED_CUSTOM
43    }
44   
45    private Usage usage;
46   
47    // TODO BUTTON has 0 references. Is it needed?
 
48    public enum Widget {
49    NO_WIDGET, SUGGEST_BOX, ADVANCED_LIGHTBOX, DROP_DOWN, BUTTON, CHECKBOX_LIST, RADIO
50    }
51   
52    private Widget widget;
53   
 
54    public enum WidgetOption {
55    ADVANCED_LIGHTBOX_PREVIEW_MODE, ADVANCED_LIGHTBOX_ACTION_LABEL
56    }
57   
58    private Map<WidgetOption, String> widgetOptions;
59   
 
60  21 toggle public Map<WidgetOption, String> getWidgetOptions() {
61  21 return widgetOptions;
62    }
63   
 
64  0 toggle public void setWidgetOptions(Map<WidgetOption, String> widgetOptions) {
65  0 this.widgetOptions = widgetOptions;
66    }
67   
 
68  0 toggle public String getWidgetOptionValue(WidgetOption widgetOption) {
69  0 if (widgetOptions == null)
70  0 return null;
71  0 return widgetOptions.get(widgetOption);
72    }
73   
 
74  21 toggle public String getName() {
75  21 return name;
76    }
77   
 
78  40 toggle public void setName(String name) {
79  40 this.name = name;
80    }
81   
 
82  21 toggle public String getDesc() {
83  21 return desc;
84    }
85   
 
86  40 toggle public void setDesc(String desc) {
87  40 this.desc = desc;
88    }
89   
 
90  21 toggle public String getTitle() {
91  21 return title;
92    }
93   
 
94  14 toggle public void setTitle(String title) {
95  14 this.title = title;
96    }
97   
 
98  21 toggle public List<LookupResultMetadata> getResults() {
99  21 if (results == null) {
100  0 results = new ArrayList<LookupResultMetadata>();
101    }
102  21 return results;
103    }
104   
 
105  40 toggle public void setResults(List<LookupResultMetadata> results) {
106  40 this.results = results;
107    }
108   
 
109  21 toggle public String getResultDisplayKey() {
110  21 return resultDisplayKey;
111    }
112   
 
113  40 toggle public void setResultDisplayKey(String resultDisplayKey) {
114  40 this.resultDisplayKey = resultDisplayKey;
115    }
116   
 
117  21 toggle public String getResultSortKey() {
118  21 return resultSortKey;
119    }
120   
 
121  40 toggle public void setResultSortKey(String resultSortKey) {
122  40 this.resultSortKey = resultSortKey;
123    }
124   
 
125  21 toggle public LookupQosMetadata getQosMetadata() {
126  21 return qosMetadata;
127    }
128   
 
129  0 toggle public void setQosMetadata(LookupQosMetadata qosMetadata) {
130  0 this.qosMetadata = qosMetadata;
131    }
132   
 
133  21 toggle public String getId() {
134  21 return id;
135    }
136   
 
137  40 toggle public void setId(String id) {
138  40 this.id = id;
139    }
140   
 
141  33 toggle public Usage getUsage() {
142  33 return usage;
143    }
144   
 
145  6 toggle public void setUsage(Usage usage) {
146  6 this.usage = usage;
147    }
148   
 
149  42 toggle public Widget getWidget() {
150  42 return widget;
151    }
152   
 
153  40 toggle public void setWidget(Widget widget) {
154  40 this.widget = widget;
155    }
156   
 
157  21 toggle public Integer getMinQuerySize() {
158  21 return minQuerySize;
159    }
160   
 
161  0 toggle public void setMinQuerySize(Integer minQuerySize) {
162  0 this.minQuerySize = minQuerySize;
163    }
164   
 
165  0 toggle public String toString() {
166  0 StringBuffer sb = new StringBuffer();
167  0 sb.append(id);
168  0 sb.append(",");
169  0 sb.append(",");
170  0 sb.append(name);
171  0 sb.append(",");
172  0 sb.append(desc);
173  0 return sb.toString();
174    }
175   
 
176  21 toggle public SortDirection getSortDirection() {
177  21 return sortDirection;
178    }
179   
 
180  0 toggle public void setSortDirection(SortDirection sortDirection) {
181  0 this.sortDirection = sortDirection;
182    }
183   
184    }