Clover Coverage Report - Kuali Student 1.2-M5-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Aug 29 2011 05:04:27 EDT
../../../../../../img/srcFileCovDistChart5.png 36% of files have more coverage
70   241   39   2.06
10   168   0.56   34
34     1.15  
1    
 
  ConstraintMetadata       Line # 30 70 0% 39 66 42.1% 0.42105263
 
  (9)
 
1    /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10    * software distributed under the License is distributed on an "AS IS"
11    * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12    * or implied. See the License for the specific language governing
13    * permissions and limitations under the License.
14    */
15   
16    package org.kuali.student.common.assembly.data;
17   
18    import java.io.Serializable;
19    import java.util.List;
20   
21    import javax.xml.bind.annotation.XmlAccessType;
22    import javax.xml.bind.annotation.XmlAccessorType;
23    import javax.xml.bind.annotation.XmlTransient;
24   
25    /**
26    *
27    * @author nwright
28    */
29    @XmlAccessorType(XmlAccessType.FIELD)
 
30    public class ConstraintMetadata implements Serializable {
31   
32    private static final long serialVersionUID = 1L;
33   
34    @XmlTransient
35    private List<ConstraintMetadata> childConstraints;
36   
37    private String comments;
38   
39    private String desc;
40   
41    private String id;
42   
43    private Integer maxLength;
44   
45    private Integer maxOccurs;
46   
47    private String maxValue;
48   
49    private Integer minLength;
50   
51    protected Integer minOccurs;
52   
53    private String minValue;
54   
55    private boolean serverSide;
56   
57    protected String specialValidator;
58   
59    private String validChars;
60   
61    private String validCharsMessageId;
62   
63    private boolean requiredForNextState = false;
64   
65    private String nextState;
66   
 
67  0 toggle public List<ConstraintMetadata> getChildConstraints() {
68  0 return childConstraints;
69    }
70   
 
71  0 toggle public void setChildConstraints(List<ConstraintMetadata> childConstraints) {
72  0 this.childConstraints = childConstraints;
73    }
74   
 
75  0 toggle public String getComments() {
76  0 return comments;
77    }
78   
 
79  32 toggle public void setComments(String comments) {
80  32 this.comments = comments;
81    }
82   
 
83  0 toggle public String getDesc() {
84  0 return desc;
85    }
86   
 
87  63 toggle public void setDesc(String desc) {
88  63 this.desc = desc;
89    }
90   
 
91  1781 toggle public String getId() {
92  1781 return id;
93    }
94   
 
95  165 toggle public void setId(String id) {
96  165 this.id = id;
97    }
98   
 
99  150 toggle public Integer getMaxLength() {
100  150 return maxLength;
101    }
102   
 
103  526 toggle public void setMaxLength(Integer maxLength) {
104  526 this.maxLength = maxLength;
105    }
106   
 
107  37 toggle public Integer getMaxOccurs() {
108  37 return maxOccurs;
109    }
110   
 
111  665 toggle public void setMaxOccurs(Integer maxOccurs) {
112  665 this.maxOccurs = maxOccurs;
113    }
114   
 
115  0 toggle public String getMaxValue() {
116  0 return maxValue;
117    }
118   
 
119  13 toggle public void setMaxValue(String maxValue) {
120  13 this.maxValue = maxValue;
121    }
122   
 
123  194 toggle public Integer getMinLength() {
124  194 return minLength;
125    }
126   
 
127  384 toggle public void setMinLength(Integer minLength) {
128  384 this.minLength = minLength;
129    }
130   
 
131  56 toggle public Integer getMinOccurs() {
132  56 return minOccurs;
133    }
134   
 
135  218 toggle public void setMinOccurs(Integer minOccurs) {
136  218 this.minOccurs = minOccurs;
137    }
138   
 
139  0 toggle public String getMinValue() {
140  0 return minValue;
141    }
142   
 
143  28 toggle public void setMinValue(String minValue) {
144  28 this.minValue = minValue;
145    }
146   
 
147  264 toggle public boolean isServerSide() {
148  264 return serverSide;
149    }
150   
 
151  71 toggle public void setServerSide(boolean serverSide) {
152  71 this.serverSide = serverSide;
153    }
154   
 
155  0 toggle public String getSpecialValidator() {
156  0 return specialValidator;
157    }
158   
 
159  20 toggle public void setSpecialValidator(String specialValidator) {
160  20 this.specialValidator = specialValidator;
161    }
162   
 
163  37 toggle public String getValidChars() {
164  37 return validChars;
165    }
166   
 
167  256 toggle public void setValidChars(String validChars) {
168  256 this.validChars = validChars;
169    }
170   
 
171  0 toggle public String getValidCharsMessageId() {
172  0 return validCharsMessageId;
173    }
174   
 
175  234 toggle public void setValidCharsMessageId(String validCharsMessageId) {
176  234 this.validCharsMessageId = validCharsMessageId;
177    }
178   
 
179  5 toggle public boolean isRequiredForNextState() {
180  5 return requiredForNextState;
181    }
182   
 
183  80 toggle public void setRequiredForNextState(boolean requiredForNextState) {
184  80 this.requiredForNextState = requiredForNextState;
185    }
186   
 
187  5 toggle public String getNextState() {
188  5 return nextState;
189    }
190   
 
191  80 toggle public void setNextState(String nextState) {
192  80 this.nextState = nextState;
193    }
194   
 
195  0 toggle @Override
196    public String toString() {
197  0 StringBuilder sb = new StringBuilder();
198  0 _toString(sb);
199  0 return sb.toString();
200    }
201   
 
202  0 toggle protected void _toString(StringBuilder sb) {
203  0 sb.append("comments: ");
204  0 sb.append(comments);
205  0 sb.append(", desc: ");
206  0 sb.append(desc);
207  0 sb.append(", id: ");
208  0 sb.append(id);
209  0 sb.append(", maxLength: ");
210  0 sb.append(null != maxLength ? maxLength.toString() : "null");
211  0 sb.append(", maxOccurs: ");
212  0 sb.append(null != maxOccurs ? maxOccurs.toString() : "null");
213  0 sb.append(", maxValue: ");
214  0 sb.append(maxValue);
215  0 sb.append(", minLength: ");
216  0 sb.append(null != minLength ? minLength.toString() : "null");
217  0 sb.append(", minOccurs: ");
218  0 sb.append(null != minOccurs ? minOccurs.toString() : "null");
219  0 sb.append(", minValue: ");
220  0 sb.append(minValue);
221  0 sb.append(", serverSide: ");
222  0 sb.append(Boolean.toString(serverSide));
223  0 sb.append(", specialValidator: ");
224  0 sb.append(specialValidator);
225  0 sb.append(", validCharsMessageId: ");
226  0 sb.append(validCharsMessageId);
227  0 sb.append(", validChars: ");
228  0 sb.append(validChars);
229  0 sb.append(", requiredForNextState: ");
230  0 sb.append(Boolean.toString(requiredForNextState));
231  0 sb.append(", nextState: ");
232  0 sb.append(nextState);
233  0 sb.append(", ChildConstraints: {");
234  0 if (null != childConstraints) {
235  0 for (ConstraintMetadata constraint : childConstraints) {
236  0 constraint._toString(sb);
237    }
238    }
239  0 sb.append("}");
240    }
241    }