Clover Coverage Report - KS Enroll API 1.3.0-SNAPSHOT
Coverage timestamp: Tue Apr 19 2011 12:34:23 EST
../../../../../../img/srcFileCovDistChart7.png 16% of files have more coverage
27   133   16   1.69
0   90   0.59   8
16     1  
2    
 
  EntityInfo       Line # 25 14 0% 6 6 70% 0.7
  EntityInfo.Builder       Line # 80 13 0% 10 8 65.2% 0.65217394
 
  (1)
 
1    /*
2    * Copyright 2010 The Kuali Foundation Licensed under the Educational
3    * Community License, Version 2.0 (the "License"); you may not use
4    * this file except in compliance with the License. You may obtain a
5    * copy of the License at http://www.osedu.org/licenses/ECL-2.0 Unless
6    * required by applicable law or agreed to in writing, software
7    * distributed under the License is distributed on an "AS IS" BASIS,
8    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
9    * implied. See the License for the specific language governing
10    * permissions and limitations under the License.
11    */
12   
13    package org.kuali.student.r2.common.dto;
14   
15    import java.io.Serializable;
16   
17    import javax.xml.bind.annotation.XmlAttribute;
18    import javax.xml.bind.annotation.XmlElement;
19    import javax.xml.bind.annotation.XmlTransient;
20   
21    import org.kuali.student.common.infc.Entity;
22   
23    @SuppressWarnings("serial")
24    @XmlTransient
 
25    public abstract class EntityInfo extends HasAttributesAndMetaInfo implements Entity, Serializable {
26   
27    @XmlElement
28    private String name;
29   
30    @XmlElement
31    private RichTextInfo descr;
32   
33    @XmlAttribute
34    private String typeKey;
35   
36    @XmlAttribute
37    private String stateKey;
38   
39   
 
40  0 toggle protected EntityInfo() {
41  0 super ();
42  0 name = null;
43  0 descr = null;
44  0 typeKey = null;
45  0 stateKey = null;
46    }
47   
 
48  4 toggle protected EntityInfo(Entity builder) {
49  4 super(builder);
50  4 this.name = builder.getName();
51  4 this.descr = builder.getDescr();
52  4 this.typeKey = builder.getTypeKey();
53  4 this.stateKey = builder.getStateKey();
54    }
55   
 
56  8 toggle @Override
57    public String getName() {
58  8 return name;
59    }
60   
 
61  4 toggle @Override
62    public RichTextInfo getDescr() {
63  4 return descr;
64    }
65   
 
66  6 toggle @Override
67    public String getTypeKey() {
68  6 return typeKey;
69    }
70   
 
71  8 toggle @Override
72    public String getStateKey() {
73  8 return stateKey;
74    }
75   
76    /**
77    * The builder class for this abstract EntityInfo.
78    */
79   
 
80    public static class Builder extends HasAttributesAndMetaInfo.Builder implements Entity {
81   
82    private String name;
83    private RichTextInfo descr;
84    private String typeKey;
85    private String stateKey;
86   
 
87  1 toggle public Builder() {}
88   
 
89  0 toggle public Builder(Entity entity) {
90  0 super(entity);
91  0 this.name = entity.getName();
92  0 this.descr = entity.getDescr();
93  0 this.typeKey = entity.getTypeKey();
94  0 this.stateKey = entity.getStateKey();
95    }
96   
 
97  4 toggle @Override
98    public String getName() {
99  4 return name;
100    }
101   
 
102  1 toggle public void setName(String name) {
103  1 this.name = name;
104    }
105   
 
106  4 toggle @Override
107    public RichTextInfo getDescr() {
108  4 return descr;
109    }
110   
 
111  0 toggle public void setDescr(RichTextInfo descr) {
112  0 this.descr = descr;
113    }
114   
 
115  4 toggle @Override
116    public String getTypeKey() {
117  4 return typeKey;
118    }
119   
 
120  4 toggle public void setTypeKey(String typeKey) {
121  4 this.typeKey = typeKey;
122    }
123   
 
124  4 toggle @Override
125    public String getStateKey() {
126  4 return stateKey;
127    }
128   
 
129  1 toggle public void setStateKey(String stateKey) {
130  1 this.stateKey = stateKey;
131    }
132    }
133    }