Clover Coverage Report - KS Common 1.2-M6-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Sep 12 2011 05:50:56 EDT
../../../../../../img/srcFileCovDistChart8.png 14% of files have more coverage
36   193   34   1.12
4   144   0.94   32
32     1.06  
1    
 
  Constraint       Line # 13 36 0% 34 16 77.8% 0.7777778
 
  (13)
 
1    package org.kuali.student.common.dictionary.dto;
2   
3    import java.util.ArrayList;
4    import java.util.List;
5   
6    import javax.xml.bind.annotation.XmlAccessType;
7    import javax.xml.bind.annotation.XmlAccessorType;
8    import javax.xml.bind.annotation.XmlElement;
9   
10    import org.kuali.student.common.validation.dto.ValidationResultInfo.ErrorLevel;
11   
12    @XmlAccessorType(XmlAccessType.FIELD)
 
13    public class Constraint extends BaseConstraint {
14    public static final String UNBOUNDED = "unbounded";
15    public static final String SINGLE = "1";
16    // Constraints
17    @XmlElement
18    protected boolean serverSide;
19    @XmlElement
20    protected String customValidatorClass;
21    @XmlElement
22    protected String locale; // What is locale for?
23    @XmlElement
24    protected String exclusiveMin;
25    @XmlElement
26    protected String inclusiveMax;
27    @XmlElement
28    protected Integer minLength;
29    @XmlElement
30    protected String maxLength;
31    @XmlElement
32    protected ValidCharsConstraint validChars;
33    @XmlElement
34    protected Integer minOccurs;
35    @XmlElement
36    protected String maxOccurs;
37    @XmlElement
38    protected ErrorLevel errorLevel = ErrorLevel.ERROR;
39   
40    @XmlElement
41    protected CaseConstraint caseConstraint;
42   
43    @XmlElement
44    protected List<RequiredConstraint> requireConstraint;
45   
46    @XmlElement
47    protected List<MustOccurConstraint> occursConstraint;
48   
49    // LookupConstraints
50    protected LookupConstraint lookupDefinition;// If the user wants to match
51    // against two searches, that
52    // search must be defined as
53    // well
54    protected String lookupContextPath;// The idea here is to reuse a
55   
56    // lookupConstraint with fields relative
57    // to the contextPath. We might not need
58    // this
 
59  83 toggle public boolean isServerSide() {
60  83 return serverSide;
61    }
62   
 
63  0 toggle public void setServerSide(boolean serverSide) {
64  0 this.serverSide = serverSide;
65    }
66   
 
67  0 toggle public String getLocale() {
68  0 return locale;
69    }
70   
 
71  0 toggle public void setLocale(String locale) {
72  0 this.locale = locale;
73    }
74   
 
75  139 toggle public String getExclusiveMin() {
76  139 return exclusiveMin;
77    }
78   
 
79  26 toggle public void setExclusiveMin(String exclusiveMin) {
80  26 this.exclusiveMin = exclusiveMin;
81    }
82   
 
83  128 toggle public String getInclusiveMax() {
84  128 return inclusiveMax;
85    }
86   
 
87  13 toggle public void setInclusiveMax(String inclusiveMax) {
88  13 this.inclusiveMax = inclusiveMax;
89    }
90   
 
91  290 toggle public Integer getMinLength() {
92  290 return minLength;
93    }
94   
 
95  131 toggle public void setMinLength(Integer minLength) {
96  131 this.minLength = minLength;
97    }
98   
 
99  211 toggle public String getMaxLength() {
100  211 return maxLength;
101    }
102   
 
103  131 toggle public void setMaxLength(String maxLength) {
104  131 this.maxLength = maxLength;
105    }
106   
 
107  224 toggle public ValidCharsConstraint getValidChars() {
108  224 return validChars;
109    }
110   
 
111  39 toggle public void setValidChars(ValidCharsConstraint validChars) {
112  39 this.validChars = validChars;
113    }
114   
 
115  270 toggle public Integer getMinOccurs() {
116  270 return minOccurs;
117    }
118   
 
119  195 toggle public void setMinOccurs(Integer minOccurs) {
120  195 this.minOccurs = minOccurs;
121    }
122   
 
123  272 toggle public String getMaxOccurs() {
124  272 return maxOccurs;
125    }
126   
 
127  52 toggle public void setMaxOccurs(String maxOccurs) {
128  52 this.maxOccurs = maxOccurs;
129    }
130   
 
131  103 toggle public List<RequiredConstraint> getRequireConstraint() {
132  103 if(null == requireConstraint) {
133  24 this.requireConstraint = new ArrayList<RequiredConstraint>();
134    }
135   
136  103 return requireConstraint;
137    }
138   
 
139  13 toggle public void setRequireConstraint(List<RequiredConstraint> requireConstraint) {
140  13 this.requireConstraint = requireConstraint;
141    }
142   
 
143  222 toggle public CaseConstraint getCaseConstraint() {
144  222 return caseConstraint;
145    }
146   
 
147  78 toggle public void setCaseConstraint(CaseConstraint caseConstraint) {
148  78 this.caseConstraint = caseConstraint;
149    }
150   
 
151  98 toggle public List<MustOccurConstraint> getOccursConstraint() {
152  98 if(null == occursConstraint) {
153  26 this.occursConstraint = new ArrayList<MustOccurConstraint>();
154    }
155  98 return occursConstraint;
156    }
157   
 
158  0 toggle public void setOccursConstraint(List<MustOccurConstraint> occursConstraint) {
159  0 this.occursConstraint = occursConstraint;
160    }
161   
 
162  53 toggle public LookupConstraint getLookupDefinition() {
163  53 return lookupDefinition;
164    }
165   
 
166  13 toggle public void setLookupDefinition(LookupConstraint lookupDefinition) {
167  13 this.lookupDefinition = lookupDefinition;
168    }
169   
 
170  0 toggle public String getLookupContextPath() {
171  0 return lookupContextPath;
172    }
173   
 
174  0 toggle public void setLookupContextPath(String lookupContextPath) {
175  0 this.lookupContextPath = lookupContextPath;
176    }
177   
 
178  83 toggle public String getCustomValidatorClass() {
179  83 return customValidatorClass;
180    }
181   
 
182  0 toggle public void setCustomValidatorClass(String customValidatorClass) {
183  0 this.customValidatorClass = customValidatorClass;
184    }
185   
 
186  33 toggle public ErrorLevel getErrorLevel() {
187  33 return errorLevel;
188    }
189   
 
190  0 toggle public void setErrorLevel(ErrorLevel errorLevel) {
191  0 this.errorLevel = errorLevel;
192    }
193    }