Clover Coverage Report - KS Common 1.2-M3-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Jun 6 2011 05:37:04 EDT
../../../../../../img/srcFileCovDistChart6.png 38% of files have more coverage
27   164   28   1
2   110   1.04   13.5
27     1.04  
2    
 
  LookupParamMetadata       Line # 25 27 0% 28 22 60.7% 0.60714287
  LookupParamMetadata.Widget       Line # 45 0 - 0 0 - -1.0
 
  (4)
 
1    /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10    * software distributed under the License is distributed on an "AS IS"
11    * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12    * or implied. See the License for the specific language governing
13    * permissions and limitations under the License.
14    */
15   
16    package org.kuali.student.common.assembly.data;
17   
18    import java.io.Serializable;
19    import java.util.ArrayList;
20   
21    import org.kuali.student.common.assembly.data.LookupMetadata.Usage;
22    import org.kuali.student.common.assembly.data.Metadata.WriteAccess;
23   
24   
 
25    public class LookupParamMetadata implements Serializable {
26   
27    private static final long serialVersionUID = 1L;
28   
29    private String key;
30    private LookupMetadata childLookup;
31    private Metadata.WriteAccess writeAccess;
32    private Data.DataType dataType;
33    private boolean optional;
34   
35    private ArrayList<String> defaultValueList;
36    private String defaultValueString;
37    private String fieldPath;
38   
39    private String name;
40    private String desc;
41    private boolean caseSensitive;
42    private Usage usage;
43   
44    //TODO none of these are used
 
45    public enum Widget {
46    SUGGEST_BOX, DROPDOWN_LIST, RADIO_BUTTONS, CHECK_BOXES, TEXT_BOX, CALENDAR, PICKER
47    }
48   
49    private Widget widget;
50   
 
51  0 toggle public LookupMetadata getChildLookup() {
52  0 return childLookup;
53    }
54   
 
55  0 toggle public void setChildLookup(LookupMetadata childLookup) {
56  0 this.childLookup = childLookup;
57    }
58   
 
59  0 toggle public Usage getUsage() {
60  0 return usage;
61    }
62   
 
63  44 toggle public void setUsage(Usage usage) {
64  44 this.usage = usage;
65    }
66   
 
67  0 toggle public Widget getWidget() {
68  0 return widget;
69    }
70   
 
71  31 toggle public void setWidget(Widget widget) {
72  31 this.widget = widget;
73    }
74   
 
75  0 toggle public String getKey() {
76  0 return key;
77    }
78   
 
79  122 toggle public void setKey(String key) {
80  122 this.key = key;
81    }
82   
 
83  0 toggle public boolean isOptional() {
84  0 return optional;
85    }
86   
 
87  122 toggle public void setOptional(boolean optional) {
88  122 this.optional = optional;
89    }
90   
 
91  2 toggle public Data.DataType getDataType() {
92  2 return dataType;
93    }
94   
 
95  115 toggle public void setDataType(Data.DataType dataType) {
96  115 this.dataType = dataType;
97    }
98   
 
99  18 toggle public WriteAccess getWriteAccess() {
100  18 return writeAccess;
101    }
102   
 
103  110 toggle public void setWriteAccess(WriteAccess writeAccess) {
104  110 this.writeAccess = writeAccess;
105    }
106   
 
107  2 toggle public String getName() {
108  2 return name;
109    }
110   
 
111  122 toggle public void setName(String name) {
112  122 this.name = name;
113    }
114   
 
115  0 toggle public String getDesc() {
116  0 return desc;
117    }
118   
 
119  122 toggle public void setDesc(String desc) {
120  122 this.desc = desc;
121    }
122   
123   
 
124  0 toggle public boolean isCaseSensitive() {
125  0 return caseSensitive;
126    }
127   
 
128  122 toggle public void setCaseSensitive(boolean caseSensitive) {
129  122 this.caseSensitive = caseSensitive;
130    }
131   
 
132  0 toggle @Override
133    public String toString() {
134  0 return "LookupParamMetadata[key=" + key + ", name=" + name
135    + ", caseSensitive=" + caseSensitive + ", childLookup="
136    + childLookup + ", dataType=" + dataType + ", defaultValue="
137    + defaultValueList==null?defaultValueString:defaultValueList.toString() + ", optional=" + optional + ", usage=" + usage
138    + ", widget=" + widget + ", writeAccess=" + writeAccess + "]";
139    }
140   
 
141  10 toggle public ArrayList<String> getDefaultValueList() {
142  10 return defaultValueList;
143    }
144   
 
145  93 toggle public void setDefaultValueList(ArrayList<String> defaultValueList) {
146  93 this.defaultValueList = defaultValueList;
147    }
148   
 
149  14 toggle public String getDefaultValueString() {
150  14 return defaultValueString;
151    }
152   
 
153  93 toggle public void setDefaultValueString(String defaultValueString) {
154  93 this.defaultValueString = defaultValueString;
155    }
156   
 
157  0 toggle public String getFieldPath() {
158  0 return fieldPath;
159    }
160   
 
161  93 toggle public void setFieldPath(String fieldPath) {
162  93 this.fieldPath = fieldPath;
163    }
164    }