| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Constraint |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2009 The Kuali Foundation | |
| 3 | * | |
| 4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.osedu.org/licenses/ECL-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | package org.kuali.student.contract.model; | |
| 17 | ||
| 18 | /** | |
| 19 | * This models a constraint either an in-line one or one defined as part of the bank of constraints. | |
| 20 | * Note: Cross-object Constraints are not modeled here. | |
| 21 | * | |
| 22 | * @author nwright | |
| 23 | */ | |
| 24 | public class Constraint { | |
| 25 | ||
| 26 | public static final String UNBOUNDED = "(unbounded)"; | |
| 27 | public static final String NINE_NINES = "999999999"; | |
| 28 | ||
| 29 | public Constraint() { | |
| 30 | 0 | super(); |
| 31 | 0 | } |
| 32 | private String id; | |
| 33 | ||
| 34 | /** | |
| 35 | * Get the value of id | |
| 36 | * | |
| 37 | * @return the value of id | |
| 38 | */ | |
| 39 | public String getId() { | |
| 40 | 0 | return id; |
| 41 | } | |
| 42 | ||
| 43 | /** | |
| 44 | * Set the value of id | |
| 45 | * | |
| 46 | * @param id new value of id | |
| 47 | */ | |
| 48 | public void setId(String id) { | |
| 49 | 0 | this.id = id; |
| 50 | 0 | } |
| 51 | private String key; | |
| 52 | ||
| 53 | /** | |
| 54 | * Get the value of key | |
| 55 | * | |
| 56 | * @return the value of key | |
| 57 | */ | |
| 58 | public String getKey() { | |
| 59 | 0 | return key; |
| 60 | } | |
| 61 | ||
| 62 | /** | |
| 63 | * Set the value of key | |
| 64 | * | |
| 65 | * @param key new value of key | |
| 66 | */ | |
| 67 | public void setKey(String key) { | |
| 68 | 0 | this.key = key; |
| 69 | 0 | } |
| 70 | private String desc; | |
| 71 | ||
| 72 | /** | |
| 73 | * Get the value of desc | |
| 74 | * | |
| 75 | * @return the value of desc | |
| 76 | */ | |
| 77 | public String getDesc() { | |
| 78 | 0 | return desc; |
| 79 | } | |
| 80 | ||
| 81 | /** | |
| 82 | * Set the value of desc | |
| 83 | * | |
| 84 | * @param desc new value of desc | |
| 85 | */ | |
| 86 | public void setDesc(String desc) { | |
| 87 | 0 | this.desc = desc; |
| 88 | 0 | } |
| 89 | private String serverSide; | |
| 90 | ||
| 91 | /** | |
| 92 | * Get the value of serverSide | |
| 93 | * | |
| 94 | * @return the value of serverSide | |
| 95 | */ | |
| 96 | public String getServerSide() { | |
| 97 | 0 | return serverSide; |
| 98 | } | |
| 99 | ||
| 100 | /** | |
| 101 | * Set the value of serverSide | |
| 102 | * | |
| 103 | * @param serverSide new value of serverSide | |
| 104 | */ | |
| 105 | public void setServerSide(String serverSide) { | |
| 106 | 0 | this.serverSide = serverSide; |
| 107 | 0 | } |
| 108 | private String minLength; | |
| 109 | ||
| 110 | /** | |
| 111 | * Get the value of minLength | |
| 112 | * | |
| 113 | * @return the value of minLength | |
| 114 | */ | |
| 115 | public String getMinLength() { | |
| 116 | 0 | return minLength; |
| 117 | } | |
| 118 | ||
| 119 | /** | |
| 120 | * Set the value of minLength | |
| 121 | * | |
| 122 | * @param minLength new value of minLength | |
| 123 | */ | |
| 124 | public void setMinLength(String minLength) { | |
| 125 | 0 | this.minLength = minLength; |
| 126 | 0 | } |
| 127 | private String maxLength; | |
| 128 | ||
| 129 | /** | |
| 130 | * Get the value of maxLength | |
| 131 | * | |
| 132 | * @return the value of maxLength | |
| 133 | */ | |
| 134 | public String getMaxLength() { | |
| 135 | 0 | return maxLength; |
| 136 | } | |
| 137 | ||
| 138 | /** | |
| 139 | * Set the value of maxLength | |
| 140 | * | |
| 141 | * @param maxLength new value of maxLength | |
| 142 | */ | |
| 143 | public void setMaxLength(String maxLength) { | |
| 144 | 0 | this.maxLength = maxLength; |
| 145 | 0 | } |
| 146 | private String minValue; | |
| 147 | ||
| 148 | /** | |
| 149 | * Get the value of minValue | |
| 150 | * | |
| 151 | * @return the value of minValue | |
| 152 | */ | |
| 153 | public String getMinValue() { | |
| 154 | 0 | return minValue; |
| 155 | } | |
| 156 | ||
| 157 | /** | |
| 158 | * Set the value of minValue | |
| 159 | * | |
| 160 | * @param minValue new value of minValue | |
| 161 | */ | |
| 162 | public void setMinValue(String minValue) { | |
| 163 | 0 | this.minValue = minValue; |
| 164 | 0 | } |
| 165 | private String maxValue; | |
| 166 | ||
| 167 | /** | |
| 168 | * Get the value of maxValue | |
| 169 | * | |
| 170 | * @return the value of maxValue | |
| 171 | */ | |
| 172 | public String getMaxValue() { | |
| 173 | 0 | return maxValue; |
| 174 | } | |
| 175 | ||
| 176 | /** | |
| 177 | * Set the value of maxValue | |
| 178 | * | |
| 179 | * @param maxValue new value of maxValue | |
| 180 | */ | |
| 181 | public void setMaxValue(String maxValue) { | |
| 182 | 0 | this.maxValue = maxValue; |
| 183 | 0 | } |
| 184 | protected String minOccurs; | |
| 185 | ||
| 186 | /** | |
| 187 | * Get the value of minOccurs | |
| 188 | * | |
| 189 | * @return the value of minOccurs | |
| 190 | */ | |
| 191 | public String getMinOccurs() { | |
| 192 | 0 | return minOccurs; |
| 193 | } | |
| 194 | ||
| 195 | /** | |
| 196 | * Set the value of minOccurs | |
| 197 | * | |
| 198 | * @param minOccurs new value of minOccurs | |
| 199 | */ | |
| 200 | public void setMinOccurs(String minOccurs) { | |
| 201 | 0 | this.minOccurs = minOccurs; |
| 202 | 0 | } |
| 203 | private String maxOccurs; | |
| 204 | ||
| 205 | /** | |
| 206 | * Get the value of maxOccurs | |
| 207 | * | |
| 208 | * @return the value of maxOccurs | |
| 209 | */ | |
| 210 | public String getMaxOccurs() { | |
| 211 | 0 | return maxOccurs; |
| 212 | } | |
| 213 | ||
| 214 | /** | |
| 215 | * Set the value of maxOccurs | |
| 216 | * | |
| 217 | * @param maxOccurs new value of maxOccurs | |
| 218 | */ | |
| 219 | public void setMaxOccurs(String maxOccurs) { | |
| 220 | 0 | this.maxOccurs = maxOccurs; |
| 221 | 0 | } |
| 222 | private String validChars; | |
| 223 | ||
| 224 | /** | |
| 225 | * Get the value of validChars | |
| 226 | * | |
| 227 | * @return the value of validChars | |
| 228 | */ | |
| 229 | public String getValidChars() { | |
| 230 | 0 | return validChars; |
| 231 | } | |
| 232 | ||
| 233 | /** | |
| 234 | * Set the value of validChars | |
| 235 | * | |
| 236 | * @param validChars new value of validChars | |
| 237 | */ | |
| 238 | public void setValidChars(String validChars) { | |
| 239 | 0 | this.validChars = validChars; |
| 240 | 0 | } |
| 241 | private String lookup; | |
| 242 | ||
| 243 | /** | |
| 244 | * Get the value of lookup | |
| 245 | * | |
| 246 | * @return the value of lookup | |
| 247 | */ | |
| 248 | public String getLookup() { | |
| 249 | 0 | return lookup; |
| 250 | } | |
| 251 | ||
| 252 | /** | |
| 253 | * Set the value of lookup | |
| 254 | * | |
| 255 | * @param lookup new value of lookup | |
| 256 | */ | |
| 257 | public void setLookup(String lookup) { | |
| 258 | 0 | this.lookup = lookup; |
| 259 | 0 | } |
| 260 | protected String lookupContext; | |
| 261 | ||
| 262 | /** | |
| 263 | * Get the value of lookupContext | |
| 264 | * | |
| 265 | * @return the value of lookupContext | |
| 266 | */ | |
| 267 | public String getLookupContext() { | |
| 268 | 0 | return lookupContext; |
| 269 | } | |
| 270 | ||
| 271 | /** | |
| 272 | * Set the value of lookupContext | |
| 273 | * | |
| 274 | * @param lookupContext new value of lookupContext | |
| 275 | */ | |
| 276 | public void setLookupContext(String lookupContext) { | |
| 277 | 0 | this.lookupContext = lookupContext; |
| 278 | 0 | } |
| 279 | private String comments; | |
| 280 | ||
| 281 | /** | |
| 282 | * Get the value of comments | |
| 283 | * | |
| 284 | * @return the value of comments | |
| 285 | */ | |
| 286 | public String getComments() { | |
| 287 | 0 | return comments; |
| 288 | } | |
| 289 | ||
| 290 | /** | |
| 291 | * Set the value of comments | |
| 292 | * | |
| 293 | * @param comments new value of comments | |
| 294 | */ | |
| 295 | public void setComments(String comments) { | |
| 296 | 0 | this.comments = comments; |
| 297 | 0 | } |
| 298 | private String className; | |
| 299 | ||
| 300 | /** | |
| 301 | * Get the value of className | |
| 302 | * | |
| 303 | * @return the value of className | |
| 304 | */ | |
| 305 | public String getClassName() { | |
| 306 | 0 | return className; |
| 307 | } | |
| 308 | ||
| 309 | /** | |
| 310 | * Set the value of className | |
| 311 | * | |
| 312 | * @param className new value of className | |
| 313 | */ | |
| 314 | public void setClassName(String className) { | |
| 315 | 0 | this.className = className; |
| 316 | 0 | } |
| 317 | private String messageId; | |
| 318 | ||
| 319 | public String getMessageId() { | |
| 320 | 0 | return messageId; |
| 321 | } | |
| 322 | ||
| 323 | public void setMessageId(String messageId) { | |
| 324 | 0 | this.messageId = messageId; |
| 325 | 0 | } |
| 326 | private boolean inline; | |
| 327 | ||
| 328 | public boolean isInline() { | |
| 329 | 0 | return inline; |
| 330 | } | |
| 331 | ||
| 332 | public void setInline(boolean inline) { | |
| 333 | 0 | this.inline = inline; |
| 334 | 0 | } |
| 335 | } |