Clover Coverage Report - KS LUM 1.2-M6-SNAPSHOT (Aggregated)
Coverage timestamp: Sun Sep 11 2011 07:02:50 EDT
../../../../../../../img/srcFileCovDistChart0.png 47% of files have more coverage
16   101   16   1
0   62   1   8
16     1  
2    
 
  LoInfoHelper       Line # 23 14 0% 14 28 0% 0.0
  LoInfoHelper.Properties       Line # 26 2 0% 2 4 0% 0.0
 
No Tests
 
1    /*
2    * Copyright 2010 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.osedu.org/licenses/ECL-2.0
9    *
10    * Unless required by applicable law or agreed to in writing, software
11    * distributed under the License is distributed on an "AS IS" BASIS,
12    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13    * See the License for the specific language governing permissions and
14    * limitations under the License.
15    */
16    package org.kuali.student.lum.common.client.lo;
17   
18   
19    import org.kuali.student.common.assembly.data.Data;
20    import org.kuali.student.common.assembly.helper.PropertyEnum;
21   
22   
 
23    public class LoInfoHelper {
24    private Data data;
25   
 
26    public enum Properties implements PropertyEnum {
27    NAME("name"),
28    DESC("desc"),
29    ID("id"),
30    SEQUENCE("sequence"),
31    METAINFO("metaInfo");
32   
33    private final String key;
34   
 
35  0 toggle private Properties(final String key) {
36  0 this.key = key;
37    }
38   
 
39  0 toggle @Override
40    public String getKey() {
41  0 return this.key;
42    }
43    }
44   
 
45  0 toggle public LoInfoHelper() {
46  0 data = new Data();
47    }
48   
 
49  0 toggle public LoInfoHelper(Data data) {
50  0 this.data = data;
51    }
52   
 
53  0 toggle public Data getData() {
54  0 return data;
55    }
56   
 
57  0 toggle public void setData(Data data) {
58  0 this.data = data;
59    }
60   
 
61  0 toggle public void setName(String name) {
62  0 data.set(LoInfoHelper.Properties.NAME.getKey(), name);
63    }
64   
 
65  0 toggle public String getName() {
66  0 return (String) data.get(Properties.NAME.getKey());
67    }
68   
 
69  0 toggle public void setDesc(Data descData) {
70  0 HelperUtil.setDataField(LoInfoHelper.Properties.DESC, data, descData);
71    }
72   
 
73  0 toggle public Data getDesc() {
74  0 return HelperUtil.getDataField(LoInfoHelper.Properties.DESC, data);
75    }
76   
 
77  0 toggle public void setId(String id) {
78  0 data.set(LoInfoHelper.Properties.ID.getKey(), id);
79    }
80   
 
81  0 toggle public String getId() {
82  0 return (String) data.get(LoInfoHelper.Properties.ID.getKey());
83    }
84   
 
85  0 toggle public void setSequence(String sequence) {
86  0 data.set(LoInfoHelper.Properties.SEQUENCE.getKey(), sequence);
87    }
88   
 
89  0 toggle public String getSequence() {
90  0 return (String) data.get(LoInfoHelper.Properties.SEQUENCE.getKey());
91    }
92   
 
93  0 toggle public void setMetaInfo(Data metaInfoData) {
94  0 HelperUtil.setDataField(LoInfoHelper.Properties.METAINFO, data, metaInfoData);
95    }
96   
 
97  0 toggle public Data getMetaInfo() {
98  0 return HelperUtil.getDataField(LoInfoHelper.Properties.METAINFO, data);
99    }
100   
101    }