| 1 |  |   | 
  | 2 |  |   | 
  | 3 |  |   | 
  | 4 |  |   | 
  | 5 |  |   | 
  | 6 |  |   | 
  | 7 |  |   | 
  | 8 |  |   | 
  | 9 |  |   | 
  | 10 |  |   | 
  | 11 |  |   | 
  | 12 |  |   | 
  | 13 |  |   | 
  | 14 |  |   | 
  | 15 |  |   | 
  | 16 |  |   | 
  | 17 |  |  package org.kuali.rice.kns.datadictionary; | 
  | 18 |  |   | 
  | 19 |  |  import java.util.List; | 
  | 20 |  |   | 
  | 21 |  |  import org.apache.commons.lang.ClassUtils; | 
  | 22 |  |  import org.apache.commons.lang.StringUtils; | 
  | 23 |  |  import org.apache.log4j.Logger; | 
  | 24 |  |  import org.kuali.rice.core.util.ClassLoaderUtils; | 
  | 25 |  |  import org.kuali.rice.core.web.format.Formatter; | 
  | 26 |  |  import org.kuali.rice.kns.datadictionary.control.ControlDefinition; | 
  | 27 |  |  import org.kuali.rice.kns.datadictionary.exception.AttributeValidationException; | 
  | 28 |  |  import org.kuali.rice.kns.datadictionary.exception.ClassValidationException; | 
  | 29 |  |  import org.kuali.rice.kns.datadictionary.validation.DataType; | 
  | 30 |  |  import org.kuali.rice.kns.datadictionary.validation.ValidationPattern; | 
  | 31 |  |  import org.kuali.rice.kns.datadictionary.validation.capability.CaseConstrainable; | 
  | 32 |  |  import org.kuali.rice.kns.datadictionary.validation.capability.Formatable; | 
  | 33 |  |  import org.kuali.rice.kns.datadictionary.validation.capability.HierarchicallyConstrainable; | 
  | 34 |  |  import org.kuali.rice.kns.datadictionary.validation.capability.LengthConstrainable; | 
  | 35 |  |  import org.kuali.rice.kns.datadictionary.validation.capability.MustOccurConstrainable; | 
  | 36 |  |  import org.kuali.rice.kns.datadictionary.validation.capability.PrerequisiteConstrainable; | 
  | 37 |  |  import org.kuali.rice.kns.datadictionary.validation.capability.RangeConstrainable; | 
  | 38 |  |  import org.kuali.rice.kns.datadictionary.validation.capability.ValidCharactersConstrainable; | 
  | 39 |  |  import org.kuali.rice.kns.datadictionary.validation.constraint.CaseConstraint; | 
  | 40 |  |  import org.kuali.rice.kns.datadictionary.validation.constraint.LookupConstraint; | 
  | 41 |  |  import org.kuali.rice.kns.datadictionary.validation.constraint.MustOccurConstraint; | 
  | 42 |  |  import org.kuali.rice.kns.datadictionary.validation.constraint.PrerequisiteConstraint; | 
  | 43 |  |  import org.kuali.rice.kns.datadictionary.validation.constraint.ValidCharactersConstraint; | 
  | 44 |  |  import org.kuali.rice.kns.lookup.keyvalues.KeyValuesFinder; | 
  | 45 |  |  import org.kuali.rice.kns.uif.control.Control; | 
  | 46 |  |  import org.kuali.rice.kns.uif.core.BindingInfo; | 
  | 47 |  |  import org.kuali.rice.kns.util.ObjectUtils; | 
  | 48 |  |   | 
  | 49 |  |   | 
  | 50 |  |   | 
  | 51 |  |   | 
  | 52 |  |   | 
  | 53 |  |   | 
  | 54 |  |   | 
  | 55 |  |   | 
  | 56 |  |  public class AttributeDefinition extends AttributeDefinitionBase implements CaseConstrainable, PrerequisiteConstrainable, Formatable, HierarchicallyConstrainable, MustOccurConstrainable, LengthConstrainable, RangeConstrainable, ValidCharactersConstrainable { | 
  | 57 |  |          private static final long serialVersionUID = -2490613377818442742L; | 
  | 58 |  |   | 
  | 59 | 0 |          protected Boolean forceUppercase = Boolean.FALSE; | 
  | 60 |  |           | 
  | 61 |  |          protected DataType dataType; | 
  | 62 |  |           | 
  | 63 |  |          protected Integer minLength; | 
  | 64 |  |          protected Integer maxLength; | 
  | 65 |  |          protected Boolean unique; | 
  | 66 |  |   | 
  | 67 |  |          protected String exclusiveMin; | 
  | 68 |  |          protected String inclusiveMax; | 
  | 69 |  |   | 
  | 70 |  |          @Deprecated  | 
  | 71 |  |          protected ValidationPattern validationPattern; | 
  | 72 |  |   | 
  | 73 |  |          protected ControlDefinition control; | 
  | 74 |  |   | 
  | 75 |  |           | 
  | 76 |  |          protected Control controlField; | 
  | 77 |  |   | 
  | 78 |  |          protected String formatterClass; | 
  | 79 |  |   | 
  | 80 |  |          protected AttributeSecurity attributeSecurity; | 
  | 81 |  |           | 
  | 82 |  |          protected Boolean dynamic; | 
  | 83 |  |           | 
  | 84 |  |           | 
  | 85 |  |          protected String customValidatorClass; | 
  | 86 |  |          protected ValidCharactersConstraint validCharactersConstraint;         | 
  | 87 |  |      protected CaseConstraint caseConstraint; | 
  | 88 |  |      protected List<PrerequisiteConstraint> dependencyConstraints; | 
  | 89 |  |          protected List<MustOccurConstraint> mustOccurConstraints; | 
  | 90 |  |          protected LookupConstraint lookupDefinition; | 
  | 91 |  |                   | 
  | 92 |  |          protected String lookupContextPath; | 
  | 93 |  |           | 
  | 94 |  |           | 
  | 95 |  |          protected String childEntryName; | 
  | 96 |  |           | 
  | 97 |  |          private KeyValuesFinder optionsFinder; | 
  | 98 |  |   | 
  | 99 |  |          protected String alternateDisplayAttributeName; | 
  | 100 |  |      protected String additionalDisplayAttributeName; | 
  | 101 |  |       | 
  | 102 |  |   | 
  | 103 | 0 |          public AttributeDefinition() { | 
  | 104 |  |                   | 
  | 105 | 0 |          } | 
  | 106 |  |   | 
  | 107 |  |           | 
  | 108 |  |   | 
  | 109 |  |   | 
  | 110 |  |   | 
  | 111 |  |          public void setForceUppercase(Boolean forceUppercase) { | 
  | 112 | 0 |                  this.forceUppercase = forceUppercase; | 
  | 113 | 0 |          } | 
  | 114 |  |   | 
  | 115 |  |          public Boolean getForceUppercase() { | 
  | 116 | 0 |                  return this.forceUppercase; | 
  | 117 |  |          } | 
  | 118 |  |   | 
  | 119 |  |          @Override | 
  | 120 |  |          public Integer getMaxLength() { | 
  | 121 | 0 |                  return maxLength; | 
  | 122 |  |          } | 
  | 123 |  |   | 
  | 124 |  |           | 
  | 125 |  |   | 
  | 126 |  |   | 
  | 127 |  |   | 
  | 128 |  |          public void setMaxLength(Integer maxLength) { | 
  | 129 | 0 |                  this.maxLength = maxLength; | 
  | 130 | 0 |          } | 
  | 131 |  |   | 
  | 132 |  |          @Override | 
  | 133 |  |          public String getExclusiveMin() { | 
  | 134 | 0 |                  return exclusiveMin; | 
  | 135 |  |          } | 
  | 136 |  |   | 
  | 137 |  |           | 
  | 138 |  |   | 
  | 139 |  |   | 
  | 140 |  |   | 
  | 141 |  |   | 
  | 142 |  |          public void setExclusiveMin(String exclusiveMin) { | 
  | 143 | 0 |                  this.exclusiveMin = exclusiveMin; | 
  | 144 | 0 |          } | 
  | 145 |  |   | 
  | 146 |  |           | 
  | 147 |  |   | 
  | 148 |  |   | 
  | 149 |  |   | 
  | 150 |  |   | 
  | 151 |  |   | 
  | 152 |  |   | 
  | 153 |  |          @Override | 
  | 154 |  |          public String getInclusiveMax() { | 
  | 155 | 0 |                  return inclusiveMax; | 
  | 156 |  |          } | 
  | 157 |  |   | 
  | 158 |  |           | 
  | 159 |  |   | 
  | 160 |  |   | 
  | 161 |  |   | 
  | 162 |  |   | 
  | 163 |  |   | 
  | 164 |  |   | 
  | 165 |  |          public void setInclusiveMax(String inclusiveMax) { | 
  | 166 | 0 |                  this.inclusiveMax = inclusiveMax; | 
  | 167 | 0 |          } | 
  | 168 |  |   | 
  | 169 |  |           | 
  | 170 |  |   | 
  | 171 |  |   | 
  | 172 |  |          public boolean hasValidationPattern() { | 
  | 173 | 0 |                  return (validationPattern != null); | 
  | 174 |  |          } | 
  | 175 |  |   | 
  | 176 |  |          public ValidationPattern getValidationPattern() { | 
  | 177 | 0 |                  return this.validationPattern; | 
  | 178 |  |          } | 
  | 179 |  |   | 
  | 180 |  |           | 
  | 181 |  |   | 
  | 182 |  |   | 
  | 183 |  |   | 
  | 184 |  |   | 
  | 185 |  |   | 
  | 186 |  |   | 
  | 187 |  |   | 
  | 188 |  |   | 
  | 189 |  |   | 
  | 190 |  |   | 
  | 191 |  |   | 
  | 192 |  |   | 
  | 193 |  |   | 
  | 194 |  |   | 
  | 195 |  |   | 
  | 196 |  |   | 
  | 197 |  |   | 
  | 198 |  |   | 
  | 199 |  |   | 
  | 200 |  |   | 
  | 201 |  |   | 
  | 202 |  |   | 
  | 203 |  |   | 
  | 204 |  |   | 
  | 205 |  |   | 
  | 206 |  |   | 
  | 207 |  |   | 
  | 208 |  |   | 
  | 209 |  |   | 
  | 210 |  |   | 
  | 211 |  |   | 
  | 212 |  |   | 
  | 213 |  |   | 
  | 214 |  |   | 
  | 215 |  |   | 
  | 216 |  |   | 
  | 217 |  |          public void setValidationPattern(ValidationPattern validationPattern) { | 
  | 218 | 0 |                  this.validationPattern = validationPattern; | 
  | 219 |  |                   | 
  | 220 |  |                   | 
  | 221 | 0 |          } | 
  | 222 |  |   | 
  | 223 |  |   | 
  | 224 |  |           | 
  | 225 |  |   | 
  | 226 |  |   | 
  | 227 |  |          public ControlDefinition getControl() { | 
  | 228 | 0 |                  return control; | 
  | 229 |  |          } | 
  | 230 |  |   | 
  | 231 |  |           | 
  | 232 |  |   | 
  | 233 |  |   | 
  | 234 |  |   | 
  | 235 |  |   | 
  | 236 |  |   | 
  | 237 |  |   | 
  | 238 |  |   | 
  | 239 |  |   | 
  | 240 |  |   | 
  | 241 |  |   | 
  | 242 |  |   | 
  | 243 |  |   | 
  | 244 |  |   | 
  | 245 |  |   | 
  | 246 |  |   | 
  | 247 |  |   | 
  | 248 |  |   | 
  | 249 |  |   | 
  | 250 |  |   | 
  | 251 |  |   | 
  | 252 |  |   | 
  | 253 |  |   | 
  | 254 |  |   | 
  | 255 |  |   | 
  | 256 |  |   | 
  | 257 |  |   | 
  | 258 |  |   | 
  | 259 |  |   | 
  | 260 |  |   | 
  | 261 |  |   | 
  | 262 |  |   | 
  | 263 |  |   | 
  | 264 |  |   | 
  | 265 |  |   | 
  | 266 |  |   | 
  | 267 |  |   | 
  | 268 |  |   | 
  | 269 |  |   | 
  | 270 |  |   | 
  | 271 |  |          public void setControl(ControlDefinition control) { | 
  | 272 | 0 |                  if (control == null) { | 
  | 273 | 0 |                          throw new IllegalArgumentException("invalid (null) control"); | 
  | 274 |  |                  } | 
  | 275 | 0 |                  this.control = control; | 
  | 276 | 0 |          } | 
  | 277 |  |   | 
  | 278 |  |          public boolean hasFormatterClass() { | 
  | 279 | 0 |                  return (formatterClass != null); | 
  | 280 |  |          } | 
  | 281 |  |   | 
  | 282 |  |          @Override | 
  | 283 |  |          public String getFormatterClass() { | 
  | 284 | 0 |                  return formatterClass; | 
  | 285 |  |          } | 
  | 286 |  |   | 
  | 287 |  |           | 
  | 288 |  |   | 
  | 289 |  |   | 
  | 290 |  |   | 
  | 291 |  |   | 
  | 292 |  |   | 
  | 293 |  |   | 
  | 294 |  |          public void setFormatterClass(String formatterClass) { | 
  | 295 | 0 |                  if (formatterClass == null) { | 
  | 296 | 0 |                          throw new IllegalArgumentException("invalid (null) formatterClass"); | 
  | 297 |  |                  } | 
  | 298 | 0 |                  this.formatterClass = formatterClass; | 
  | 299 | 0 |          } | 
  | 300 |  |   | 
  | 301 |  |           | 
  | 302 |  |   | 
  | 303 |  |   | 
  | 304 |  |   | 
  | 305 |  |   | 
  | 306 |  |   | 
  | 307 |  |          @Override | 
  | 308 |  |          public void completeValidation(Class<?> rootObjectClass, Class<?> otherObjectClass) { | 
  | 309 |  |                  try { | 
  | 310 | 0 |                          if (!DataDictionary.isPropertyOf(rootObjectClass, getName())) { | 
  | 311 | 0 |                                  throw new AttributeValidationException("property '" + getName() + "' is not a property of class '" | 
  | 312 |  |                                                  + rootObjectClass.getName() + "' (" + "" + ")"); | 
  | 313 |  |                          } | 
  | 314 |  |   | 
  | 315 |  |                           | 
  | 316 | 0 |                          if (getControl() == null && getControlField() == null) { | 
  | 317 | 0 |                                  throw new AttributeValidationException("property '" + getName() + "' in class '" | 
  | 318 |  |                                                  + rootObjectClass.getName() + " does not have a control defined"); | 
  | 319 |  |                          } | 
  | 320 |  |                           | 
  | 321 | 0 |                          if(getControl() != null) { | 
  | 322 | 0 |                              getControl().completeValidation(rootObjectClass, otherObjectClass); | 
  | 323 |  |                          } | 
  | 324 |  |   | 
  | 325 | 0 |                          if (attributeSecurity != null) { | 
  | 326 | 0 |                                  attributeSecurity.completeValidation(rootObjectClass, otherObjectClass); | 
  | 327 |  |                          } | 
  | 328 |  |   | 
  | 329 | 0 |                          if (validationPattern != null) { | 
  | 330 | 0 |                                  validationPattern.completeValidation(); | 
  | 331 |  |                          } | 
  | 332 |  |   | 
  | 333 | 0 |                          if (formatterClass != null) { | 
  | 334 |  |                                  try { | 
  | 335 | 0 |                                          Class formatterClassObject = ClassUtils.getClass(ClassLoaderUtils.getDefaultClassLoader(), | 
  | 336 |  |                                                          getFormatterClass()); | 
  | 337 | 0 |                                          if (!Formatter.class.isAssignableFrom(formatterClassObject)) { | 
  | 338 | 0 |                                                  throw new ClassValidationException("formatterClass is not a valid instance of " | 
  | 339 |  |                                                                  + Formatter.class.getName() + " instead was: " + formatterClassObject.getName()); | 
  | 340 |  |                                          } | 
  | 341 |  |                                  } | 
  | 342 | 0 |                                  catch (ClassNotFoundException e) { | 
  | 343 | 0 |                                          throw new ClassValidationException("formatterClass could not be found: " + getFormatterClass(), e); | 
  | 344 | 0 |                                  } | 
  | 345 |  |                          } | 
  | 346 |  |                  } | 
  | 347 | 0 |                  catch (RuntimeException ex) { | 
  | 348 | 0 |                          Logger.getLogger(getClass()).error( | 
  | 349 |  |                                          "Unable to validate attribute " + rootObjectClass + "." + getName() + ": " + ex.getMessage(), ex); | 
  | 350 | 0 |                          throw ex; | 
  | 351 | 0 |                  } | 
  | 352 | 0 |          } | 
  | 353 |  |   | 
  | 354 |  |           | 
  | 355 |  |   | 
  | 356 |  |   | 
  | 357 |  |          @Override | 
  | 358 |  |          public String toString() { | 
  | 359 | 0 |                  return "AttributeDefinition for attribute " + getName(); | 
  | 360 |  |          } | 
  | 361 |  |   | 
  | 362 |  |           | 
  | 363 |  |   | 
  | 364 |  |   | 
  | 365 |  |          public AttributeSecurity getAttributeSecurity() { | 
  | 366 | 0 |                  return this.attributeSecurity; | 
  | 367 |  |          } | 
  | 368 |  |   | 
  | 369 |  |           | 
  | 370 |  |   | 
  | 371 |  |   | 
  | 372 |  |   | 
  | 373 |  |          public void setAttributeSecurity(AttributeSecurity attributeSecurity) { | 
  | 374 | 0 |                  this.attributeSecurity = attributeSecurity; | 
  | 375 | 0 |          } | 
  | 376 |  |   | 
  | 377 |  |          public boolean hasAttributeSecurity() { | 
  | 378 | 0 |                  return (attributeSecurity != null); | 
  | 379 |  |          } | 
  | 380 |  |   | 
  | 381 |  |           | 
  | 382 |  |   | 
  | 383 |  |   | 
  | 384 |  |   | 
  | 385 |  |   | 
  | 386 |  |          @Override | 
  | 387 |  |          public void afterPropertiesSet() throws Exception { | 
  | 388 | 0 |                  if (StringUtils.isEmpty(name)) { | 
  | 389 | 0 |                          throw new RuntimeException("blank name for bean: " + id); | 
  | 390 |  |                  } | 
  | 391 |  |   | 
  | 392 | 0 |                  if (validationPattern != null) { | 
  | 393 | 0 |                          if (validCharactersConstraint == null) { | 
  | 394 | 0 |                                  validCharactersConstraint = new ValidCharactersConstraint(); | 
  | 395 |  |                          } | 
  | 396 |  |                           | 
  | 397 | 0 |                          validCharactersConstraint.setValue(new StringBuilder().append(validationPattern.getRegexPattern()).toString()); | 
  | 398 |  |                  } | 
  | 399 | 0 |          } | 
  | 400 |  |   | 
  | 401 |  |           | 
  | 402 |  |   | 
  | 403 |  |   | 
  | 404 |  |          public Boolean getUnique() { | 
  | 405 | 0 |                  return this.unique; | 
  | 406 |  |          } | 
  | 407 |  |   | 
  | 408 |  |           | 
  | 409 |  |   | 
  | 410 |  |   | 
  | 411 |  |   | 
  | 412 |  |          public void setUnique(Boolean unique) { | 
  | 413 | 0 |                  this.unique = unique; | 
  | 414 | 0 |          } | 
  | 415 |  |   | 
  | 416 |  |           | 
  | 417 |  |   | 
  | 418 |  |   | 
  | 419 |  |   | 
  | 420 |  |   | 
  | 421 |  |   | 
  | 422 |  |   | 
  | 423 |  |          public Control getControlField() { | 
  | 424 | 0 |                  return this.controlField; | 
  | 425 |  |          } | 
  | 426 |  |   | 
  | 427 |  |           | 
  | 428 |  |   | 
  | 429 |  |   | 
  | 430 |  |   | 
  | 431 |  |   | 
  | 432 |  |          public void setControlField(Control controlField) { | 
  | 433 | 0 |                  this.controlField = controlField; | 
  | 434 | 0 |          } | 
  | 435 |  |   | 
  | 436 |  |           | 
  | 437 |  |   | 
  | 438 |  |   | 
  | 439 |  |          public Integer getMinLength() { | 
  | 440 | 0 |                  return this.minLength; | 
  | 441 |  |          } | 
  | 442 |  |   | 
  | 443 |  |           | 
  | 444 |  |   | 
  | 445 |  |   | 
  | 446 |  |          public void setMinLength(Integer minLength) { | 
  | 447 | 0 |                  this.minLength = minLength; | 
  | 448 | 0 |          } | 
  | 449 |  |   | 
  | 450 |  |           | 
  | 451 |  |   | 
  | 452 |  |   | 
  | 453 |  |          @Override | 
  | 454 |  |          public DataType getDataType() { | 
  | 455 | 0 |                  return this.dataType; | 
  | 456 |  |          } | 
  | 457 |  |   | 
  | 458 |  |           | 
  | 459 |  |   | 
  | 460 |  |   | 
  | 461 |  |          public void setDataType(DataType dataType) { | 
  | 462 | 0 |                  this.dataType = dataType; | 
  | 463 | 0 |          } | 
  | 464 |  |           | 
  | 465 |  |          public void setDataType(String dataType) { | 
  | 466 | 0 |                  this.dataType = DataType.valueOf(dataType); | 
  | 467 | 0 |          } | 
  | 468 |  |   | 
  | 469 |  |           | 
  | 470 |  |   | 
  | 471 |  |   | 
  | 472 |  |          public String getCustomValidatorClass() { | 
  | 473 | 0 |                  return this.customValidatorClass; | 
  | 474 |  |          } | 
  | 475 |  |   | 
  | 476 |  |           | 
  | 477 |  |   | 
  | 478 |  |   | 
  | 479 |  |          public void setCustomValidatorClass(String customValidatorClass) { | 
  | 480 | 0 |                  this.customValidatorClass = customValidatorClass; | 
  | 481 | 0 |          } | 
  | 482 |  |   | 
  | 483 |  |           | 
  | 484 |  |   | 
  | 485 |  |   | 
  | 486 |  |          @Override | 
  | 487 |  |          public ValidCharactersConstraint getValidCharactersConstraint() { | 
  | 488 | 0 |                  return this.validCharactersConstraint; | 
  | 489 |  |          } | 
  | 490 |  |   | 
  | 491 |  |           | 
  | 492 |  |   | 
  | 493 |  |   | 
  | 494 |  |          public void setValidCharactersConstraint(ValidCharactersConstraint validCharactersConstraint) { | 
  | 495 | 0 |                  this.validCharactersConstraint = validCharactersConstraint; | 
  | 496 | 0 |          } | 
  | 497 |  |   | 
  | 498 |  |           | 
  | 499 |  |   | 
  | 500 |  |   | 
  | 501 |  |          @Override | 
  | 502 |  |          public CaseConstraint getCaseConstraint() { | 
  | 503 | 0 |                  return this.caseConstraint; | 
  | 504 |  |          } | 
  | 505 |  |   | 
  | 506 |  |           | 
  | 507 |  |   | 
  | 508 |  |   | 
  | 509 |  |          public void setCaseConstraint(CaseConstraint caseConstraint) { | 
  | 510 | 0 |                  this.caseConstraint = caseConstraint; | 
  | 511 | 0 |          } | 
  | 512 |  |   | 
  | 513 |  |           | 
  | 514 |  |   | 
  | 515 |  |   | 
  | 516 |  |          @Override | 
  | 517 |  |          public List<PrerequisiteConstraint> getPrerequisiteConstraints() { | 
  | 518 | 0 |                  return this.dependencyConstraints; | 
  | 519 |  |          } | 
  | 520 |  |   | 
  | 521 |  |           | 
  | 522 |  |   | 
  | 523 |  |   | 
  | 524 |  |          public void setPrerequisiteConstraints(List<PrerequisiteConstraint> dependencyConstraints) { | 
  | 525 | 0 |                  this.dependencyConstraints = dependencyConstraints; | 
  | 526 | 0 |          } | 
  | 527 |  |   | 
  | 528 |  |           | 
  | 529 |  |   | 
  | 530 |  |   | 
  | 531 |  |          @Override | 
  | 532 |  |          public List<MustOccurConstraint> getMustOccurConstraints() { | 
  | 533 | 0 |                  return this.mustOccurConstraints; | 
  | 534 |  |          } | 
  | 535 |  |   | 
  | 536 |  |           | 
  | 537 |  |   | 
  | 538 |  |   | 
  | 539 |  |          public void setMustOccurConstraints(List<MustOccurConstraint> mustOccurConstraints) { | 
  | 540 | 0 |                  this.mustOccurConstraints = mustOccurConstraints; | 
  | 541 | 0 |          } | 
  | 542 |  |   | 
  | 543 |  |           | 
  | 544 |  |   | 
  | 545 |  |   | 
  | 546 |  |          public LookupConstraint getLookupDefinition() { | 
  | 547 | 0 |                  return this.lookupDefinition; | 
  | 548 |  |          } | 
  | 549 |  |   | 
  | 550 |  |           | 
  | 551 |  |   | 
  | 552 |  |   | 
  | 553 |  |          public void setLookupDefinition(LookupConstraint lookupDefinition) { | 
  | 554 | 0 |                  this.lookupDefinition = lookupDefinition; | 
  | 555 | 0 |          } | 
  | 556 |  |   | 
  | 557 |  |           | 
  | 558 |  |   | 
  | 559 |  |   | 
  | 560 |  |          public String getLookupContextPath() { | 
  | 561 | 0 |                  return this.lookupContextPath; | 
  | 562 |  |          } | 
  | 563 |  |   | 
  | 564 |  |           | 
  | 565 |  |   | 
  | 566 |  |   | 
  | 567 |  |          public void setLookupContextPath(String lookupContextPath) { | 
  | 568 | 0 |                  this.lookupContextPath = lookupContextPath; | 
  | 569 | 0 |          } | 
  | 570 |  |   | 
  | 571 |  |           | 
  | 572 |  |   | 
  | 573 |  |   | 
  | 574 |  |          public String getChildEntryName() { | 
  | 575 | 0 |                  return this.childEntryName; | 
  | 576 |  |          } | 
  | 577 |  |   | 
  | 578 |  |           | 
  | 579 |  |   | 
  | 580 |  |   | 
  | 581 |  |          public void setChildEntryName(String childEntryName) { | 
  | 582 | 0 |                  this.childEntryName = childEntryName; | 
  | 583 | 0 |          } | 
  | 584 |  |   | 
  | 585 |  |           | 
  | 586 |  |   | 
  | 587 |  |   | 
  | 588 |  |          public String getConstraint() { | 
  | 589 | 0 |                  return this.constraint; | 
  | 590 |  |          } | 
  | 591 |  |   | 
  | 592 |  |           | 
  | 593 |  |   | 
  | 594 |  |   | 
  | 595 |  |          public void setConstraint(String constraint) { | 
  | 596 | 0 |                  this.constraint = constraint; | 
  | 597 | 0 |          } | 
  | 598 |  |           | 
  | 599 |  |       | 
  | 600 |  |   | 
  | 601 |  |   | 
  | 602 |  |   | 
  | 603 |  |   | 
  | 604 |  |   | 
  | 605 |  |   | 
  | 606 |  |   | 
  | 607 |  |      public KeyValuesFinder getOptionsFinder() { | 
  | 608 | 0 |          return this.optionsFinder; | 
  | 609 |  |      } | 
  | 610 |  |   | 
  | 611 |  |       | 
  | 612 |  |   | 
  | 613 |  |   | 
  | 614 |  |   | 
  | 615 |  |   | 
  | 616 |  |      public void setOptionsFinder(KeyValuesFinder optionsFinder) { | 
  | 617 | 0 |          this.optionsFinder = optionsFinder; | 
  | 618 | 0 |      } | 
  | 619 |  |       | 
  | 620 |  |       | 
  | 621 |  |   | 
  | 622 |  |   | 
  | 623 |  |   | 
  | 624 |  |   | 
  | 625 |  |   | 
  | 626 |  |      public void setOptionsFinderClass(Class<? extends KeyValuesFinder> optionsFinderClass) { | 
  | 627 | 0 |          this.optionsFinder = ObjectUtils.newInstance(optionsFinderClass); | 
  | 628 | 0 |      } | 
  | 629 |  |           | 
  | 630 |  |          public void setAdditionalDisplayAttributeName(String additionalDisplayAttributeName) { | 
  | 631 | 0 |                  this.additionalDisplayAttributeName = additionalDisplayAttributeName; | 
  | 632 | 0 |          } | 
  | 633 |  |           | 
  | 634 |  |          public String getAdditionalDisplayAttributeName() { | 
  | 635 | 0 |                  return this.additionalDisplayAttributeName; | 
  | 636 |  |          } | 
  | 637 |  |   | 
  | 638 |  |          public void setAlternateDisplayAttributeName(String alternateDisplayAttributeName) { | 
  | 639 | 0 |                  this.alternateDisplayAttributeName = alternateDisplayAttributeName; | 
  | 640 | 0 |          } | 
  | 641 |  |           | 
  | 642 |  |          public String getAlternateDisplayAttributeName() { | 
  | 643 | 0 |                  return this.alternateDisplayAttributeName; | 
  | 644 |  |          } | 
  | 645 |  |   | 
  | 646 |  |  } |