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