1
2
3
4
5 package org.andromda.cartridges.jsf2.metafacades;
6
7 import java.util.Collection;
8 import org.andromda.core.common.Introspector;
9 import org.andromda.core.metafacade.MetafacadeBase;
10 import org.andromda.core.metafacade.MetafacadeFactory;
11 import org.andromda.core.metafacade.ModelValidationMessage;
12 import org.andromda.metafacades.uml.AttributeFacade;
13 import org.andromda.metafacades.uml.ClassifierFacade;
14 import org.andromda.metafacades.uml.ConstraintFacade;
15 import org.andromda.metafacades.uml.DependencyFacade;
16 import org.andromda.metafacades.uml.EnumerationFacade;
17 import org.andromda.metafacades.uml.FrontEndParameter;
18 import org.andromda.metafacades.uml.ModelElementFacade;
19 import org.andromda.metafacades.uml.ModelFacade;
20 import org.andromda.metafacades.uml.PackageFacade;
21 import org.andromda.metafacades.uml.ParameterFacade;
22 import org.andromda.metafacades.uml.StateMachineFacade;
23 import org.andromda.metafacades.uml.StereotypeFacade;
24 import org.andromda.metafacades.uml.TaggedValueFacade;
25 import org.andromda.metafacades.uml.TemplateParameterFacade;
26 import org.andromda.metafacades.uml.TypeMappings;
27
28
29
30
31
32
33
34 public abstract class JSFAttributeLogic
35 extends MetafacadeBase
36 implements JSFAttribute
37 {
38
39
40
41
42 protected Object metaObject;
43
44
45
46
47
48 protected JSFAttributeLogic(Object metaObjectIn, String context)
49 {
50 super(metaObjectIn, getContext(context));
51 this.superAttributeFacade =
52 (AttributeFacade)
53 MetafacadeFactory.getInstance().createFacadeImpl(
54 "org.andromda.metafacades.uml.AttributeFacade",
55 metaObjectIn,
56 getContext(context));
57 this.metaObject = metaObjectIn;
58 }
59
60
61
62
63
64
65 private static String getContext(String context)
66 {
67 if (context == null)
68 {
69 context = "org.andromda.cartridges.jsf2.metafacades.JSFAttribute";
70 }
71 return context;
72 }
73
74 private AttributeFacade superAttributeFacade;
75 private boolean superAttributeFacadeInitialized = false;
76
77
78
79
80
81 private AttributeFacade getSuperAttributeFacade()
82 {
83 if (!this.superAttributeFacadeInitialized)
84 {
85 ((MetafacadeBase)this.superAttributeFacade).setMetafacadeContext(this.getMetafacadeContext());
86 this.superAttributeFacadeInitialized = true;
87 }
88 return this.superAttributeFacade;
89 }
90
91
92
93
94
95 @Override
96 public void resetMetafacadeContext(String context)
97 {
98 if (!this.contextRoot)
99 {
100 context = getContext(context);
101 setMetafacadeContext (context);
102 if (this.superAttributeFacadeInitialized)
103 {
104 ((MetafacadeBase)this.superAttributeFacade).resetMetafacadeContext(context);
105 }
106 }
107 }
108
109
110
111
112
113 public boolean isJSFAttributeMetaType()
114 {
115 return true;
116 }
117
118
119
120
121
122
123
124 protected abstract String handleGetMessageKey();
125
126 private String __messageKey1a;
127 private boolean __messageKey1aSet = false;
128
129
130
131
132
133 public final String getMessageKey()
134 {
135 String messageKey1a = this.__messageKey1a;
136 if (!this.__messageKey1aSet)
137 {
138
139 messageKey1a = handleGetMessageKey();
140
141 this.__messageKey1a = messageKey1a;
142 if (isMetafacadePropertyCachingEnabled())
143 {
144 this.__messageKey1aSet = true;
145 }
146 }
147 return messageKey1a;
148 }
149
150
151
152
153
154 protected abstract String handleGetMessageValue();
155
156 private String __messageValue2a;
157 private boolean __messageValue2aSet = false;
158
159
160
161
162
163 public final String getMessageValue()
164 {
165 String messageValue2a = this.__messageValue2a;
166 if (!this.__messageValue2aSet)
167 {
168
169 messageValue2a = handleGetMessageValue();
170
171 this.__messageValue2a = messageValue2a;
172 if (isMetafacadePropertyCachingEnabled())
173 {
174 this.__messageValue2aSet = true;
175 }
176 }
177 return messageValue2a;
178 }
179
180
181
182
183
184 protected abstract String handleGetDummyValue();
185
186 private String __dummyValue3a;
187 private boolean __dummyValue3aSet = false;
188
189
190
191
192
193
194 public final String getDummyValue()
195 {
196 String dummyValue3a = this.__dummyValue3a;
197 if (!this.__dummyValue3aSet)
198 {
199
200 dummyValue3a = handleGetDummyValue();
201
202 this.__dummyValue3a = dummyValue3a;
203 if (isMetafacadePropertyCachingEnabled())
204 {
205 this.__dummyValue3aSet = true;
206 }
207 }
208 return dummyValue3a;
209 }
210
211
212
213
214
215 protected abstract String handleGetFormat();
216
217 private String __format4a;
218 private boolean __format4aSet = false;
219
220
221
222
223
224
225
226 public final String getFormat()
227 {
228 String format4a = this.__format4a;
229 if (!this.__format4aSet)
230 {
231
232 format4a = handleGetFormat();
233
234 this.__format4a = format4a;
235 if (isMetafacadePropertyCachingEnabled())
236 {
237 this.__format4aSet = true;
238 }
239 }
240 return format4a;
241 }
242
243
244
245
246
247 protected abstract boolean handleIsInputTextarea();
248
249 private boolean __inputTextarea5a;
250 private boolean __inputTextarea5aSet = false;
251
252
253
254
255
256 public final boolean isInputTextarea()
257 {
258 boolean inputTextarea5a = this.__inputTextarea5a;
259 if (!this.__inputTextarea5aSet)
260 {
261
262 inputTextarea5a = handleIsInputTextarea();
263
264 this.__inputTextarea5a = inputTextarea5a;
265 if (isMetafacadePropertyCachingEnabled())
266 {
267 this.__inputTextarea5aSet = true;
268 }
269 }
270 return inputTextarea5a;
271 }
272
273
274
275
276
277 protected abstract boolean handleIsInputText();
278
279 private boolean __inputText6a;
280 private boolean __inputText6aSet = false;
281
282
283
284
285
286 public final boolean isInputText()
287 {
288 boolean inputText6a = this.__inputText6a;
289 if (!this.__inputText6aSet)
290 {
291
292 inputText6a = handleIsInputText();
293
294 this.__inputText6a = inputText6a;
295 if (isMetafacadePropertyCachingEnabled())
296 {
297 this.__inputText6aSet = true;
298 }
299 }
300 return inputText6a;
301 }
302
303
304
305
306
307 protected abstract boolean handleIsInputSecret();
308
309 private boolean __inputSecret7a;
310 private boolean __inputSecret7aSet = false;
311
312
313
314
315
316 public final boolean isInputSecret()
317 {
318 boolean inputSecret7a = this.__inputSecret7a;
319 if (!this.__inputSecret7aSet)
320 {
321
322 inputSecret7a = handleIsInputSecret();
323
324 this.__inputSecret7a = inputSecret7a;
325 if (isMetafacadePropertyCachingEnabled())
326 {
327 this.__inputSecret7aSet = true;
328 }
329 }
330 return inputSecret7a;
331 }
332
333
334
335
336
337 protected abstract boolean handleIsInputSelect();
338
339 private boolean __inputSelect8a;
340 private boolean __inputSelect8aSet = false;
341
342
343
344
345
346 public final boolean isInputSelect()
347 {
348 boolean inputSelect8a = this.__inputSelect8a;
349 if (!this.__inputSelect8aSet)
350 {
351
352 inputSelect8a = handleIsInputSelect();
353
354 this.__inputSelect8a = inputSelect8a;
355 if (isMetafacadePropertyCachingEnabled())
356 {
357 this.__inputSelect8aSet = true;
358 }
359 }
360 return inputSelect8a;
361 }
362
363
364
365
366
367 protected abstract boolean handleIsInputRadio();
368
369 private boolean __inputRadio9a;
370 private boolean __inputRadio9aSet = false;
371
372
373
374
375
376 public final boolean isInputRadio()
377 {
378 boolean inputRadio9a = this.__inputRadio9a;
379 if (!this.__inputRadio9aSet)
380 {
381
382 inputRadio9a = handleIsInputRadio();
383
384 this.__inputRadio9a = inputRadio9a;
385 if (isMetafacadePropertyCachingEnabled())
386 {
387 this.__inputRadio9aSet = true;
388 }
389 }
390 return inputRadio9a;
391 }
392
393
394
395
396
397 protected abstract boolean handleIsInputMultibox();
398
399 private boolean __inputMultibox10a;
400 private boolean __inputMultibox10aSet = false;
401
402
403
404
405
406 public final boolean isInputMultibox()
407 {
408 boolean inputMultibox10a = this.__inputMultibox10a;
409 if (!this.__inputMultibox10aSet)
410 {
411
412 inputMultibox10a = handleIsInputMultibox();
413
414 this.__inputMultibox10a = inputMultibox10a;
415 if (isMetafacadePropertyCachingEnabled())
416 {
417 this.__inputMultibox10aSet = true;
418 }
419 }
420 return inputMultibox10a;
421 }
422
423
424
425
426
427 protected abstract boolean handleIsInputHidden();
428
429 private boolean __inputHidden11a;
430 private boolean __inputHidden11aSet = false;
431
432
433
434
435
436 public final boolean isInputHidden()
437 {
438 boolean inputHidden11a = this.__inputHidden11a;
439 if (!this.__inputHidden11aSet)
440 {
441
442 inputHidden11a = handleIsInputHidden();
443
444 this.__inputHidden11a = inputHidden11a;
445 if (isMetafacadePropertyCachingEnabled())
446 {
447 this.__inputHidden11aSet = true;
448 }
449 }
450 return inputHidden11a;
451 }
452
453
454
455
456
457 protected abstract boolean handleIsInputFile();
458
459 private boolean __inputFile12a;
460 private boolean __inputFile12aSet = false;
461
462
463
464
465
466 public final boolean isInputFile()
467 {
468 boolean inputFile12a = this.__inputFile12a;
469 if (!this.__inputFile12aSet)
470 {
471
472 inputFile12a = handleIsInputFile();
473
474 this.__inputFile12a = inputFile12a;
475 if (isMetafacadePropertyCachingEnabled())
476 {
477 this.__inputFile12aSet = true;
478 }
479 }
480 return inputFile12a;
481 }
482
483
484
485
486
487 protected abstract boolean handleIsInputCheckbox();
488
489 private boolean __inputCheckbox13a;
490 private boolean __inputCheckbox13aSet = false;
491
492
493
494
495
496 public final boolean isInputCheckbox()
497 {
498 boolean inputCheckbox13a = this.__inputCheckbox13a;
499 if (!this.__inputCheckbox13aSet)
500 {
501
502 inputCheckbox13a = handleIsInputCheckbox();
503
504 this.__inputCheckbox13a = inputCheckbox13a;
505 if (isMetafacadePropertyCachingEnabled())
506 {
507 this.__inputCheckbox13aSet = true;
508 }
509 }
510 return inputCheckbox13a;
511 }
512
513
514
515
516
517 protected abstract String handleGetValueListDummyValue();
518
519 private String __valueListDummyValue14a;
520 private boolean __valueListDummyValue14aSet = false;
521
522
523
524
525
526 public final String getValueListDummyValue()
527 {
528 String valueListDummyValue14a = this.__valueListDummyValue14a;
529 if (!this.__valueListDummyValue14aSet)
530 {
531
532 valueListDummyValue14a = handleGetValueListDummyValue();
533
534 this.__valueListDummyValue14a = valueListDummyValue14a;
535 if (isMetafacadePropertyCachingEnabled())
536 {
537 this.__valueListDummyValue14aSet = true;
538 }
539 }
540 return valueListDummyValue14a;
541 }
542
543
544
545
546
547 protected abstract String handleGetValidWhen();
548
549 private String __validWhen15a;
550 private boolean __validWhen15aSet = false;
551
552
553
554
555
556
557
558 public final String getValidWhen()
559 {
560 String validWhen15a = this.__validWhen15a;
561 if (!this.__validWhen15aSet)
562 {
563
564 validWhen15a = handleGetValidWhen();
565
566 this.__validWhen15a = validWhen15a;
567 if (isMetafacadePropertyCachingEnabled())
568 {
569 this.__validWhen15aSet = true;
570 }
571 }
572 return validWhen15a;
573 }
574
575
576
577
578
579 protected abstract Collection handleGetValidatorTypes();
580
581 private Collection __validatorTypes16a;
582 private boolean __validatorTypes16aSet = false;
583
584
585
586
587
588 public final Collection getValidatorTypes()
589 {
590 Collection validatorTypes16a = this.__validatorTypes16a;
591 if (!this.__validatorTypes16aSet)
592 {
593
594 validatorTypes16a = handleGetValidatorTypes();
595
596 this.__validatorTypes16a = validatorTypes16a;
597 if (isMetafacadePropertyCachingEnabled())
598 {
599 this.__validatorTypes16aSet = true;
600 }
601 }
602 return validatorTypes16a;
603 }
604
605
606
607
608
609 protected abstract boolean handleIsValidationRequired();
610
611 private boolean __validationRequired17a;
612 private boolean __validationRequired17aSet = false;
613
614
615
616
617
618
619 public final boolean isValidationRequired()
620 {
621 boolean validationRequired17a = this.__validationRequired17a;
622 if (!this.__validationRequired17aSet)
623 {
624
625 validationRequired17a = handleIsValidationRequired();
626
627 this.__validationRequired17a = validationRequired17a;
628 if (isMetafacadePropertyCachingEnabled())
629 {
630 this.__validationRequired17aSet = true;
631 }
632 }
633 return validationRequired17a;
634 }
635
636
637
638
639
640 protected abstract boolean handleIsStrictDateFormat();
641
642 private boolean __strictDateFormat18a;
643 private boolean __strictDateFormat18aSet = false;
644
645
646
647
648
649
650 public final boolean isStrictDateFormat()
651 {
652 boolean strictDateFormat18a = this.__strictDateFormat18a;
653 if (!this.__strictDateFormat18aSet)
654 {
655
656 strictDateFormat18a = handleIsStrictDateFormat();
657
658 this.__strictDateFormat18a = strictDateFormat18a;
659 if (isMetafacadePropertyCachingEnabled())
660 {
661 this.__strictDateFormat18aSet = true;
662 }
663 }
664 return strictDateFormat18a;
665 }
666
667
668
669
670
671 protected abstract boolean handleIsEqualValidator();
672
673 private boolean __equalValidator19a;
674 private boolean __equalValidator19aSet = false;
675
676
677
678
679
680 public final boolean isEqualValidator()
681 {
682 boolean equalValidator19a = this.__equalValidator19a;
683 if (!this.__equalValidator19aSet)
684 {
685
686 equalValidator19a = handleIsEqualValidator();
687
688 this.__equalValidator19a = equalValidator19a;
689 if (isMetafacadePropertyCachingEnabled())
690 {
691 this.__equalValidator19aSet = true;
692 }
693 }
694 return equalValidator19a;
695 }
696
697
698
699
700
701 protected abstract boolean handleIsInputTable();
702
703 private boolean __inputTable20a;
704 private boolean __inputTable20aSet = false;
705
706
707
708
709
710 public final boolean isInputTable()
711 {
712 boolean inputTable20a = this.__inputTable20a;
713 if (!this.__inputTable20aSet)
714 {
715
716 inputTable20a = handleIsInputTable();
717
718 this.__inputTable20a = inputTable20a;
719 if (isMetafacadePropertyCachingEnabled())
720 {
721 this.__inputTable20aSet = true;
722 }
723 }
724 return inputTable20a;
725 }
726
727
728
729
730
731 protected abstract boolean handleIsInputTypePresent();
732
733 private boolean __inputTypePresent21a;
734 private boolean __inputTypePresent21aSet = false;
735
736
737
738
739
740 public final boolean isInputTypePresent()
741 {
742 boolean inputTypePresent21a = this.__inputTypePresent21a;
743 if (!this.__inputTypePresent21aSet)
744 {
745
746 inputTypePresent21a = handleIsInputTypePresent();
747
748 this.__inputTypePresent21a = inputTypePresent21a;
749 if (isMetafacadePropertyCachingEnabled())
750 {
751 this.__inputTypePresent21aSet = true;
752 }
753 }
754 return inputTypePresent21a;
755 }
756
757
758
759
760
761 protected abstract boolean handleIsPlaintext();
762
763 private boolean __plaintext22a;
764 private boolean __plaintext22aSet = false;
765
766
767
768
769
770
771 public final boolean isPlaintext()
772 {
773 boolean plaintext22a = this.__plaintext22a;
774 if (!this.__plaintext22aSet)
775 {
776
777 plaintext22a = handleIsPlaintext();
778
779 this.__plaintext22a = plaintext22a;
780 if (isMetafacadePropertyCachingEnabled())
781 {
782 this.__plaintext22aSet = true;
783 }
784 }
785 return plaintext22a;
786 }
787
788
789
790
791
792 protected abstract String handleGetInputTableIdentifierColumns();
793
794 private String __inputTableIdentifierColumns23a;
795 private boolean __inputTableIdentifierColumns23aSet = false;
796
797
798
799
800
801
802 public final String getInputTableIdentifierColumns()
803 {
804 String inputTableIdentifierColumns23a = this.__inputTableIdentifierColumns23a;
805 if (!this.__inputTableIdentifierColumns23aSet)
806 {
807
808 inputTableIdentifierColumns23a = handleGetInputTableIdentifierColumns();
809
810 this.__inputTableIdentifierColumns23a = inputTableIdentifierColumns23a;
811 if (isMetafacadePropertyCachingEnabled())
812 {
813 this.__inputTableIdentifierColumns23aSet = true;
814 }
815 }
816 return inputTableIdentifierColumns23a;
817 }
818
819
820
821
822
823 protected abstract String handleGetMaxLength();
824
825 private String __maxLength24a;
826 private boolean __maxLength24aSet = false;
827
828
829
830
831
832 public final String getMaxLength()
833 {
834 String maxLength24a = this.__maxLength24a;
835 if (!this.__maxLength24aSet)
836 {
837
838 maxLength24a = handleGetMaxLength();
839
840 this.__maxLength24a = maxLength24a;
841 if (isMetafacadePropertyCachingEnabled())
842 {
843 this.__maxLength24aSet = true;
844 }
845 }
846 return maxLength24a;
847 }
848
849
850
851
852
853
854
855
856
857
858 protected abstract String handleGetFormPropertyName(ParameterFacade ownerParameter);
859
860
861
862
863
864
865
866
867 public String getFormPropertyName(ParameterFacade ownerParameter)
868 {
869
870 String returnValue = handleGetFormPropertyName(ownerParameter);
871
872 return returnValue;
873 }
874
875
876
877
878
879
880
881 protected abstract String handleGetFormPropertyId(ParameterFacade ownerParameter);
882
883
884
885
886
887
888
889 public String getFormPropertyId(ParameterFacade ownerParameter)
890 {
891
892 String returnValue = handleGetFormPropertyId(ownerParameter);
893
894 return returnValue;
895 }
896
897
898
899
900
901
902
903
904 protected abstract String handleGetBackingListName(ParameterFacade ownerParameter);
905
906
907
908
909
910
911
912
913 public String getBackingListName(ParameterFacade ownerParameter)
914 {
915
916 String returnValue = handleGetBackingListName(ownerParameter);
917
918 return returnValue;
919 }
920
921
922
923
924
925
926
927
928
929 protected abstract String handleGetLabelListName(ParameterFacade ownerParameter);
930
931
932
933
934
935
936
937
938
939 public String getLabelListName(ParameterFacade ownerParameter)
940 {
941
942 String returnValue = handleGetLabelListName(ownerParameter);
943
944 return returnValue;
945 }
946
947
948
949
950
951
952
953
954 protected abstract String handleGetValueListName(ParameterFacade ownerParameter);
955
956
957
958
959
960
961
962
963 public String getValueListName(ParameterFacade ownerParameter)
964 {
965
966 String returnValue = handleGetValueListName(ownerParameter);
967
968 return returnValue;
969 }
970
971
972
973
974
975
976
977 protected abstract boolean handleIsSelectable(FrontEndParameter ownerParameter);
978
979
980
981
982
983
984
985 public boolean isSelectable(FrontEndParameter ownerParameter)
986 {
987
988 boolean returnValue = handleIsSelectable(ownerParameter);
989
990 return returnValue;
991 }
992
993
994
995
996
997
998
999 protected abstract Collection handleGetValidatorArgs(String validatorType);
1000
1001
1002
1003
1004
1005
1006
1007 public Collection getValidatorArgs(String validatorType)
1008 {
1009
1010 Collection returnValue = handleGetValidatorArgs(validatorType);
1011
1012 return returnValue;
1013 }
1014
1015
1016
1017
1018
1019
1020
1021
1022 protected abstract String handleGetDateFormatter(JSFParameter ownerParameter);
1023
1024
1025
1026
1027
1028
1029
1030
1031 public String getDateFormatter(JSFParameter ownerParameter)
1032 {
1033
1034 String returnValue = handleGetDateFormatter(ownerParameter);
1035
1036 return returnValue;
1037 }
1038
1039
1040
1041
1042
1043
1044
1045 protected abstract String handleGetTimeFormatter(JSFParameter ownerParameter);
1046
1047
1048
1049
1050
1051
1052
1053 public String getTimeFormatter(JSFParameter ownerParameter)
1054 {
1055
1056 String returnValue = handleGetTimeFormatter(ownerParameter);
1057
1058 return returnValue;
1059 }
1060
1061
1062
1063
1064
1065
1066
1067 protected abstract String handleGetBackingValueName(ParameterFacade ownerParameter);
1068
1069
1070
1071
1072
1073
1074
1075
1076 public String getBackingValueName(ParameterFacade ownerParameter)
1077 {
1078
1079 String returnValue = handleGetBackingValueName(ownerParameter);
1080
1081 return returnValue;
1082 }
1083
1084
1085
1086
1087
1088
1089
1090
1091 protected abstract boolean handleIsBackingValueRequired(FrontEndParameter ownerParameter);
1092
1093
1094
1095
1096
1097
1098
1099
1100 public boolean isBackingValueRequired(FrontEndParameter ownerParameter)
1101 {
1102
1103 boolean returnValue = handleIsBackingValueRequired(ownerParameter);
1104
1105 return returnValue;
1106 }
1107
1108
1109
1110
1111
1112
1113
1114 protected abstract Collection handleGetValidatorVars(JSFParameter ownerParameter);
1115
1116
1117
1118
1119
1120
1121
1122
1123 public Collection getValidatorVars(JSFParameter ownerParameter)
1124 {
1125
1126 Collection returnValue = handleGetValidatorVars(ownerParameter);
1127
1128 return returnValue;
1129 }
1130
1131
1132
1133
1134
1135 public boolean isAttributeFacadeMetaType()
1136 {
1137 return true;
1138 }
1139
1140
1141
1142
1143
1144 public boolean isModelElementFacadeMetaType()
1145 {
1146 return true;
1147 }
1148
1149
1150
1151
1152
1153
1154
1155
1156 public Object findTaggedValue(String name, boolean follow)
1157 {
1158 return this.getSuperAttributeFacade().findTaggedValue(name, follow);
1159 }
1160
1161
1162
1163
1164
1165 public String getDefaultValue()
1166 {
1167 return this.getSuperAttributeFacade().getDefaultValue();
1168 }
1169
1170
1171
1172
1173
1174
1175 public EnumerationFacade getEnumeration()
1176 {
1177 return this.getSuperAttributeFacade().getEnumeration();
1178 }
1179
1180
1181
1182
1183
1184 public String getEnumerationLiteralParameters()
1185 {
1186 return this.getSuperAttributeFacade().getEnumerationLiteralParameters();
1187 }
1188
1189
1190
1191
1192
1193
1194
1195 public String getEnumerationValue()
1196 {
1197 return this.getSuperAttributeFacade().getEnumerationValue();
1198 }
1199
1200
1201
1202
1203
1204 public String getGetterName()
1205 {
1206 return this.getSuperAttributeFacade().getGetterName();
1207 }
1208
1209
1210
1211
1212
1213
1214 public String getGetterSetterTypeName()
1215 {
1216 return this.getSuperAttributeFacade().getGetterSetterTypeName();
1217 }
1218
1219
1220
1221
1222
1223
1224 public int getLower()
1225 {
1226 return this.getSuperAttributeFacade().getLower();
1227 }
1228
1229
1230
1231
1232
1233 public ClassifierFacade getOwner()
1234 {
1235 return this.getSuperAttributeFacade().getOwner();
1236 }
1237
1238
1239
1240
1241
1242 public String getSetterName()
1243 {
1244 return this.getSuperAttributeFacade().getSetterName();
1245 }
1246
1247
1248
1249
1250
1251 public ClassifierFacade getType()
1252 {
1253 return this.getSuperAttributeFacade().getType();
1254 }
1255
1256
1257
1258
1259
1260
1261 public int getUpper()
1262 {
1263 return this.getSuperAttributeFacade().getUpper();
1264 }
1265
1266
1267
1268
1269
1270 public boolean isAddOnly()
1271 {
1272 return this.getSuperAttributeFacade().isAddOnly();
1273 }
1274
1275
1276
1277
1278
1279 public boolean isChangeable()
1280 {
1281 return this.getSuperAttributeFacade().isChangeable();
1282 }
1283
1284
1285
1286
1287
1288 public boolean isDefaultValuePresent()
1289 {
1290 return this.getSuperAttributeFacade().isDefaultValuePresent();
1291 }
1292
1293
1294
1295
1296
1297
1298 public boolean isDerived()
1299 {
1300 return this.getSuperAttributeFacade().isDerived();
1301 }
1302
1303
1304
1305
1306
1307 public boolean isEnumerationLiteral()
1308 {
1309 return this.getSuperAttributeFacade().isEnumerationLiteral();
1310 }
1311
1312
1313
1314
1315
1316
1317 public boolean isEnumerationLiteralParametersExist()
1318 {
1319 return this.getSuperAttributeFacade().isEnumerationLiteralParametersExist();
1320 }
1321
1322
1323
1324
1325
1326
1327 public boolean isEnumerationMember()
1328 {
1329 return this.getSuperAttributeFacade().isEnumerationMember();
1330 }
1331
1332
1333
1334
1335
1336
1337 public boolean isLeaf()
1338 {
1339 return this.getSuperAttributeFacade().isLeaf();
1340 }
1341
1342
1343
1344
1345
1346 public boolean isMany()
1347 {
1348 return this.getSuperAttributeFacade().isMany();
1349 }
1350
1351
1352
1353
1354
1355 public boolean isOrdered()
1356 {
1357 return this.getSuperAttributeFacade().isOrdered();
1358 }
1359
1360
1361
1362
1363
1364 public boolean isReadOnly()
1365 {
1366 return this.getSuperAttributeFacade().isReadOnly();
1367 }
1368
1369
1370
1371
1372
1373 public boolean isRequired()
1374 {
1375 return this.getSuperAttributeFacade().isRequired();
1376 }
1377
1378
1379
1380
1381
1382 public boolean isStatic()
1383 {
1384 return this.getSuperAttributeFacade().isStatic();
1385 }
1386
1387
1388
1389
1390
1391
1392 public boolean isUnique()
1393 {
1394 return this.getSuperAttributeFacade().isUnique();
1395 }
1396
1397
1398
1399
1400
1401 public void copyTaggedValues(ModelElementFacade element)
1402 {
1403 this.getSuperAttributeFacade().copyTaggedValues(element);
1404 }
1405
1406
1407
1408
1409
1410
1411 public Object findTaggedValue(String tagName)
1412 {
1413 return this.getSuperAttributeFacade().findTaggedValue(tagName);
1414 }
1415
1416
1417
1418
1419
1420
1421 public Collection<Object> findTaggedValues(String tagName)
1422 {
1423 return this.getSuperAttributeFacade().findTaggedValues(tagName);
1424 }
1425
1426
1427
1428
1429
1430
1431
1432 public String getBindedFullyQualifiedName(ModelElementFacade bindedElement)
1433 {
1434 return this.getSuperAttributeFacade().getBindedFullyQualifiedName(bindedElement);
1435 }
1436
1437
1438
1439
1440
1441 public Collection<ConstraintFacade> getConstraints()
1442 {
1443 return this.getSuperAttributeFacade().getConstraints();
1444 }
1445
1446
1447
1448
1449
1450
1451 public Collection<ConstraintFacade> getConstraints(String kind)
1452 {
1453 return this.getSuperAttributeFacade().getConstraints(kind);
1454 }
1455
1456
1457
1458
1459
1460
1461
1462 public String getDocumentation(String indent)
1463 {
1464 return this.getSuperAttributeFacade().getDocumentation(indent);
1465 }
1466
1467
1468
1469
1470
1471
1472
1473
1474 public String getDocumentation(String indent, int lineLength)
1475 {
1476 return this.getSuperAttributeFacade().getDocumentation(indent, lineLength);
1477 }
1478
1479
1480
1481
1482
1483
1484
1485 public String getDocumentation(String indent, int lineLength, boolean htmlStyle)
1486 {
1487 return this.getSuperAttributeFacade().getDocumentation(indent, lineLength, htmlStyle);
1488 }
1489
1490
1491
1492
1493
1494 public String getFullyQualifiedName()
1495 {
1496 return this.getSuperAttributeFacade().getFullyQualifiedName();
1497 }
1498
1499
1500
1501
1502
1503
1504
1505
1506 public String getFullyQualifiedName(boolean modelName)
1507 {
1508 return this.getSuperAttributeFacade().getFullyQualifiedName(modelName);
1509 }
1510
1511
1512
1513
1514
1515
1516 public String getFullyQualifiedNamePath()
1517 {
1518 return this.getSuperAttributeFacade().getFullyQualifiedNamePath();
1519 }
1520
1521
1522
1523
1524
1525 public String getId()
1526 {
1527 return this.getSuperAttributeFacade().getId();
1528 }
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538 public Collection<String> getKeywords()
1539 {
1540 return this.getSuperAttributeFacade().getKeywords();
1541 }
1542
1543
1544
1545
1546
1547 public String getLabel()
1548 {
1549 return this.getSuperAttributeFacade().getLabel();
1550 }
1551
1552
1553
1554
1555
1556 public TypeMappings getLanguageMappings()
1557 {
1558 return this.getSuperAttributeFacade().getLanguageMappings();
1559 }
1560
1561
1562
1563
1564
1565
1566 public ModelFacade getModel()
1567 {
1568 return this.getSuperAttributeFacade().getModel();
1569 }
1570
1571
1572
1573
1574
1575 public String getName()
1576 {
1577 return this.getSuperAttributeFacade().getName();
1578 }
1579
1580
1581
1582
1583
1584 public ModelElementFacade getPackage()
1585 {
1586 return this.getSuperAttributeFacade().getPackage();
1587 }
1588
1589
1590
1591
1592
1593 public String getPackageName()
1594 {
1595 return this.getSuperAttributeFacade().getPackageName();
1596 }
1597
1598
1599
1600
1601
1602
1603 public String getPackageName(boolean modelName)
1604 {
1605 return this.getSuperAttributeFacade().getPackageName(modelName);
1606 }
1607
1608
1609
1610
1611
1612 public String getPackagePath()
1613 {
1614 return this.getSuperAttributeFacade().getPackagePath();
1615 }
1616
1617
1618
1619
1620
1621
1622
1623
1624 public String getQualifiedName()
1625 {
1626 return this.getSuperAttributeFacade().getQualifiedName();
1627 }
1628
1629
1630
1631
1632
1633 public PackageFacade getRootPackage()
1634 {
1635 return this.getSuperAttributeFacade().getRootPackage();
1636 }
1637
1638
1639
1640
1641
1642 public Collection<DependencyFacade> getSourceDependencies()
1643 {
1644 return this.getSuperAttributeFacade().getSourceDependencies();
1645 }
1646
1647
1648
1649
1650
1651
1652 public StateMachineFacade getStateMachineContext()
1653 {
1654 return this.getSuperAttributeFacade().getStateMachineContext();
1655 }
1656
1657
1658
1659
1660
1661 public Collection<String> getStereotypeNames()
1662 {
1663 return this.getSuperAttributeFacade().getStereotypeNames();
1664 }
1665
1666
1667
1668
1669
1670 public Collection<StereotypeFacade> getStereotypes()
1671 {
1672 return this.getSuperAttributeFacade().getStereotypes();
1673 }
1674
1675
1676
1677
1678
1679 public Collection<TaggedValueFacade> getTaggedValues()
1680 {
1681 return this.getSuperAttributeFacade().getTaggedValues();
1682 }
1683
1684
1685
1686
1687
1688 public Collection<DependencyFacade> getTargetDependencies()
1689 {
1690 return this.getSuperAttributeFacade().getTargetDependencies();
1691 }
1692
1693
1694
1695
1696
1697 public Object getTemplateParameter(String parameterName)
1698 {
1699 return this.getSuperAttributeFacade().getTemplateParameter(parameterName);
1700 }
1701
1702
1703
1704
1705
1706 public Collection<TemplateParameterFacade> getTemplateParameters()
1707 {
1708 return this.getSuperAttributeFacade().getTemplateParameters();
1709 }
1710
1711
1712
1713
1714
1715
1716 public String getVisibility()
1717 {
1718 return this.getSuperAttributeFacade().getVisibility();
1719 }
1720
1721
1722
1723
1724
1725
1726 public boolean hasExactStereotype(String stereotypeName)
1727 {
1728 return this.getSuperAttributeFacade().hasExactStereotype(stereotypeName);
1729 }
1730
1731
1732
1733
1734
1735
1736 public boolean hasKeyword(String keywordName)
1737 {
1738 return this.getSuperAttributeFacade().hasKeyword(keywordName);
1739 }
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753 public boolean hasStereotype(String stereotypeName)
1754 {
1755 return this.getSuperAttributeFacade().hasStereotype(stereotypeName);
1756 }
1757
1758
1759
1760
1761
1762
1763 public boolean isBindingDependenciesPresent()
1764 {
1765 return this.getSuperAttributeFacade().isBindingDependenciesPresent();
1766 }
1767
1768
1769
1770
1771
1772 public boolean isConstraintsPresent()
1773 {
1774 return this.getSuperAttributeFacade().isConstraintsPresent();
1775 }
1776
1777
1778
1779
1780
1781 public boolean isDocumentationPresent()
1782 {
1783 return this.getSuperAttributeFacade().isDocumentationPresent();
1784 }
1785
1786
1787
1788
1789
1790 public boolean isReservedWord()
1791 {
1792 return this.getSuperAttributeFacade().isReservedWord();
1793 }
1794
1795
1796
1797
1798
1799
1800 public boolean isTemplateParametersPresent()
1801 {
1802 return this.getSuperAttributeFacade().isTemplateParametersPresent();
1803 }
1804
1805
1806
1807
1808
1809
1810
1811 public boolean isValidIdentifierName()
1812 {
1813 return this.getSuperAttributeFacade().isValidIdentifierName();
1814 }
1815
1816
1817
1818
1819
1820
1821
1822 public String translateConstraint(String name, String translation)
1823 {
1824 return this.getSuperAttributeFacade().translateConstraint(name, translation);
1825 }
1826
1827
1828
1829
1830
1831 public String[] translateConstraints(String translation)
1832 {
1833 return this.getSuperAttributeFacade().translateConstraints(translation);
1834 }
1835
1836
1837
1838
1839
1840 public String[] translateConstraints(String kind, String translation)
1841 {
1842 return this.getSuperAttributeFacade().translateConstraints(kind, translation);
1843 }
1844
1845
1846
1847
1848 @Override
1849 public void initialize()
1850 {
1851 this.getSuperAttributeFacade().initialize();
1852 }
1853
1854
1855
1856
1857
1858 @Override
1859 public Object getValidationOwner()
1860 {
1861 Object owner = this.getSuperAttributeFacade().getValidationOwner();
1862 return owner;
1863 }
1864
1865
1866
1867
1868
1869 @Override
1870 public String getValidationName()
1871 {
1872 String name = this.getSuperAttributeFacade().getValidationName();
1873 return name;
1874 }
1875
1876
1877
1878
1879
1880 @Override
1881 public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
1882 {
1883 this.getSuperAttributeFacade().validateInvariants(validationMessages);
1884 }
1885
1886
1887
1888
1889 private static final String NAME_PROPERTY = "name";
1890 private static final String FQNAME_PROPERTY = "fullyQualifiedName";
1891
1892
1893
1894
1895 @Override
1896 public String toString()
1897 {
1898 final StringBuilder toString = new StringBuilder(this.getClass().getName());
1899 toString.append("[");
1900 try
1901 {
1902 toString.append(Introspector.instance().getProperty(this, FQNAME_PROPERTY));
1903 }
1904 catch (final Throwable tryAgain)
1905 {
1906 try
1907 {
1908 toString.append(Introspector.instance().getProperty(this, NAME_PROPERTY));
1909 }
1910 catch (final Throwable ignore)
1911 {
1912
1913 }
1914 }
1915 toString.append("]");
1916 return toString.toString();
1917 }
1918 }