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
21   119   14   1.5
0   84   0.67   7
14     1  
2    
 
  AttributeInfo       Line # 25 11 0% 5 16 0% 0.0
  AttributeInfo.Builder       Line # 73 10 0% 9 19 0% 0.0
 
No Tests
 
1    /*
2    * Copyright 2011 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may
3    * not use this file except in compliance with the License. You may obtain a copy of the License at
4    * http://www.osedu.org/licenses/ECL-2.0 Unless required by applicable law or agreed to in writing, software distributed
5    * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
6    * implied. See the License for the specific language governing permissions and limitations under the License.
7    */
8    package org.kuali.student.contract.model.test.source;
9   
10    import java.io.Serializable;
11    import java.util.List;
12   
13    import javax.xml.bind.annotation.XmlAccessType;
14    import javax.xml.bind.annotation.XmlAccessorType;
15    import javax.xml.bind.annotation.XmlAnyElement;
16    import javax.xml.bind.annotation.XmlElement;
17    import javax.xml.bind.annotation.XmlType;
18   
19    import org.kuali.student.contract.model.test.source.Attribute;
20    import org.kuali.student.contract.model.test.source.ModelBuilder;
21    import org.w3c.dom.Element;
22   
23    @XmlAccessorType(XmlAccessType.FIELD)
24    @XmlType(name = "AttributeInfo", propOrder = {"id", "key", "value", "_futureElements"})
 
25    public final class AttributeInfo implements Attribute, Serializable {
26   
27    private static final long serialVersionUID = 1L;
28   
29    @XmlElement
30    private final String id;
31   
32    @XmlElement
33    private final String key;
34   
35    @XmlElement
36    private final String value;
37   
38    @XmlAnyElement
39    private final List<Element> _futureElements;
40   
 
41  0 toggle private AttributeInfo() {
42  0 this.id = null;
43  0 this.key = null;
44  0 this.value = null;
45  0 this._futureElements = null;
46    }
47   
 
48  0 toggle private AttributeInfo(Attribute builder) {
49  0 this.id = builder.getId();
50  0 this.key = builder.getKey();
51  0 this.value = builder.getValue();
52  0 this._futureElements = null;
53    }
54   
 
55  0 toggle @Override
56    public String getId() {
57  0 return id;
58    }
59   
60   
 
61  0 toggle @Override
62    public String getKey() {
63  0 return key;
64    }
65   
66   
 
67  0 toggle @Override
68    public String getValue() {
69  0 return value;
70    }
71   
72   
 
73    public static class Builder implements ModelBuilder<AttributeInfo>, Attribute {
74   
75    private String id;
76    private String value;
77    private String key;
78   
 
79  0 toggle public Builder() {
80    }
81   
 
82  0 toggle public Builder(Attribute attInfo) {
83  0 this.id = attInfo.getId();
84  0 this.key = attInfo.getKey();
85  0 this.value = attInfo.getValue();
86    }
87   
 
88  0 toggle public AttributeInfo build() {
89  0 return new AttributeInfo(this);
90    }
91   
 
92  0 toggle @Override
93    public String getId() {
94  0 return id;
95    }
96   
 
97  0 toggle @Override
98    public String getKey() {
99  0 return key;
100    }
101   
 
102  0 toggle @Override
103    public String getValue() {
104  0 return value;
105    }
106   
 
107  0 toggle public void setId(String id) {
108  0 this.id = id;
109    }
110   
 
111  0 toggle public void setKey(String key) {
112  0 this.key = key;
113    }
114   
 
115  0 toggle public void setValue(String val) {
116  0 this.value = val;
117    }
118    }
119    }