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.AssociationEndFacade;
13 import org.andromda.metafacades.uml.AssociationFacade;
14 import org.andromda.metafacades.uml.ClassifierFacade;
15 import org.andromda.metafacades.uml.ConstraintFacade;
16 import org.andromda.metafacades.uml.DependencyFacade;
17 import org.andromda.metafacades.uml.EntityAttribute;
18 import org.andromda.metafacades.uml.ManageableEntityAssociationEnd;
19 import org.andromda.metafacades.uml.ModelElementFacade;
20 import org.andromda.metafacades.uml.ModelFacade;
21 import org.andromda.metafacades.uml.PackageFacade;
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
35 public abstract class JSFManageableEntityAssociationEndLogic
36 extends MetafacadeBase
37 implements JSFManageableEntityAssociationEnd
38 {
39
40
41
42
43 protected Object metaObject;
44
45
46
47
48
49 protected JSFManageableEntityAssociationEndLogic(Object metaObjectIn, String context)
50 {
51 super(metaObjectIn, getContext(context));
52 this.superManageableEntityAssociationEnd =
53 (ManageableEntityAssociationEnd)
54 MetafacadeFactory.getInstance().createFacadeImpl(
55 "org.andromda.metafacades.uml.ManageableEntityAssociationEnd",
56 metaObjectIn,
57 getContext(context));
58 this.metaObject = metaObjectIn;
59 }
60
61
62
63
64
65
66 private static String getContext(String context)
67 {
68 if (context == null)
69 {
70 context = "org.andromda.cartridges.jsf2.metafacades.JSFManageableEntityAssociationEnd";
71 }
72 return context;
73 }
74
75 private ManageableEntityAssociationEnd superManageableEntityAssociationEnd;
76 private boolean superManageableEntityAssociationEndInitialized = false;
77
78
79
80
81
82 private ManageableEntityAssociationEnd getSuperManageableEntityAssociationEnd()
83 {
84 if (!this.superManageableEntityAssociationEndInitialized)
85 {
86 ((MetafacadeBase)this.superManageableEntityAssociationEnd).setMetafacadeContext(this.getMetafacadeContext());
87 this.superManageableEntityAssociationEndInitialized = true;
88 }
89 return this.superManageableEntityAssociationEnd;
90 }
91
92
93
94
95
96 @Override
97 public void resetMetafacadeContext(String context)
98 {
99 if (!this.contextRoot)
100 {
101 context = getContext(context);
102 setMetafacadeContext (context);
103 if (this.superManageableEntityAssociationEndInitialized)
104 {
105 ((MetafacadeBase)this.superManageableEntityAssociationEnd).resetMetafacadeContext(context);
106 }
107 }
108 }
109
110
111
112
113
114 public boolean isJSFManageableEntityAssociationEndMetaType()
115 {
116 return true;
117 }
118
119
120
121
122
123
124
125 protected abstract String handleGetMessageKey();
126
127 private String __messageKey1a;
128 private boolean __messageKey1aSet = false;
129
130
131
132
133
134
135 public final String getMessageKey()
136 {
137 String messageKey1a = this.__messageKey1a;
138 if (!this.__messageKey1aSet)
139 {
140
141 messageKey1a = handleGetMessageKey();
142
143 this.__messageKey1a = messageKey1a;
144 if (isMetafacadePropertyCachingEnabled())
145 {
146 this.__messageKey1aSet = true;
147 }
148 }
149 return messageKey1a;
150 }
151
152
153
154
155
156 protected abstract String handleGetMessageValue();
157
158 private String __messageValue2a;
159 private boolean __messageValue2aSet = false;
160
161
162
163
164
165
166 public final String getMessageValue()
167 {
168 String messageValue2a = this.__messageValue2a;
169 if (!this.__messageValue2aSet)
170 {
171
172 messageValue2a = handleGetMessageValue();
173
174 this.__messageValue2a = messageValue2a;
175 if (isMetafacadePropertyCachingEnabled())
176 {
177 this.__messageValue2aSet = true;
178 }
179 }
180 return messageValue2a;
181 }
182
183
184
185
186
187 protected abstract String handleGetOnlineHelpKey();
188
189 private String __onlineHelpKey3a;
190 private boolean __onlineHelpKey3aSet = false;
191
192
193
194
195
196
197 public final String getOnlineHelpKey()
198 {
199 String onlineHelpKey3a = this.__onlineHelpKey3a;
200 if (!this.__onlineHelpKey3aSet)
201 {
202
203 onlineHelpKey3a = handleGetOnlineHelpKey();
204
205 this.__onlineHelpKey3a = onlineHelpKey3a;
206 if (isMetafacadePropertyCachingEnabled())
207 {
208 this.__onlineHelpKey3aSet = true;
209 }
210 }
211 return onlineHelpKey3a;
212 }
213
214
215
216
217
218 protected abstract String handleGetOnlineHelpValue();
219
220 private String __onlineHelpValue4a;
221 private boolean __onlineHelpValue4aSet = false;
222
223
224
225
226
227
228 public final String getOnlineHelpValue()
229 {
230 String onlineHelpValue4a = this.__onlineHelpValue4a;
231 if (!this.__onlineHelpValue4aSet)
232 {
233
234 onlineHelpValue4a = handleGetOnlineHelpValue();
235
236 this.__onlineHelpValue4a = onlineHelpValue4a;
237 if (isMetafacadePropertyCachingEnabled())
238 {
239 this.__onlineHelpValue4aSet = true;
240 }
241 }
242 return onlineHelpValue4a;
243 }
244
245
246
247
248
249 protected abstract String handleGetBackingListName();
250
251 private String __backingListName5a;
252 private boolean __backingListName5aSet = false;
253
254
255
256
257
258
259 public final String getBackingListName()
260 {
261 String backingListName5a = this.__backingListName5a;
262 if (!this.__backingListName5aSet)
263 {
264
265 backingListName5a = handleGetBackingListName();
266
267 this.__backingListName5a = backingListName5a;
268 if (isMetafacadePropertyCachingEnabled())
269 {
270 this.__backingListName5aSet = true;
271 }
272 }
273 return backingListName5a;
274 }
275
276
277
278
279
280 protected abstract String handleGetValueListName();
281
282 private String __valueListName6a;
283 private boolean __valueListName6aSet = false;
284
285
286
287
288
289
290 public final String getValueListName()
291 {
292 String valueListName6a = this.__valueListName6a;
293 if (!this.__valueListName6aSet)
294 {
295
296 valueListName6a = handleGetValueListName();
297
298 this.__valueListName6a = valueListName6a;
299 if (isMetafacadePropertyCachingEnabled())
300 {
301 this.__valueListName6aSet = true;
302 }
303 }
304 return valueListName6a;
305 }
306
307
308
309
310
311 protected abstract String handleGetLabelListName();
312
313 private String __labelListName7a;
314 private boolean __labelListName7aSet = false;
315
316
317
318
319
320
321 public final String getLabelListName()
322 {
323 String labelListName7a = this.__labelListName7a;
324 if (!this.__labelListName7aSet)
325 {
326
327 labelListName7a = handleGetLabelListName();
328
329 this.__labelListName7a = labelListName7a;
330 if (isMetafacadePropertyCachingEnabled())
331 {
332 this.__labelListName7aSet = true;
333 }
334 }
335 return labelListName7a;
336 }
337
338
339
340
341
342 public boolean isManageableEntityAssociationEndMetaType()
343 {
344 return true;
345 }
346
347
348
349
350
351 public boolean isEntityAssociationEndMetaType()
352 {
353 return true;
354 }
355
356
357
358
359
360 public boolean isAssociationEndFacadeMetaType()
361 {
362 return true;
363 }
364
365
366
367
368
369 public boolean isModelElementFacadeMetaType()
370 {
371 return true;
372 }
373
374
375
376
377
378
379 public String getAdderName()
380 {
381 return this.getSuperManageableEntityAssociationEnd().getAdderName();
382 }
383
384
385
386
387
388
389
390 public String getAggregationKind()
391 {
392 return this.getSuperManageableEntityAssociationEnd().getAggregationKind();
393 }
394
395
396
397
398
399 public AssociationFacade getAssociation()
400 {
401 return this.getSuperManageableEntityAssociationEnd().getAssociation();
402 }
403
404
405
406
407
408
409
410
411 public String getDefault()
412 {
413 return this.getSuperManageableEntityAssociationEnd().getDefault();
414 }
415
416
417
418
419
420 public String getGetterName()
421 {
422 return this.getSuperManageableEntityAssociationEnd().getGetterName();
423 }
424
425
426
427
428
429
430 public String getGetterSetterTypeName()
431 {
432 return this.getSuperManageableEntityAssociationEnd().getGetterSetterTypeName();
433 }
434
435
436
437
438
439
440 public int getLower()
441 {
442 return this.getSuperManageableEntityAssociationEnd().getLower();
443 }
444
445
446
447
448
449 public AssociationEndFacade getOtherEnd()
450 {
451 return this.getSuperManageableEntityAssociationEnd().getOtherEnd();
452 }
453
454
455
456
457
458 public String getRemoverName()
459 {
460 return this.getSuperManageableEntityAssociationEnd().getRemoverName();
461 }
462
463
464
465
466
467 public String getSetterName()
468 {
469 return this.getSuperManageableEntityAssociationEnd().getSetterName();
470 }
471
472
473
474
475
476 public ClassifierFacade getType()
477 {
478 return this.getSuperManageableEntityAssociationEnd().getType();
479 }
480
481
482
483
484
485
486 public int getUpper()
487 {
488 return this.getSuperManageableEntityAssociationEnd().getUpper();
489 }
490
491
492
493
494
495 public boolean isAggregation()
496 {
497 return this.getSuperManageableEntityAssociationEnd().isAggregation();
498 }
499
500
501
502
503
504
505 public boolean isBidirectional()
506 {
507 return this.getSuperManageableEntityAssociationEnd().isBidirectional();
508 }
509
510
511
512
513
514
515 public boolean isChild()
516 {
517 return this.getSuperManageableEntityAssociationEnd().isChild();
518 }
519
520
521
522
523
524 public boolean isComposition()
525 {
526 return this.getSuperManageableEntityAssociationEnd().isComposition();
527 }
528
529
530
531
532
533
534 public boolean isDerived()
535 {
536 return this.getSuperManageableEntityAssociationEnd().isDerived();
537 }
538
539
540
541
542
543
544 public boolean isLeaf()
545 {
546 return this.getSuperManageableEntityAssociationEnd().isLeaf();
547 }
548
549
550
551
552
553 public boolean isMany()
554 {
555 return this.getSuperManageableEntityAssociationEnd().isMany();
556 }
557
558
559
560
561
562 public boolean isMany2Many()
563 {
564 return this.getSuperManageableEntityAssociationEnd().isMany2Many();
565 }
566
567
568
569
570
571 public boolean isMany2One()
572 {
573 return this.getSuperManageableEntityAssociationEnd().isMany2One();
574 }
575
576
577
578
579
580 public boolean isNavigable()
581 {
582 return this.getSuperManageableEntityAssociationEnd().isNavigable();
583 }
584
585
586
587
588
589 public boolean isOne2Many()
590 {
591 return this.getSuperManageableEntityAssociationEnd().isOne2Many();
592 }
593
594
595
596
597
598 public boolean isOne2One()
599 {
600 return this.getSuperManageableEntityAssociationEnd().isOne2One();
601 }
602
603
604
605
606
607
608 public boolean isOrdered()
609 {
610 return this.getSuperManageableEntityAssociationEnd().isOrdered();
611 }
612
613
614
615
616
617 public boolean isReadOnly()
618 {
619 return this.getSuperManageableEntityAssociationEnd().isReadOnly();
620 }
621
622
623
624
625
626 public boolean isRequired()
627 {
628 return this.getSuperManageableEntityAssociationEnd().isRequired();
629 }
630
631
632
633
634
635 public boolean isStatic()
636 {
637 return this.getSuperManageableEntityAssociationEnd().isStatic();
638 }
639
640
641
642
643
644
645 public boolean isUnique()
646 {
647 return this.getSuperManageableEntityAssociationEnd().isUnique();
648 }
649
650
651
652
653
654 public String getColumnIndex()
655 {
656 return this.getSuperManageableEntityAssociationEnd().getColumnIndex();
657 }
658
659
660
661
662
663 public String getColumnName()
664 {
665 return this.getSuperManageableEntityAssociationEnd().getColumnName();
666 }
667
668
669
670
671
672 public String getForeignKeyConstraintName()
673 {
674 return this.getSuperManageableEntityAssociationEnd().getForeignKeyConstraintName();
675 }
676
677
678
679
680
681 public String getForeignKeySuffix()
682 {
683 return this.getSuperManageableEntityAssociationEnd().getForeignKeySuffix();
684 }
685
686
687
688
689
690 public String getSqlType()
691 {
692 return this.getSuperManageableEntityAssociationEnd().getSqlType();
693 }
694
695
696
697
698
699 public String getUniqueGroup()
700 {
701 return this.getSuperManageableEntityAssociationEnd().getUniqueGroup();
702 }
703
704
705
706
707
708
709
710
711 public boolean isForeignIdentifier()
712 {
713 return this.getSuperManageableEntityAssociationEnd().isForeignIdentifier();
714 }
715
716
717
718
719
720 public boolean isIdentifier()
721 {
722 return this.getSuperManageableEntityAssociationEnd().isIdentifier();
723 }
724
725
726
727
728
729 public boolean isIdentifiersPresent()
730 {
731 return this.getSuperManageableEntityAssociationEnd().isIdentifiersPresent();
732 }
733
734
735
736
737
738 public boolean isTransient()
739 {
740 return this.getSuperManageableEntityAssociationEnd().isTransient();
741 }
742
743
744
745
746
747 public EntityAttribute getManageableIdentifier()
748 {
749 return this.getSuperManageableEntityAssociationEnd().getManageableIdentifier();
750 }
751
752
753
754
755
756 public boolean isDisplay()
757 {
758 return this.getSuperManageableEntityAssociationEnd().isDisplay();
759 }
760
761
762
763
764
765 public void copyTaggedValues(ModelElementFacade element)
766 {
767 this.getSuperManageableEntityAssociationEnd().copyTaggedValues(element);
768 }
769
770
771
772
773
774
775 public Object findTaggedValue(String tagName)
776 {
777 return this.getSuperManageableEntityAssociationEnd().findTaggedValue(tagName);
778 }
779
780
781
782
783
784
785 public Collection<Object> findTaggedValues(String tagName)
786 {
787 return this.getSuperManageableEntityAssociationEnd().findTaggedValues(tagName);
788 }
789
790
791
792
793
794
795
796 public String getBindedFullyQualifiedName(ModelElementFacade bindedElement)
797 {
798 return this.getSuperManageableEntityAssociationEnd().getBindedFullyQualifiedName(bindedElement);
799 }
800
801
802
803
804
805 public Collection<ConstraintFacade> getConstraints()
806 {
807 return this.getSuperManageableEntityAssociationEnd().getConstraints();
808 }
809
810
811
812
813
814
815 public Collection<ConstraintFacade> getConstraints(String kind)
816 {
817 return this.getSuperManageableEntityAssociationEnd().getConstraints(kind);
818 }
819
820
821
822
823
824
825
826 public String getDocumentation(String indent)
827 {
828 return this.getSuperManageableEntityAssociationEnd().getDocumentation(indent);
829 }
830
831
832
833
834
835
836
837
838 public String getDocumentation(String indent, int lineLength)
839 {
840 return this.getSuperManageableEntityAssociationEnd().getDocumentation(indent, lineLength);
841 }
842
843
844
845
846
847
848
849 public String getDocumentation(String indent, int lineLength, boolean htmlStyle)
850 {
851 return this.getSuperManageableEntityAssociationEnd().getDocumentation(indent, lineLength, htmlStyle);
852 }
853
854
855
856
857
858 public String getFullyQualifiedName()
859 {
860 return this.getSuperManageableEntityAssociationEnd().getFullyQualifiedName();
861 }
862
863
864
865
866
867
868
869
870 public String getFullyQualifiedName(boolean modelName)
871 {
872 return this.getSuperManageableEntityAssociationEnd().getFullyQualifiedName(modelName);
873 }
874
875
876
877
878
879
880 public String getFullyQualifiedNamePath()
881 {
882 return this.getSuperManageableEntityAssociationEnd().getFullyQualifiedNamePath();
883 }
884
885
886
887
888
889 public String getId()
890 {
891 return this.getSuperManageableEntityAssociationEnd().getId();
892 }
893
894
895
896
897
898
899
900
901
902 public Collection<String> getKeywords()
903 {
904 return this.getSuperManageableEntityAssociationEnd().getKeywords();
905 }
906
907
908
909
910
911 public String getLabel()
912 {
913 return this.getSuperManageableEntityAssociationEnd().getLabel();
914 }
915
916
917
918
919
920 public TypeMappings getLanguageMappings()
921 {
922 return this.getSuperManageableEntityAssociationEnd().getLanguageMappings();
923 }
924
925
926
927
928
929
930 public ModelFacade getModel()
931 {
932 return this.getSuperManageableEntityAssociationEnd().getModel();
933 }
934
935
936
937
938
939 public String getName()
940 {
941 return this.getSuperManageableEntityAssociationEnd().getName();
942 }
943
944
945
946
947
948 public ModelElementFacade getPackage()
949 {
950 return this.getSuperManageableEntityAssociationEnd().getPackage();
951 }
952
953
954
955
956
957 public String getPackageName()
958 {
959 return this.getSuperManageableEntityAssociationEnd().getPackageName();
960 }
961
962
963
964
965
966
967 public String getPackageName(boolean modelName)
968 {
969 return this.getSuperManageableEntityAssociationEnd().getPackageName(modelName);
970 }
971
972
973
974
975
976 public String getPackagePath()
977 {
978 return this.getSuperManageableEntityAssociationEnd().getPackagePath();
979 }
980
981
982
983
984
985
986
987
988 public String getQualifiedName()
989 {
990 return this.getSuperManageableEntityAssociationEnd().getQualifiedName();
991 }
992
993
994
995
996
997 public PackageFacade getRootPackage()
998 {
999 return this.getSuperManageableEntityAssociationEnd().getRootPackage();
1000 }
1001
1002
1003
1004
1005
1006 public Collection<DependencyFacade> getSourceDependencies()
1007 {
1008 return this.getSuperManageableEntityAssociationEnd().getSourceDependencies();
1009 }
1010
1011
1012
1013
1014
1015
1016 public StateMachineFacade getStateMachineContext()
1017 {
1018 return this.getSuperManageableEntityAssociationEnd().getStateMachineContext();
1019 }
1020
1021
1022
1023
1024
1025 public Collection<String> getStereotypeNames()
1026 {
1027 return this.getSuperManageableEntityAssociationEnd().getStereotypeNames();
1028 }
1029
1030
1031
1032
1033
1034 public Collection<StereotypeFacade> getStereotypes()
1035 {
1036 return this.getSuperManageableEntityAssociationEnd().getStereotypes();
1037 }
1038
1039
1040
1041
1042
1043 public Collection<TaggedValueFacade> getTaggedValues()
1044 {
1045 return this.getSuperManageableEntityAssociationEnd().getTaggedValues();
1046 }
1047
1048
1049
1050
1051
1052 public Collection<DependencyFacade> getTargetDependencies()
1053 {
1054 return this.getSuperManageableEntityAssociationEnd().getTargetDependencies();
1055 }
1056
1057
1058
1059
1060
1061 public Object getTemplateParameter(String parameterName)
1062 {
1063 return this.getSuperManageableEntityAssociationEnd().getTemplateParameter(parameterName);
1064 }
1065
1066
1067
1068
1069
1070 public Collection<TemplateParameterFacade> getTemplateParameters()
1071 {
1072 return this.getSuperManageableEntityAssociationEnd().getTemplateParameters();
1073 }
1074
1075
1076
1077
1078
1079
1080 public String getVisibility()
1081 {
1082 return this.getSuperManageableEntityAssociationEnd().getVisibility();
1083 }
1084
1085
1086
1087
1088
1089
1090 public boolean hasExactStereotype(String stereotypeName)
1091 {
1092 return this.getSuperManageableEntityAssociationEnd().hasExactStereotype(stereotypeName);
1093 }
1094
1095
1096
1097
1098
1099
1100 public boolean hasKeyword(String keywordName)
1101 {
1102 return this.getSuperManageableEntityAssociationEnd().hasKeyword(keywordName);
1103 }
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117 public boolean hasStereotype(String stereotypeName)
1118 {
1119 return this.getSuperManageableEntityAssociationEnd().hasStereotype(stereotypeName);
1120 }
1121
1122
1123
1124
1125
1126
1127 public boolean isBindingDependenciesPresent()
1128 {
1129 return this.getSuperManageableEntityAssociationEnd().isBindingDependenciesPresent();
1130 }
1131
1132
1133
1134
1135
1136 public boolean isConstraintsPresent()
1137 {
1138 return this.getSuperManageableEntityAssociationEnd().isConstraintsPresent();
1139 }
1140
1141
1142
1143
1144
1145 public boolean isDocumentationPresent()
1146 {
1147 return this.getSuperManageableEntityAssociationEnd().isDocumentationPresent();
1148 }
1149
1150
1151
1152
1153
1154 public boolean isReservedWord()
1155 {
1156 return this.getSuperManageableEntityAssociationEnd().isReservedWord();
1157 }
1158
1159
1160
1161
1162
1163
1164 public boolean isTemplateParametersPresent()
1165 {
1166 return this.getSuperManageableEntityAssociationEnd().isTemplateParametersPresent();
1167 }
1168
1169
1170
1171
1172
1173
1174
1175 public boolean isValidIdentifierName()
1176 {
1177 return this.getSuperManageableEntityAssociationEnd().isValidIdentifierName();
1178 }
1179
1180
1181
1182
1183
1184
1185
1186 public String translateConstraint(String name, String translation)
1187 {
1188 return this.getSuperManageableEntityAssociationEnd().translateConstraint(name, translation);
1189 }
1190
1191
1192
1193
1194
1195 public String[] translateConstraints(String translation)
1196 {
1197 return this.getSuperManageableEntityAssociationEnd().translateConstraints(translation);
1198 }
1199
1200
1201
1202
1203
1204 public String[] translateConstraints(String kind, String translation)
1205 {
1206 return this.getSuperManageableEntityAssociationEnd().translateConstraints(kind, translation);
1207 }
1208
1209
1210
1211
1212 @Override
1213 public void initialize()
1214 {
1215 this.getSuperManageableEntityAssociationEnd().initialize();
1216 }
1217
1218
1219
1220
1221
1222 @Override
1223 public Object getValidationOwner()
1224 {
1225 Object owner = this.getSuperManageableEntityAssociationEnd().getValidationOwner();
1226 return owner;
1227 }
1228
1229
1230
1231
1232
1233 @Override
1234 public String getValidationName()
1235 {
1236 String name = this.getSuperManageableEntityAssociationEnd().getValidationName();
1237 return name;
1238 }
1239
1240
1241
1242
1243
1244 @Override
1245 public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
1246 {
1247 this.getSuperManageableEntityAssociationEnd().validateInvariants(validationMessages);
1248 }
1249
1250
1251
1252
1253 private static final String NAME_PROPERTY = "name";
1254 private static final String FQNAME_PROPERTY = "fullyQualifiedName";
1255
1256
1257
1258
1259 @Override
1260 public String toString()
1261 {
1262 final StringBuilder toString = new StringBuilder(this.getClass().getName());
1263 toString.append("[");
1264 try
1265 {
1266 toString.append(Introspector.instance().getProperty(this, FQNAME_PROPERTY));
1267 }
1268 catch (final Throwable tryAgain)
1269 {
1270 try
1271 {
1272 toString.append(Introspector.instance().getProperty(this, NAME_PROPERTY));
1273 }
1274 catch (final Throwable ignore)
1275 {
1276
1277 }
1278 }
1279 toString.append("]");
1280 return toString.toString();
1281 }
1282 }