| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
package org.kuali.student.contract.model.test.source; |
| 10 |
|
|
| 11 |
|
import java.io.Serializable; |
| 12 |
|
import java.util.Date; |
| 13 |
|
import java.util.List; |
| 14 |
|
|
| 15 |
|
import javax.xml.bind.annotation.XmlAccessType; |
| 16 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
| 17 |
|
import javax.xml.bind.annotation.XmlAnyElement; |
| 18 |
|
import javax.xml.bind.annotation.XmlAttribute; |
| 19 |
|
import javax.xml.bind.annotation.XmlElement; |
| 20 |
|
import javax.xml.bind.annotation.XmlType; |
| 21 |
|
|
| 22 |
|
import org.kuali.student.contract.model.test.source.ModelBuilder; |
| 23 |
|
import org.kuali.student.contract.model.test.source.State; |
| 24 |
|
import org.w3c.dom.Element; |
| 25 |
|
|
| 26 |
|
@SuppressWarnings("serial") |
| 27 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
| 28 |
|
@XmlType(name = "StateInfo", propOrder = {"key", "name", "descr", "effectiveDate", "expirationDate", "attributes", "_futureElements"}) |
|
|
|
| 0% |
Uncovered Elements: 29 (29) |
Complexity: 9 |
Complexity Density: 0.5 |
|
| 29 |
|
public class StateInfo extends HasAttributesInfo implements State, Serializable { |
| 30 |
|
|
| 31 |
|
@XmlAttribute |
| 32 |
|
private final String key; |
| 33 |
|
|
| 34 |
|
@XmlElement |
| 35 |
|
private final String name; |
| 36 |
|
|
| 37 |
|
@XmlElement |
| 38 |
|
private final String descr; |
| 39 |
|
|
| 40 |
|
@XmlElement |
| 41 |
|
private final Date effectiveDate; |
| 42 |
|
|
| 43 |
|
@XmlElement |
| 44 |
|
private final Date expirationDate; |
| 45 |
|
|
| 46 |
|
@XmlAnyElement |
| 47 |
|
private final List<Element> _futureElements; |
| 48 |
|
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
| 49 |
0
|
private StateInfo() {... |
| 50 |
0
|
key = null; |
| 51 |
0
|
name = null; |
| 52 |
0
|
descr = null; |
| 53 |
0
|
effectiveDate = null; |
| 54 |
0
|
expirationDate = null; |
| 55 |
0
|
_futureElements = null; |
| 56 |
|
} |
| 57 |
|
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 3 |
Complexity Density: 0.43 |
|
| 58 |
0
|
private StateInfo(State builder) {... |
| 59 |
0
|
super(builder); |
| 60 |
0
|
this.key = builder.getKey(); |
| 61 |
0
|
this.name = builder.getName(); |
| 62 |
0
|
this.descr = builder.getDescr(); |
| 63 |
0
|
this.effectiveDate = null != builder.getEffectiveDate() ? new Date(builder.getEffectiveDate().getTime()) : null; |
| 64 |
0
|
this.expirationDate = null != builder.getExpirationDate() ? new Date(builder.getExpirationDate().getTime()) : null; |
| 65 |
0
|
this._futureElements = null; |
| 66 |
|
} |
| 67 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 68 |
0
|
@Override... |
| 69 |
|
public String getKey() { |
| 70 |
0
|
return key; |
| 71 |
|
} |
| 72 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 73 |
0
|
@Override... |
| 74 |
|
public String getName() { |
| 75 |
0
|
return name; |
| 76 |
|
} |
| 77 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 78 |
0
|
@Override... |
| 79 |
|
public String getDescr() { |
| 80 |
0
|
return descr; |
| 81 |
|
} |
| 82 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 83 |
0
|
@Override... |
| 84 |
|
public Date getEffectiveDate() { |
| 85 |
0
|
return effectiveDate; |
| 86 |
|
} |
| 87 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 88 |
0
|
@Override... |
| 89 |
|
public Date getExpirationDate() { |
| 90 |
0
|
return expirationDate; |
| 91 |
|
} |
| 92 |
|
|
|
|
|
| 0% |
Uncovered Elements: 29 (29) |
Complexity: 13 |
Complexity Density: 0.81 |
|
| 93 |
|
public static class Builder extends HasAttributesInfo.Builder implements ModelBuilder<StateInfo>, State { |
| 94 |
|
private String key; |
| 95 |
|
private String name; |
| 96 |
|
private String descr; |
| 97 |
|
private Date effectiveDate; |
| 98 |
|
private Date expirationDate; |
| 99 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 100 |
0
|
public Builder() {}... |
| 101 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
| 102 |
0
|
public Builder(State stateInfo) {... |
| 103 |
0
|
this.key = stateInfo.getKey(); |
| 104 |
0
|
this.name = stateInfo.getName(); |
| 105 |
0
|
this.descr = stateInfo.getDescr(); |
| 106 |
0
|
this.effectiveDate = stateInfo.getEffectiveDate(); |
| 107 |
0
|
this.expirationDate = stateInfo.getExpirationDate(); |
| 108 |
|
} |
| 109 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 110 |
0
|
public StateInfo build() {... |
| 111 |
0
|
return new StateInfo(this); |
| 112 |
|
} |
| 113 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 114 |
0
|
public String getKey() {... |
| 115 |
0
|
return key; |
| 116 |
|
} |
| 117 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 118 |
0
|
public void setKey(String key) {... |
| 119 |
0
|
this.key = key; |
| 120 |
|
} |
| 121 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 122 |
0
|
public String getName() {... |
| 123 |
0
|
return name; |
| 124 |
|
} |
| 125 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 126 |
0
|
public void setName(String name) {... |
| 127 |
0
|
this.name = name; |
| 128 |
|
} |
| 129 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 130 |
0
|
public String getDescr() {... |
| 131 |
0
|
return descr; |
| 132 |
|
} |
| 133 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 134 |
0
|
public void setDescr(String descr) {... |
| 135 |
0
|
this.descr = descr; |
| 136 |
|
} |
| 137 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 138 |
0
|
public Date getEffectiveDate() {... |
| 139 |
0
|
return effectiveDate; |
| 140 |
|
} |
| 141 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 142 |
0
|
public void setEffectiveDate(Date effectiveDate) {... |
| 143 |
0
|
this.effectiveDate = effectiveDate; |
| 144 |
|
} |
| 145 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 146 |
0
|
public Date getExpirationDate() {... |
| 147 |
0
|
return expirationDate; |
| 148 |
|
} |
| 149 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 150 |
0
|
public void setExpirationDate(Date expirationDate) {... |
| 151 |
0
|
this.expirationDate = expirationDate; |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
} |
| 155 |
|
} |