Clover Coverage Report - KS Contract Documentation Generator 0.0.1-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
../../../../../../../img/srcFileCovDistChart0.png 0% of files have more coverage
27   128   16   1.69
0   91   0.59   8
16     1  
2    
 
  EntityInfo       Line # 24 14 0% 6 20 0% 0.0
  EntityInfo.Builder       Line # 74 13 0% 10 23 0% 0.0
 
No Tests
 
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    package org.kuali.student.contract.model.test.source;
13   
14    import java.io.Serializable;
15   
16    import javax.xml.bind.annotation.XmlAttribute;
17    import javax.xml.bind.annotation.XmlElement;
18    import javax.xml.bind.annotation.XmlTransient;
19   
20    import org.kuali.student.contract.model.test.source.Entity;
21   
22    @SuppressWarnings("serial")
23    @XmlTransient
 
24    public abstract class EntityInfo extends HasAttributesAndMetaInfo implements Entity, Serializable {
25   
26    @XmlElement
27    private String name;
28    @XmlElement
29    private RichTextInfo descr;
30    @XmlElement(required = true)
31    private String typeKey;
32    @XmlAttribute(required = true)
33    private String stateKey;
34   
 
35  0 toggle protected EntityInfo() {
36  0 super();
37  0 name = null;
38  0 descr = null;
39  0 typeKey = null;
40  0 stateKey = null;
41    }
42   
 
43  0 toggle protected EntityInfo(Entity builder) {
44  0 super(builder);
45  0 this.name = builder.getName();
46  0 this.descr = builder.getDescr();
47  0 this.typeKey = builder.getTypeKey();
48  0 this.stateKey = builder.getStateKey();
49    }
50   
 
51  0 toggle @Override
52    public String getName() {
53  0 return name;
54    }
55   
 
56  0 toggle @Override
57    public RichTextInfo getDescr() {
58  0 return descr;
59    }
60   
 
61  0 toggle @Override
62    public String getTypeKey() {
63  0 return typeKey;
64    }
65   
 
66  0 toggle @Override
67    public String getStateKey() {
68  0 return stateKey;
69    }
70   
71    /**
72    * The builder class for this abstract EntityInfo.
73    */
 
74    public static class Builder extends HasAttributesAndMetaInfo.Builder implements Entity {
75   
76    private String name;
77    private RichTextInfo descr;
78    private String typeKey;
79    private String stateKey;
80   
 
81  0 toggle public Builder() {
82    }
83   
 
84  0 toggle public Builder(Entity entity) {
85  0 super(entity);
86  0 this.name = entity.getName();
87  0 this.descr = entity.getDescr();
88  0 this.typeKey = entity.getTypeKey();
89  0 this.stateKey = entity.getStateKey();
90    }
91   
 
92  0 toggle @Override
93    public String getName() {
94  0 return name;
95    }
96   
 
97  0 toggle public void setName(String name) {
98  0 this.name = name;
99    }
100   
 
101  0 toggle @Override
102    public RichTextInfo getDescr() {
103  0 return descr;
104    }
105   
 
106  0 toggle public void setDescr(RichTextInfo descr) {
107  0 this.descr = descr;
108    }
109   
 
110  0 toggle @Override
111    public String getTypeKey() {
112  0 return typeKey;
113    }
114   
 
115  0 toggle public void setTypeKey(String typeKey) {
116  0 this.typeKey = typeKey;
117    }
118   
 
119  0 toggle @Override
120    public String getStateKey() {
121  0 return stateKey;
122    }
123   
 
124  0 toggle public void setStateKey(String stateKey) {
125  0 this.stateKey = stateKey;
126    }
127    }
128    }