1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.krad.uif.field; |
17 | |
|
18 | |
import org.apache.commons.lang.StringUtils; |
19 | |
import org.kuali.rice.core.api.util.ConcreteKeyValue; |
20 | |
import org.kuali.rice.core.api.util.KeyValue; |
21 | |
import org.kuali.rice.core.web.format.Formatter; |
22 | |
import org.kuali.rice.krad.bo.DataObjectRelationship; |
23 | |
import org.kuali.rice.krad.bo.KualiCode; |
24 | |
import org.kuali.rice.krad.datadictionary.AttributeDefinition; |
25 | |
import org.kuali.rice.krad.datadictionary.AttributeSecurity; |
26 | |
import org.kuali.rice.krad.datadictionary.validation.constraint.CaseConstraint; |
27 | |
import org.kuali.rice.krad.datadictionary.validation.constraint.MustOccurConstraint; |
28 | |
import org.kuali.rice.krad.datadictionary.validation.constraint.PrerequisiteConstraint; |
29 | |
import org.kuali.rice.krad.datadictionary.validation.constraint.SimpleConstraint; |
30 | |
import org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint; |
31 | |
import org.kuali.rice.krad.keyvalues.KeyValuesFinder; |
32 | |
import org.kuali.rice.krad.service.KRADServiceLocatorWeb; |
33 | |
import org.kuali.rice.krad.uif.UifConstants; |
34 | |
import org.kuali.rice.krad.uif.control.MultiValueControl; |
35 | |
import org.kuali.rice.krad.uif.control.UifKeyValuesFinder; |
36 | |
import org.kuali.rice.krad.uif.view.FormView; |
37 | |
import org.kuali.rice.krad.uif.view.View; |
38 | |
import org.kuali.rice.krad.uif.control.Control; |
39 | |
import org.kuali.rice.krad.uif.control.MultiValueControlBase; |
40 | |
import org.kuali.rice.krad.uif.component.BindingInfo; |
41 | |
import org.kuali.rice.krad.uif.component.Component; |
42 | |
import org.kuali.rice.krad.uif.component.DataBinding; |
43 | |
import org.kuali.rice.krad.uif.util.ClientValidationUtils; |
44 | |
import org.kuali.rice.krad.uif.util.ComponentUtils; |
45 | |
import org.kuali.rice.krad.uif.util.ObjectPropertyUtils; |
46 | |
import org.kuali.rice.krad.uif.util.ViewModelUtils; |
47 | |
import org.kuali.rice.krad.uif.view.ViewModel; |
48 | |
import org.kuali.rice.krad.uif.widget.DirectInquiry; |
49 | |
import org.kuali.rice.krad.uif.widget.Inquiry; |
50 | |
import org.kuali.rice.krad.uif.widget.QuickFinder; |
51 | |
import org.kuali.rice.krad.uif.widget.Suggest; |
52 | |
import org.kuali.rice.krad.util.KRADPropertyConstants; |
53 | |
import org.kuali.rice.krad.util.ObjectUtils; |
54 | |
import org.kuali.rice.krad.valuefinder.ValueFinder; |
55 | |
|
56 | |
import java.util.ArrayList; |
57 | |
import java.util.List; |
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
|
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | |
|
75 | |
|
76 | |
|
77 | |
public class AttributeField extends DataField implements DataBinding { |
78 | |
private static final long serialVersionUID = -3703656713706343840L; |
79 | |
|
80 | |
|
81 | |
private String defaultValue; |
82 | |
private Class<? extends ValueFinder> defaultValueFinderClass; |
83 | |
|
84 | |
|
85 | |
private String customValidatorClass; |
86 | |
private ValidCharactersConstraint validCharactersConstraint; |
87 | |
private CaseConstraint caseConstraint; |
88 | |
private List<PrerequisiteConstraint> dependencyConstraints; |
89 | |
private List<MustOccurConstraint> mustOccurConstraints; |
90 | |
private SimpleConstraint simpleConstraint; |
91 | |
|
92 | |
|
93 | |
private Control control; |
94 | |
private KeyValuesFinder optionsFinder; |
95 | |
private boolean performUppercase; |
96 | |
|
97 | |
private String errorMessagePlacement; |
98 | |
private ErrorsField errorsField; |
99 | |
|
100 | |
|
101 | |
private String constraintText; |
102 | |
private String instructionalText; |
103 | |
|
104 | |
private MessageField instructionalMessageField; |
105 | |
private MessageField constraintMessageField; |
106 | |
|
107 | |
private AttributeQuery fieldAttributeQuery; |
108 | |
|
109 | |
|
110 | |
private QuickFinder fieldLookup; |
111 | |
private DirectInquiry fieldDirectInquiry; |
112 | |
private Suggest fieldSuggest; |
113 | |
|
114 | |
public AttributeField() { |
115 | 0 | super(); |
116 | |
|
117 | 0 | simpleConstraint = new SimpleConstraint(); |
118 | 0 | } |
119 | |
|
120 | |
|
121 | |
|
122 | |
|
123 | |
|
124 | |
|
125 | |
|
126 | |
|
127 | |
|
128 | |
|
129 | |
|
130 | |
|
131 | |
|
132 | |
@Override |
133 | |
public void performFinalize(View view, Object model, Component parent) { |
134 | 0 | super.performFinalize(view, model, parent); |
135 | |
|
136 | 0 | setupIds(); |
137 | |
|
138 | |
|
139 | 0 | List<KeyValue> fieldOptions = new ArrayList<KeyValue>(); |
140 | |
|
141 | |
|
142 | 0 | if ((control != null) && control instanceof MultiValueControlBase) { |
143 | 0 | MultiValueControlBase multiValueControl = (MultiValueControlBase) control; |
144 | 0 | if ((multiValueControl.getOptions() != null) && !multiValueControl.getOptions().isEmpty()) { |
145 | 0 | fieldOptions = multiValueControl.getOptions(); |
146 | |
} |
147 | |
} |
148 | |
|
149 | |
|
150 | 0 | if (fieldOptions.isEmpty() && (optionsFinder != null)) { |
151 | 0 | if (optionsFinder instanceof UifKeyValuesFinder) { |
152 | 0 | fieldOptions = ((UifKeyValuesFinder) optionsFinder).getKeyValues((ViewModel) model); |
153 | |
|
154 | |
|
155 | 0 | if (((UifKeyValuesFinder) optionsFinder).isAddBlankOption()) { |
156 | 0 | fieldOptions.add(0, new ConcreteKeyValue("", "")); |
157 | |
} |
158 | |
} else { |
159 | 0 | fieldOptions = optionsFinder.getKeyValues(); |
160 | |
} |
161 | |
|
162 | 0 | if ((control != null) && control instanceof MultiValueControlBase) { |
163 | 0 | ((MultiValueControlBase) control).setOptions(fieldOptions); |
164 | |
} |
165 | |
} |
166 | |
|
167 | |
|
168 | 0 | if (isReadOnly() |
169 | |
&& !fieldOptions.isEmpty() |
170 | |
&& StringUtils.isBlank(getAlternateDisplayValue()) |
171 | |
&& StringUtils.isBlank(getAdditionalDisplayValue()) |
172 | |
&& StringUtils.isBlank(getAlternateDisplayPropertyName()) |
173 | |
&& StringUtils.isBlank(getAdditionalDisplayPropertyName())) { |
174 | |
|
175 | 0 | Object fieldValue = ObjectPropertyUtils.getPropertyValue(model, getBindingInfo().getBindingPath()); |
176 | 0 | for (KeyValue keyValue : fieldOptions) { |
177 | 0 | if (StringUtils.equals((String) fieldValue, keyValue.getKey())) { |
178 | 0 | setAlternateDisplayValue(keyValue.getValue()); |
179 | 0 | break; |
180 | |
} |
181 | |
} |
182 | |
} |
183 | |
|
184 | |
|
185 | 0 | if (isReadOnly() || getControl() == null) { |
186 | 0 | return; |
187 | |
} |
188 | |
|
189 | |
|
190 | 0 | if (StringUtils.isNotBlank(instructionalText)) { |
191 | 0 | instructionalMessageField.setMessageText(instructionalText); |
192 | |
} |
193 | |
|
194 | |
|
195 | 0 | if (StringUtils.isNotBlank(constraintText)) { |
196 | 0 | constraintMessageField.setMessageText(constraintText); |
197 | |
} |
198 | |
|
199 | |
|
200 | 0 | adjustPrerequisiteConstraintBinding(dependencyConstraints); |
201 | |
|
202 | |
|
203 | 0 | adjustMustOccurConstraintBinding(mustOccurConstraints); |
204 | |
|
205 | |
|
206 | 0 | if (caseConstraint != null) { |
207 | 0 | String propertyName = getBindingInfo().getPropertyAdjustedBindingPath(caseConstraint.getPropertyName()); |
208 | 0 | caseConstraint.setPropertyName(propertyName); |
209 | |
} |
210 | |
|
211 | 0 | setupFieldQuery(); |
212 | |
|
213 | 0 | if (view instanceof FormView && ((FormView) view).isValidateClientSide()) { |
214 | 0 | ClientValidationUtils.processAndApplyConstraints(this, view); |
215 | |
} |
216 | 0 | } |
217 | |
|
218 | |
protected void adjustMustOccurConstraintBinding(List<MustOccurConstraint> mustOccurConstraints) { |
219 | 0 | if (mustOccurConstraints != null) { |
220 | 0 | for (MustOccurConstraint mustOccurConstraint : mustOccurConstraints) { |
221 | 0 | adjustPrerequisiteConstraintBinding(mustOccurConstraint.getPrerequisiteConstraints()); |
222 | 0 | adjustMustOccurConstraintBinding(mustOccurConstraint.getMustOccurConstraints()); |
223 | |
} |
224 | |
} |
225 | 0 | } |
226 | |
|
227 | |
protected void adjustPrerequisiteConstraintBinding(List<PrerequisiteConstraint> prerequisiteConstraints) { |
228 | 0 | if (prerequisiteConstraints != null) { |
229 | 0 | for (PrerequisiteConstraint prerequisiteConstraint : prerequisiteConstraints) { |
230 | 0 | String propertyName = getBindingInfo().getPropertyAdjustedBindingPath(prerequisiteConstraint.getPropertyName()); |
231 | 0 | prerequisiteConstraint.setPropertyName(propertyName); |
232 | 0 | } |
233 | |
} |
234 | 0 | } |
235 | |
|
236 | |
|
237 | |
|
238 | |
|
239 | |
|
240 | |
|
241 | |
protected void setupFieldQuery() { |
242 | 0 | if (getFieldAttributeQuery() != null) { |
243 | |
|
244 | 0 | getFieldAttributeQuery().updateQueryFieldMapping(getBindingInfo()); |
245 | 0 | getFieldAttributeQuery().updateReturnFieldMapping(getBindingInfo()); |
246 | 0 | getFieldAttributeQuery().updateQueryMethodArgumentFieldList(getBindingInfo()); |
247 | |
|
248 | |
|
249 | 0 | String script = "executeFieldQuery('" + getControl().getId() + "',"; |
250 | 0 | script += "'" + getId() + "'," + getFieldAttributeQuery().getQueryFieldMappingJsString() + ","; |
251 | 0 | script += getFieldAttributeQuery().getQueryMethodArgumentFieldsJsString() + ","; |
252 | 0 | script += getFieldAttributeQuery().getReturnFieldMappingJsString() + ");"; |
253 | |
|
254 | 0 | if (StringUtils.isNotBlank(getControl().getOnBlurScript())) { |
255 | 0 | script = getControl().getOnBlurScript() + script; |
256 | |
} |
257 | 0 | getControl().setOnBlurScript(script); |
258 | |
} |
259 | 0 | } |
260 | |
|
261 | |
|
262 | |
|
263 | |
|
264 | |
|
265 | |
|
266 | |
protected void setupIds() { |
267 | |
|
268 | 0 | if (getControl() != null) { |
269 | 0 | getControl().setId(getId()); |
270 | |
} |
271 | |
|
272 | 0 | setNestedComponentIdAndSuffix(getErrorsField(), UifConstants.IdSuffixes.ERRORS); |
273 | 0 | setNestedComponentIdAndSuffix(getLabelField(), UifConstants.IdSuffixes.LABEL); |
274 | 0 | setNestedComponentIdAndSuffix(getInstructionalMessageField(), UifConstants.IdSuffixes.INSTRUCTIONAL); |
275 | 0 | setNestedComponentIdAndSuffix(getConstraintMessageField(), UifConstants.IdSuffixes.CONSTRAINT); |
276 | 0 | setNestedComponentIdAndSuffix(getFieldLookup(), UifConstants.IdSuffixes.QUICK_FINDER); |
277 | 0 | setNestedComponentIdAndSuffix(getFieldDirectInquiry(), UifConstants.IdSuffixes.DIRECT_INQUIRY); |
278 | 0 | setNestedComponentIdAndSuffix(getFieldSuggest(), UifConstants.IdSuffixes.SUGGEST); |
279 | |
|
280 | 0 | setId(getId() + UifConstants.IdSuffixes.ATTRIBUTE); |
281 | 0 | } |
282 | |
|
283 | |
|
284 | |
|
285 | |
|
286 | |
|
287 | |
|
288 | |
|
289 | |
private void setNestedComponentIdAndSuffix(Component component, String suffix) { |
290 | 0 | if (component != null) { |
291 | 0 | String fieldId = getId(); |
292 | 0 | fieldId += suffix; |
293 | |
|
294 | 0 | component.setId(fieldId); |
295 | |
} |
296 | 0 | } |
297 | |
|
298 | |
|
299 | |
|
300 | |
|
301 | |
|
302 | |
|
303 | |
|
304 | |
|
305 | |
|
306 | |
|
307 | |
|
308 | |
|
309 | |
public void copyFromAttributeDefinition(View view, AttributeDefinition attributeDefinition) { |
310 | 0 | super.copyFromAttributeDefinition(view, attributeDefinition); |
311 | |
|
312 | |
|
313 | 0 | if (getMaxLength() == null) { |
314 | 0 | setMaxLength(attributeDefinition.getMaxLength()); |
315 | |
} |
316 | |
|
317 | |
|
318 | 0 | if (getMinLength() == null) { |
319 | 0 | setMinLength(attributeDefinition.getMinLength()); |
320 | |
} |
321 | |
|
322 | |
|
323 | 0 | if (getValidCharactersConstraint() == null) { |
324 | 0 | setValidCharactersConstraint(attributeDefinition.getValidCharactersConstraint()); |
325 | |
} |
326 | |
|
327 | 0 | if (getCaseConstraint() == null) { |
328 | 0 | setCaseConstraint(attributeDefinition.getCaseConstraint()); |
329 | |
} |
330 | |
|
331 | 0 | if (getDependencyConstraints() == null) { |
332 | 0 | setDependencyConstraints(attributeDefinition.getPrerequisiteConstraints()); |
333 | |
} |
334 | |
|
335 | 0 | if (getMustOccurConstraints() == null) { |
336 | 0 | setMustOccurConstraints(attributeDefinition.getMustOccurConstraints()); |
337 | |
} |
338 | |
|
339 | |
|
340 | 0 | if (getRequired() == null) { |
341 | 0 | setRequired(attributeDefinition.isRequired()); |
342 | |
|
343 | |
|
344 | 0 | if (getRequired() == null) { |
345 | 0 | setRequired(false); |
346 | |
} |
347 | |
} |
348 | |
|
349 | |
|
350 | 0 | if ((getControl() == null) && (attributeDefinition.getControlField() != null)) { |
351 | 0 | Control control = attributeDefinition.getControlField(); |
352 | 0 | view.assignComponentIds(control); |
353 | |
|
354 | 0 | setControl(ComponentUtils.copy(control)); |
355 | |
} |
356 | |
|
357 | |
|
358 | 0 | if (StringUtils.isEmpty(getConstraintText())) { |
359 | 0 | setConstraintText(attributeDefinition.getConstraintText()); |
360 | 0 | getConstraintMessageField().setMessageText(attributeDefinition.getConstraintText()); |
361 | |
} |
362 | |
|
363 | |
|
364 | 0 | if (getOptionsFinder() == null) { |
365 | 0 | setOptionsFinder(attributeDefinition.getOptionsFinder()); |
366 | |
} |
367 | 0 | } |
368 | |
|
369 | |
|
370 | |
|
371 | |
|
372 | |
@Override |
373 | |
public List<Component> getComponentsForLifecycle() { |
374 | 0 | List<Component> components = super.getComponentsForLifecycle(); |
375 | |
|
376 | 0 | components.add(control); |
377 | 0 | components.add(errorsField); |
378 | 0 | components.add(fieldLookup); |
379 | 0 | components.add(fieldDirectInquiry); |
380 | 0 | components.add(fieldSuggest); |
381 | |
|
382 | 0 | return components; |
383 | |
} |
384 | |
|
385 | |
|
386 | |
|
387 | |
|
388 | |
|
389 | |
|
390 | |
|
391 | |
|
392 | |
|
393 | |
|
394 | |
|
395 | |
|
396 | |
public String getDefaultValue() { |
397 | 0 | return this.defaultValue; |
398 | |
} |
399 | |
|
400 | |
|
401 | |
|
402 | |
|
403 | |
|
404 | |
|
405 | |
public void setDefaultValue(String defaultValue) { |
406 | 0 | this.defaultValue = defaultValue; |
407 | 0 | } |
408 | |
|
409 | |
|
410 | |
|
411 | |
|
412 | |
|
413 | |
|
414 | |
|
415 | |
public Class<? extends ValueFinder> getDefaultValueFinderClass() { |
416 | 0 | return this.defaultValueFinderClass; |
417 | |
} |
418 | |
|
419 | |
|
420 | |
|
421 | |
|
422 | |
|
423 | |
|
424 | |
public void setDefaultValueFinderClass(Class<? extends ValueFinder> defaultValueFinderClass) { |
425 | 0 | this.defaultValueFinderClass = defaultValueFinderClass; |
426 | 0 | } |
427 | |
|
428 | |
|
429 | |
|
430 | |
|
431 | |
|
432 | |
|
433 | |
|
434 | |
|
435 | |
|
436 | |
|
437 | |
|
438 | |
|
439 | |
|
440 | |
public Control getControl() { |
441 | 0 | return this.control; |
442 | |
} |
443 | |
|
444 | |
|
445 | |
|
446 | |
|
447 | |
|
448 | |
|
449 | |
public void setControl(Control control) { |
450 | 0 | this.control = control; |
451 | 0 | } |
452 | |
|
453 | |
public String getErrorMessagePlacement() { |
454 | 0 | return this.errorMessagePlacement; |
455 | |
} |
456 | |
|
457 | |
public void setErrorMessagePlacement(String errorMessagePlacement) { |
458 | 0 | this.errorMessagePlacement = errorMessagePlacement; |
459 | 0 | } |
460 | |
|
461 | |
|
462 | |
|
463 | |
|
464 | |
|
465 | |
|
466 | |
|
467 | |
|
468 | |
public ErrorsField getErrorsField() { |
469 | 0 | return this.errorsField; |
470 | |
} |
471 | |
|
472 | |
|
473 | |
|
474 | |
|
475 | |
|
476 | |
|
477 | |
public void setErrorsField(ErrorsField errorsField) { |
478 | 0 | this.errorsField = errorsField; |
479 | 0 | } |
480 | |
|
481 | |
|
482 | |
|
483 | |
|
484 | |
|
485 | |
|
486 | |
|
487 | |
|
488 | |
|
489 | |
public KeyValuesFinder getOptionsFinder() { |
490 | 0 | return this.optionsFinder; |
491 | |
} |
492 | |
|
493 | |
|
494 | |
|
495 | |
|
496 | |
|
497 | |
|
498 | |
public void setOptionsFinder(KeyValuesFinder optionsFinder) { |
499 | 0 | this.optionsFinder = optionsFinder; |
500 | 0 | } |
501 | |
|
502 | |
|
503 | |
|
504 | |
|
505 | |
|
506 | |
|
507 | |
|
508 | |
public void setOptionsFinderClass(Class<? extends KeyValuesFinder> optionsFinderClass) { |
509 | 0 | this.optionsFinder = ObjectUtils.newInstance(optionsFinderClass); |
510 | 0 | } |
511 | |
|
512 | |
|
513 | |
|
514 | |
|
515 | |
|
516 | |
|
517 | |
|
518 | |
public String getInstructionalText() { |
519 | 0 | return this.instructionalText; |
520 | |
} |
521 | |
|
522 | |
|
523 | |
|
524 | |
|
525 | |
|
526 | |
|
527 | |
public void setInstructionalText(String instructionalText) { |
528 | 0 | this.instructionalText = instructionalText; |
529 | 0 | } |
530 | |
|
531 | |
|
532 | |
|
533 | |
|
534 | |
@Override |
535 | |
public boolean getSupportsOnLoad() { |
536 | 0 | return true; |
537 | |
} |
538 | |
|
539 | |
|
540 | |
|
541 | |
|
542 | |
|
543 | |
|
544 | |
|
545 | |
|
546 | |
|
547 | |
|
548 | |
|
549 | |
|
550 | |
|
551 | |
|
552 | |
|
553 | |
public QuickFinder getFieldLookup() { |
554 | 0 | return this.fieldLookup; |
555 | |
} |
556 | |
|
557 | |
|
558 | |
|
559 | |
|
560 | |
|
561 | |
|
562 | |
public void setFieldLookup(QuickFinder fieldLookup) { |
563 | 0 | this.fieldLookup = fieldLookup; |
564 | 0 | } |
565 | |
|
566 | |
|
567 | |
|
568 | |
|
569 | |
|
570 | |
|
571 | |
|
572 | |
|
573 | |
|
574 | |
|
575 | |
|
576 | |
|
577 | |
|
578 | |
|
579 | |
|
580 | |
|
581 | |
public Suggest getFieldSuggest() { |
582 | 0 | return fieldSuggest; |
583 | |
} |
584 | |
|
585 | |
|
586 | |
|
587 | |
|
588 | |
|
589 | |
|
590 | |
public void setFieldSuggest(Suggest fieldSuggest) { |
591 | 0 | this.fieldSuggest = fieldSuggest; |
592 | 0 | } |
593 | |
|
594 | |
|
595 | |
|
596 | |
|
597 | |
|
598 | |
|
599 | |
|
600 | |
|
601 | |
|
602 | |
|
603 | |
|
604 | |
public MessageField getInstructionalMessageField() { |
605 | 0 | return this.instructionalMessageField; |
606 | |
} |
607 | |
|
608 | |
|
609 | |
|
610 | |
|
611 | |
|
612 | |
|
613 | |
|
614 | |
|
615 | |
|
616 | |
|
617 | |
|
618 | |
public void setInstructionalMessageField(MessageField instructionalMessageField) { |
619 | 0 | this.instructionalMessageField = instructionalMessageField; |
620 | 0 | } |
621 | |
|
622 | |
|
623 | |
|
624 | |
|
625 | |
|
626 | |
|
627 | |
|
628 | |
|
629 | |
|
630 | |
|
631 | |
|
632 | |
|
633 | |
public String getConstraintText() { |
634 | 0 | return this.constraintText; |
635 | |
} |
636 | |
|
637 | |
|
638 | |
|
639 | |
|
640 | |
|
641 | |
|
642 | |
public void setConstraintText(String constraintText) { |
643 | 0 | this.constraintText = constraintText; |
644 | 0 | } |
645 | |
|
646 | |
|
647 | |
|
648 | |
|
649 | |
|
650 | |
|
651 | |
|
652 | |
|
653 | |
|
654 | |
|
655 | |
|
656 | |
public MessageField getConstraintMessageField() { |
657 | 0 | return this.constraintMessageField; |
658 | |
} |
659 | |
|
660 | |
|
661 | |
|
662 | |
|
663 | |
|
664 | |
|
665 | |
|
666 | |
|
667 | |
|
668 | |
|
669 | |
|
670 | |
public void setConstraintMessageField(MessageField constraintMessageField) { |
671 | 0 | this.constraintMessageField = constraintMessageField; |
672 | 0 | } |
673 | |
|
674 | |
|
675 | |
|
676 | |
|
677 | |
|
678 | |
|
679 | |
|
680 | |
public ValidCharactersConstraint getValidCharactersConstraint() { |
681 | 0 | return this.validCharactersConstraint; |
682 | |
} |
683 | |
|
684 | |
|
685 | |
|
686 | |
|
687 | |
public void setValidCharactersConstraint(ValidCharactersConstraint validCharactersConstraint) { |
688 | 0 | this.validCharactersConstraint = validCharactersConstraint; |
689 | 0 | } |
690 | |
|
691 | |
|
692 | |
|
693 | |
|
694 | |
public CaseConstraint getCaseConstraint() { |
695 | 0 | return this.caseConstraint; |
696 | |
} |
697 | |
|
698 | |
|
699 | |
|
700 | |
|
701 | |
public void setCaseConstraint(CaseConstraint caseConstraint) { |
702 | 0 | this.caseConstraint = caseConstraint; |
703 | 0 | } |
704 | |
|
705 | |
|
706 | |
|
707 | |
|
708 | |
public List<PrerequisiteConstraint> getDependencyConstraints() { |
709 | 0 | return this.dependencyConstraints; |
710 | |
} |
711 | |
|
712 | |
|
713 | |
|
714 | |
|
715 | |
public void setDependencyConstraints(List<PrerequisiteConstraint> dependencyConstraints) { |
716 | 0 | this.dependencyConstraints = dependencyConstraints; |
717 | 0 | } |
718 | |
|
719 | |
|
720 | |
|
721 | |
|
722 | |
public List<MustOccurConstraint> getMustOccurConstraints() { |
723 | 0 | return this.mustOccurConstraints; |
724 | |
} |
725 | |
|
726 | |
|
727 | |
|
728 | |
|
729 | |
public void setMustOccurConstraints(List<MustOccurConstraint> mustOccurConstraints) { |
730 | 0 | this.mustOccurConstraints = mustOccurConstraints; |
731 | 0 | } |
732 | |
|
733 | |
|
734 | |
|
735 | |
|
736 | |
|
737 | |
|
738 | |
|
739 | |
public SimpleConstraint getSimpleConstraint() { |
740 | 0 | return this.simpleConstraint; |
741 | |
} |
742 | |
|
743 | |
|
744 | |
|
745 | |
|
746 | |
|
747 | |
|
748 | |
|
749 | |
|
750 | |
public void setSimpleConstraint(SimpleConstraint simpleConstraint) { |
751 | 0 | this.simpleConstraint = simpleConstraint; |
752 | 0 | } |
753 | |
|
754 | |
|
755 | |
|
756 | |
|
757 | |
|
758 | |
|
759 | |
|
760 | |
|
761 | |
public Integer getMaxLength() { |
762 | 0 | return simpleConstraint.getMaxLength(); |
763 | |
} |
764 | |
|
765 | |
|
766 | |
|
767 | |
|
768 | |
|
769 | |
|
770 | |
public void setMaxLength(Integer maxLength) { |
771 | 0 | simpleConstraint.setMaxLength(maxLength); |
772 | 0 | } |
773 | |
|
774 | |
|
775 | |
|
776 | |
|
777 | |
public Integer getMinLength() { |
778 | 0 | return simpleConstraint.getMinLength(); |
779 | |
} |
780 | |
|
781 | |
|
782 | |
|
783 | |
|
784 | |
public void setMinLength(Integer minLength) { |
785 | 0 | simpleConstraint.setMinLength(minLength); |
786 | 0 | } |
787 | |
|
788 | |
|
789 | |
|
790 | |
|
791 | |
@Override |
792 | |
public Boolean getRequired() { |
793 | 0 | return this.simpleConstraint.getRequired(); |
794 | |
} |
795 | |
|
796 | |
|
797 | |
|
798 | |
|
799 | |
@Override |
800 | |
public void setRequired(Boolean required) { |
801 | 0 | this.simpleConstraint.setRequired(required); |
802 | 0 | } |
803 | |
|
804 | |
|
805 | |
|
806 | |
|
807 | |
|
808 | |
|
809 | |
public String getExclusiveMin() { |
810 | 0 | return simpleConstraint.getExclusiveMin(); |
811 | |
} |
812 | |
|
813 | |
|
814 | |
|
815 | |
|
816 | |
public void setExclusiveMin(String exclusiveMin) { |
817 | 0 | simpleConstraint.setExclusiveMin(exclusiveMin); |
818 | 0 | } |
819 | |
|
820 | |
|
821 | |
|
822 | |
|
823 | |
|
824 | |
|
825 | |
public String getInclusiveMax() { |
826 | 0 | return simpleConstraint.getInclusiveMax(); |
827 | |
} |
828 | |
|
829 | |
|
830 | |
|
831 | |
|
832 | |
public void setInclusiveMax(String inclusiveMax) { |
833 | 0 | simpleConstraint.setInclusiveMax(inclusiveMax); |
834 | 0 | } |
835 | |
|
836 | |
|
837 | |
|
838 | |
|
839 | |
|
840 | |
|
841 | |
public void setFieldDirectInquiry(DirectInquiry fieldDirectInquiry) { |
842 | 0 | this.fieldDirectInquiry = fieldDirectInquiry; |
843 | 0 | } |
844 | |
|
845 | |
|
846 | |
|
847 | |
|
848 | |
|
849 | |
|
850 | |
|
851 | |
|
852 | |
|
853 | |
|
854 | |
|
855 | |
|
856 | |
|
857 | |
|
858 | |
|
859 | |
public DirectInquiry getFieldDirectInquiry() { |
860 | 0 | return fieldDirectInquiry; |
861 | |
} |
862 | |
|
863 | |
|
864 | |
|
865 | |
|
866 | |
|
867 | |
|
868 | |
|
869 | |
|
870 | |
|
871 | |
|
872 | |
|
873 | |
|
874 | |
|
875 | |
|
876 | |
|
877 | |
public AttributeQuery getFieldAttributeQuery() { |
878 | 0 | return fieldAttributeQuery; |
879 | |
} |
880 | |
|
881 | |
|
882 | |
|
883 | |
|
884 | |
|
885 | |
|
886 | |
public void setFieldAttributeQuery(AttributeQuery fieldAttributeQuery) { |
887 | 0 | this.fieldAttributeQuery = fieldAttributeQuery; |
888 | 0 | } |
889 | |
|
890 | |
|
891 | |
|
892 | |
|
893 | |
|
894 | |
|
895 | |
|
896 | |
|
897 | |
|
898 | |
|
899 | |
|
900 | |
public boolean isPerformUppercase() { |
901 | 0 | return performUppercase; |
902 | |
} |
903 | |
|
904 | |
|
905 | |
|
906 | |
|
907 | |
|
908 | |
|
909 | |
public void setPerformUppercase(boolean performUppercase) { |
910 | 0 | this.performUppercase = performUppercase; |
911 | 0 | } |
912 | |
} |