Clover Coverage Report - Kuali Student 1.3.0-SNAPSHOT (Aggregated)
Coverage timestamp: Thu Apr 28 2011 05:03:32 EDT
../../../../../../../img/srcFileCovDistChart0.png 2% of files have more coverage
77   238   51   1.97
24   196   0.66   19.5
39     1.31  
2    
 
  CluSetHelper       Line # 24 75 0% 49 136 0% 0.0
  CluSetHelper.Properties       Line # 28 2 0% 2 4 0% 0.0
 
No Tests
 
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.lum.common.client.widgets;
17   
18    import java.util.Date;
19   
20    import org.kuali.student.common.assembly.data.Data;
21    import org.kuali.student.common.assembly.helper.PropertyEnum;
22    import org.kuali.student.lum.common.client.lo.MetaInfoHelper;
23   
 
24    public class CluSetHelper {
25   
26    private static final long serialVersionUID = 1;
27   
 
28    public enum Properties implements PropertyEnum
29    {
30    ID ("id"),
31    ORGANIZATION ("organization"),
32    DESCRIPTION ("description"),
33    EFFECTIVE_DATE ("effectiveDate"),
34    EXPIRATION_DATE ("expirationDate"),
35    APPROVED_CLUS ("approvedClus"),
36    PROPOSED_CLUS ("proposedClus"),
37    // This is the union of APPROVED_CLUS, and PROPOSED_CLUS
38    ALL_CLUS ("allClus"),
39    CLUSETS ("clusets"),
40    CLU_SET_RANGE ("clusetRange"),
41    CLU_SET_RANGE_VIEW_DETAILS ("cluSetRangeViewDetails"),
42    META_INFO ("metaInfo"),
43    NAME ("name"),
44    STATE ("state"),
45    TYPE ("type"),
46    REUSABLE ("reusable"),
47    REFERENCEABLE ("referenceable");
48   
49    private final String key;
50   
 
51  0 toggle private Properties (final String key) {
52  0 this.key = key;
53    }
54   
 
55  0 toggle @Override
56    public String getKey() {
57  0 return this.key;
58    }
59    }
60    private Data data;
61   
 
62  0 toggle public CluSetHelper(Data data) {
63  0 this.data = data;
64    }
65   
 
66  0 toggle public static CluSetHelper wrap(Data data) {
67  0 if (data == null) {
68  0 return null;
69    }
70  0 return new CluSetHelper(data);
71    }
72   
 
73  0 toggle public Data getData() {
74  0 return this.data;
75    }
76   
 
77  0 toggle public void setId(String value) {
78  0 data.set(Properties.ID.getKey(), value);
79    }
80   
 
81  0 toggle public String getId() {
82  0 return (String) data.get(Properties.ID.getKey());
83    }
84   
 
85  0 toggle public void setOrganization(String value) {
86  0 data.set(Properties.ORGANIZATION.getKey(), value);
87    }
 
88  0 toggle public String getOrganization() {
89  0 return (String) data.get(Properties.ORGANIZATION.getKey());
90    }
91   
 
92  0 toggle public void setDescription(String value) {
93  0 data.set(Properties.DESCRIPTION.getKey(), value);
94    }
 
95  0 toggle public String getDescription() {
96  0 return (String) data.get (Properties.DESCRIPTION.getKey ());
97    }
98   
 
99  0 toggle public void setEffectiveDate(Date value) {
100  0 data.set(Properties.EFFECTIVE_DATE.getKey(), value);
101    }
 
102  0 toggle public Date getEffectiveDate() {
103  0 return (Date) data.get(Properties.EFFECTIVE_DATE.getKey());
104    }
105   
 
106  0 toggle public void setExpirationDate(Date value) {
107  0 data.set(Properties.EXPIRATION_DATE.getKey(), value);
108    }
 
109  0 toggle public Date getExpirationDate() {
110  0 return (Date) data.get(Properties.EXPIRATION_DATE.getKey());
111    }
112   
 
113  0 toggle public void setMetaInfo (MetaInfoHelper value) {
114  0 data.set (Properties.META_INFO.getKey (), (value == null) ? null : value.getData ());
115    }
 
116  0 toggle public MetaInfoHelper getMetaInfo () {
117  0 return MetaInfoHelper.wrap ((Data) data.get (Properties.META_INFO.getKey ()));
118    }
119   
 
120  0 toggle public void setName(String name) {
121  0 data.set(Properties.NAME.getKey(), name);
122    }
 
123  0 toggle public String getName() {
124  0 return (String) data.get(Properties.NAME.getKey());
125    }
126   
 
127  0 toggle public void setState(String state) {
128  0 data.set(Properties.STATE.getKey(), state);
129    }
 
130  0 toggle public String getState() {
131  0 return (String) data.get(Properties.STATE.getKey());
132    }
133   
 
134  0 toggle public void setType(String type) {
135  0 data.set(Properties.TYPE.getKey(), type);
136    }
 
137  0 toggle public String getType() {
138  0 return (String) data.get(Properties.TYPE.getKey());
139    }
140   
 
141  0 toggle public void setReusable(Boolean reusable) {
142  0 Boolean newValue = reusable;
143  0 if (reusable == null) {
144  0 newValue = new Boolean(false);
145    }
146  0 data.set(Properties.REUSABLE.getKey(), newValue);
147    }
 
148  0 toggle public Boolean getReusable() {
149  0 Boolean reUsable = (Boolean) data.get(Properties.REUSABLE.getKey());
150  0 if (reUsable == null) {
151  0 reUsable = new Boolean(false);
152    }
153  0 return reUsable;
154    }
155   
 
156  0 toggle public void setReferenceable(Boolean referenceable) {
157  0 Boolean newValue = referenceable;
158  0 if (referenceable == null) {
159  0 newValue = new Boolean(false);
160    }
161  0 data.set(Properties.REFERENCEABLE.getKey(), newValue);
162    }
 
163  0 toggle public Boolean getReferenceable() {
164  0 Boolean referenceable = (Boolean) data.get(Properties.REFERENCEABLE.getKey());
165  0 if (referenceable == null) {
166  0 referenceable = new Boolean(false);
167    }
168  0 return referenceable;
169    }
170   
 
171  0 toggle public void setApprovedClus(Data value) {
172  0 data.set(Properties.APPROVED_CLUS.getKey(), value);
173    }
 
174  0 toggle public Data getApprovedClus() {
175  0 Data approvedClusData = data.get(Properties.APPROVED_CLUS.getKey());
176  0 if (approvedClusData == null) {
177  0 approvedClusData = new Data();
178  0 setApprovedClus(approvedClusData);
179    }
180  0 return approvedClusData;
181    }
 
182  0 toggle public void setProposedClus(Data value) {
183  0 data.set(Properties.PROPOSED_CLUS.getKey(), value);
184    }
 
185  0 toggle public Data getProposedClus() {
186  0 Data proposedClusData = data.get(Properties.PROPOSED_CLUS.getKey());
187  0 if (proposedClusData == null) {
188  0 proposedClusData = new Data();
189  0 setProposedClus(proposedClusData);
190    }
191  0 return proposedClusData;
192    }
 
193  0 toggle public void setAllClus(Data value) {
194  0 data.set(Properties.ALL_CLUS.getKey(), value);
195    }
 
196  0 toggle public Data getAllClus() {
197  0 Data allClusData = data.get(Properties.ALL_CLUS.getKey());
198  0 if (allClusData == null) {
199  0 allClusData = new Data();
200  0 setAllClus(allClusData);
201    }
202  0 return allClusData;
203    }
 
204  0 toggle public void setCluSets(Data value) {
205  0 data.set(Properties.CLUSETS.getKey(), value);
206    }
 
207  0 toggle public Data getCluSets() {
208  0 Data cluSetData = data.get(Properties.CLUSETS.getKey());
209  0 if (cluSetData == null) {
210  0 cluSetData = new Data();
211  0 setCluSets(cluSetData);
212    }
213  0 return cluSetData;
214    }
 
215  0 toggle public void setCluRangeParams(Data value) {
216  0 data.set(Properties.CLU_SET_RANGE.getKey(), value);
217    }
 
218  0 toggle public CluSetRangeHelper getCluRangeParams() {
219  0 Data cluRangeParamsData = data.get(Properties.CLU_SET_RANGE.getKey());
220  0 if (cluRangeParamsData == null) {
221  0 cluRangeParamsData = new Data();
222  0 setCluRangeParams(cluRangeParamsData);
223    }
224  0 return new CluSetRangeHelper(cluRangeParamsData);
225    }
 
226  0 toggle public void setCluRangeViewDetails(Data value) {
227  0 data.set(Properties.CLU_SET_RANGE_VIEW_DETAILS.getKey(), value);
228    }
 
229  0 toggle public Data getCluRangeViewDetails() {
230  0 Data cluSetRangeViewDetailsData = data.get(Properties.CLU_SET_RANGE_VIEW_DETAILS.getKey());
231  0 if (cluSetRangeViewDetailsData == null) {
232  0 cluSetRangeViewDetailsData = new Data();
233  0 setCluRangeViewDetails(cluSetRangeViewDetailsData);
234    }
235  0 return cluSetRangeViewDetailsData;
236    }
237   
238    }