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