Clover Coverage Report - Kuali Student 1.2-M6-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Sep 12 2011 05:03:53 EDT
../../../../../../../img/srcFileCovDistChart0.png 42% of files have more coverage
11   91   10   1.22
2   55   0.91   4.5
9     1.11  
2    
 
  RichTextInfoHelper       Line # 23 9 0% 8 18 0% 0.0
  RichTextInfoHelper.Properties       Line # 27 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 RichTextInfoHelper
24    {
25    private static final long serialVersionUID = 1;
26   
 
27    public enum Properties implements PropertyEnum
28    {
29    PLAIN ("plain"),
30    FORMATTED ("formatted");
31   
32    private final String key;
33   
 
34  0 toggle private Properties (final String key)
35    {
36  0 this.key = key;
37    }
38   
 
39  0 toggle @Override
40    public String getKey ()
41    {
42  0 return this.key;
43    }
44    }
45    private Data data;
46   
 
47  0 toggle private RichTextInfoHelper (Data data)
48    {
49  0 this.data = data;
50    }
51   
 
52  0 toggle public static RichTextInfoHelper wrap (Data data)
53    {
54  0 if (data == null)
55    {
56  0 return null;
57    }
58  0 return new RichTextInfoHelper (data);
59    }
60   
 
61  0 toggle public Data getData ()
62    {
63  0 return data;
64    }
65   
66   
 
67  0 toggle public void setPlain (String value)
68    {
69  0 data.set (Properties.PLAIN.getKey (), value);
70    }
71   
72   
 
73  0 toggle public String getPlain ()
74    {
75  0 return (String) data.get (Properties.PLAIN.getKey ());
76    }
77   
78   
 
79  0 toggle public void setFormatted (String value)
80    {
81  0 data.set (Properties.FORMATTED.getKey (), value);
82    }
83   
84   
 
85  0 toggle public String getFormatted ()
86    {
87  0 return (String) data.get (Properties.FORMATTED.getKey ());
88    }
89   
90    }
91