1
2
3
4 package org.andromda.cartridges.webservice.metafacades;
5
6 /***
7 * MetafacadeLogic for org.andromda.cartridges.webservice.metafacades.WSDLType
8 *
9 * @see org.andromda.cartridges.webservice.metafacades.WSDLType
10 */
11 public abstract class WSDLTypeLogic
12 extends org.andromda.core.metafacade.MetafacadeBase
13 implements org.andromda.cartridges.webservice.metafacades.WSDLType
14 {
15
16 protected Object metaObject;
17
18 public WSDLTypeLogic(Object metaObject, String context)
19 {
20 super(metaObject, getContext(context));
21 this.superClassifierFacade =
22 (org.andromda.metafacades.uml.ClassifierFacade)
23 org.andromda.core.metafacade.MetafacadeFactory.getInstance().createFacadeImpl(
24 "org.andromda.metafacades.uml.ClassifierFacade",
25 metaObject,
26 getContext(context));
27 this.metaObject = metaObject;
28 }
29
30 /***
31 * Gets the context for this metafacade logic instance.
32 */
33 private static String getContext(String context)
34 {
35 if (context == null)
36 {
37 context = "org.andromda.cartridges.webservice.metafacades.WSDLType";
38 }
39 return context;
40 }
41
42 private org.andromda.metafacades.uml.ClassifierFacade superClassifierFacade;
43 private boolean superClassifierFacadeInitialized = false;
44
45 /***
46 * Gets the org.andromda.metafacades.uml.ClassifierFacade parent instance.
47 */
48 private org.andromda.metafacades.uml.ClassifierFacade getSuperClassifierFacade()
49 {
50 if (!this.superClassifierFacadeInitialized)
51 {
52 ((org.andromda.core.metafacade.MetafacadeBase)superClassifierFacade).setMetafacadeContext(this.getMetafacadeContext());
53 this.superClassifierFacadeInitialized = true;
54 }
55 return superClassifierFacade;
56 }
57
58 /***
59 * @see org.andromda.core.metafacade.MetafacadeBase
60 */
61 public void resetMetafacadeContext(String context)
62 {
63 if (!this.contextRoot)
64 {
65 context = getContext(context);
66 setMetafacadeContext (context);
67 if (this.superClassifierFacadeInitialized)
68 {
69 ((org.andromda.core.metafacade.MetafacadeBase)superClassifierFacade).resetMetafacadeContext(context);
70 }
71 }
72 }
73
74 /***
75 * @see org.andromda.cartridges.webservice.metafacades.WSDLType
76 */
77 public boolean isWSDLTypeMetaType()
78 {
79 return true;
80 }
81
82
83
84 /***
85 * @see org.andromda.cartridges.webservice.metafacades.WSDLType#getWsdlArrayName()
86 */
87 protected abstract java.lang.String handleGetWsdlArrayName();
88
89 private void handleGetWsdlArrayName1aPreCondition()
90 {
91 }
92
93 private void handleGetWsdlArrayName1aPostCondition()
94 {
95 }
96
97 private java.lang.String __wsdlArrayName1a;
98 private boolean __wsdlArrayName1aSet = false;
99
100 public final java.lang.String getWsdlArrayName()
101 {
102 java.lang.String wsdlArrayName1a = this.__wsdlArrayName1a;
103 if (!this.__wsdlArrayName1aSet)
104 {
105 handleGetWsdlArrayName1aPreCondition();
106 wsdlArrayName1a = handleGetWsdlArrayName();
107 handleGetWsdlArrayName1aPostCondition();
108 this.__wsdlArrayName1a = wsdlArrayName1a;
109 if (isMetafacadePropertyCachingEnabled())
110 {
111 this.__wsdlArrayName1aSet = true;
112 }
113 }
114 return wsdlArrayName1a;
115 }
116
117 /***
118 * @see org.andromda.cartridges.webservice.metafacades.WSDLType#getSchemaType()
119 */
120 protected abstract java.lang.String handleGetSchemaType();
121
122 private void handleGetSchemaType2aPreCondition()
123 {
124 }
125
126 private void handleGetSchemaType2aPostCondition()
127 {
128 }
129
130 private java.lang.String __schemaType2a;
131 private boolean __schemaType2aSet = false;
132
133 public final java.lang.String getSchemaType()
134 {
135 java.lang.String schemaType2a = this.__schemaType2a;
136 if (!this.__schemaType2aSet)
137 {
138 handleGetSchemaType2aPreCondition();
139 schemaType2a = handleGetSchemaType();
140 handleGetSchemaType2aPostCondition();
141 this.__schemaType2a = schemaType2a;
142 if (isMetafacadePropertyCachingEnabled())
143 {
144 this.__schemaType2aSet = true;
145 }
146 }
147 return schemaType2a;
148 }
149
150 /***
151 * @see org.andromda.cartridges.webservice.metafacades.WSDLType#getNamespace()
152 */
153 protected abstract java.lang.String handleGetNamespace();
154
155 private void handleGetNamespace3aPreCondition()
156 {
157 }
158
159 private void handleGetNamespace3aPostCondition()
160 {
161 }
162
163 private java.lang.String __namespace3a;
164 private boolean __namespace3aSet = false;
165
166 public final java.lang.String getNamespace()
167 {
168 java.lang.String namespace3a = this.__namespace3a;
169 if (!this.__namespace3aSet)
170 {
171 handleGetNamespace3aPreCondition();
172 namespace3a = handleGetNamespace();
173 handleGetNamespace3aPostCondition();
174 this.__namespace3a = namespace3a;
175 if (isMetafacadePropertyCachingEnabled())
176 {
177 this.__namespace3aSet = true;
178 }
179 }
180 return namespace3a;
181 }
182
183 /***
184 * @see org.andromda.cartridges.webservice.metafacades.WSDLType#getNamespacePrefix()
185 */
186 protected abstract java.lang.String handleGetNamespacePrefix();
187
188 private void handleGetNamespacePrefix4aPreCondition()
189 {
190 }
191
192 private void handleGetNamespacePrefix4aPostCondition()
193 {
194 }
195
196 private java.lang.String __namespacePrefix4a;
197 private boolean __namespacePrefix4aSet = false;
198
199 public final java.lang.String getNamespacePrefix()
200 {
201 java.lang.String namespacePrefix4a = this.__namespacePrefix4a;
202 if (!this.__namespacePrefix4aSet)
203 {
204 handleGetNamespacePrefix4aPreCondition();
205 namespacePrefix4a = handleGetNamespacePrefix();
206 handleGetNamespacePrefix4aPostCondition();
207 this.__namespacePrefix4a = namespacePrefix4a;
208 if (isMetafacadePropertyCachingEnabled())
209 {
210 this.__namespacePrefix4aSet = true;
211 }
212 }
213 return namespacePrefix4a;
214 }
215
216 /***
217 * @see org.andromda.cartridges.webservice.metafacades.WSDLType#getQName()
218 */
219 protected abstract java.lang.String handleGetQName();
220
221 private void handleGetQName5aPreCondition()
222 {
223 }
224
225 private void handleGetQName5aPostCondition()
226 {
227 }
228
229 private java.lang.String __qName5a;
230 private boolean __qName5aSet = false;
231
232 public final java.lang.String getQName()
233 {
234 java.lang.String qName5a = this.__qName5a;
235 if (!this.__qName5aSet)
236 {
237 handleGetQName5aPreCondition();
238 qName5a = handleGetQName();
239 handleGetQName5aPostCondition();
240 this.__qName5a = qName5a;
241 if (isMetafacadePropertyCachingEnabled())
242 {
243 this.__qName5aSet = true;
244 }
245 }
246 return qName5a;
247 }
248
249 /***
250 * @see org.andromda.cartridges.webservice.metafacades.WSDLType#getWsdlArrayNamePrefix()
251 */
252 protected abstract java.lang.String handleGetWsdlArrayNamePrefix();
253
254 private void handleGetWsdlArrayNamePrefix6aPreCondition()
255 {
256 }
257
258 private void handleGetWsdlArrayNamePrefix6aPostCondition()
259 {
260 }
261
262 private java.lang.String __wsdlArrayNamePrefix6a;
263 private boolean __wsdlArrayNamePrefix6aSet = false;
264
265 public final java.lang.String getWsdlArrayNamePrefix()
266 {
267 java.lang.String wsdlArrayNamePrefix6a = this.__wsdlArrayNamePrefix6a;
268 if (!this.__wsdlArrayNamePrefix6aSet)
269 {
270 handleGetWsdlArrayNamePrefix6aPreCondition();
271 wsdlArrayNamePrefix6a = handleGetWsdlArrayNamePrefix();
272 handleGetWsdlArrayNamePrefix6aPostCondition();
273 this.__wsdlArrayNamePrefix6a = wsdlArrayNamePrefix6a;
274 if (isMetafacadePropertyCachingEnabled())
275 {
276 this.__wsdlArrayNamePrefix6aSet = true;
277 }
278 }
279 return wsdlArrayNamePrefix6a;
280 }
281
282
283
284 protected abstract java.lang.String handleGetSchemaType(boolean withPrefix, boolean preserveArray);
285
286 private void handleGetSchemaType1oPreCondition()
287 {
288 }
289
290 private void handleGetSchemaType1oPostCondition()
291 {
292 }
293
294 public java.lang.String getSchemaType(boolean withPrefix, boolean preserveArray)
295 {
296 handleGetSchemaType1oPreCondition();
297 java.lang.String returnValue = handleGetSchemaType(withPrefix, preserveArray);
298 handleGetSchemaType1oPostCondition();
299 return returnValue;
300 }
301
302 /***
303 * @see org.andromda.metafacades.uml.ClassifierFacade
304 */
305 public boolean isClassifierFacadeMetaType()
306 {
307 return true;
308 }
309
310 /***
311 * @see org.andromda.metafacades.uml.GeneralizableElementFacade
312 */
313 public boolean isGeneralizableElementFacadeMetaType()
314 {
315 return true;
316 }
317
318 /***
319 * @see org.andromda.metafacades.uml.ModelElementFacade
320 */
321 public boolean isModelElementFacadeMetaType()
322 {
323 return true;
324 }
325
326
327
328 public org.andromda.metafacades.uml.AttributeFacade findAttribute(java.lang.String name)
329 {
330 return this.getSuperClassifierFacade().findAttribute(name);
331 }
332
333
334 public java.util.Collection getAbstractions()
335 {
336 return this.getSuperClassifierFacade().getAbstractions();
337 }
338
339
340 public java.util.Collection getAllAssociatedClasses()
341 {
342 return this.getSuperClassifierFacade().getAllAssociatedClasses();
343 }
344
345
346 public java.util.Collection getAllProperties()
347 {
348 return this.getSuperClassifierFacade().getAllProperties();
349 }
350
351
352 public java.util.Collection getAllRequiredConstructorParameters()
353 {
354 return this.getSuperClassifierFacade().getAllRequiredConstructorParameters();
355 }
356
357
358 public org.andromda.metafacades.uml.ClassifierFacade getArray()
359 {
360 return this.getSuperClassifierFacade().getArray();
361 }
362
363
364 public java.lang.String getArrayName()
365 {
366 return this.getSuperClassifierFacade().getArrayName();
367 }
368
369
370 public java.util.Collection getAssociatedClasses()
371 {
372 return this.getSuperClassifierFacade().getAssociatedClasses();
373 }
374
375
376 public java.util.List getAssociationEnds()
377 {
378 return this.getSuperClassifierFacade().getAssociationEnds();
379 }
380
381
382 public java.util.Collection getAttributes()
383 {
384 return this.getSuperClassifierFacade().getAttributes();
385 }
386
387
388 public java.util.Collection getAttributes(boolean follow)
389 {
390 return this.getSuperClassifierFacade().getAttributes(follow);
391 }
392
393
394 public java.lang.String getFullyQualifiedArrayName()
395 {
396 return this.getSuperClassifierFacade().getFullyQualifiedArrayName();
397 }
398
399
400 public java.util.Collection getImplementationOperations()
401 {
402 return this.getSuperClassifierFacade().getImplementationOperations();
403 }
404
405
406 public java.lang.String getImplementedInterfaceList()
407 {
408 return this.getSuperClassifierFacade().getImplementedInterfaceList();
409 }
410
411
412 public java.util.Collection getInstanceAttributes()
413 {
414 return this.getSuperClassifierFacade().getInstanceAttributes();
415 }
416
417
418 public java.util.Collection getInstanceOperations()
419 {
420 return this.getSuperClassifierFacade().getInstanceOperations();
421 }
422
423
424 public java.util.Collection getInterfaceAbstractions()
425 {
426 return this.getSuperClassifierFacade().getInterfaceAbstractions();
427 }
428
429
430 public java.lang.String getJavaNullString()
431 {
432 return this.getSuperClassifierFacade().getJavaNullString();
433 }
434
435
436 public java.util.Collection getNavigableConnectingEnds()
437 {
438 return this.getSuperClassifierFacade().getNavigableConnectingEnds();
439 }
440
441
442 public java.util.Collection getNavigableConnectingEnds(boolean follow)
443 {
444 return this.getSuperClassifierFacade().getNavigableConnectingEnds(follow);
445 }
446
447
448 public org.andromda.metafacades.uml.ClassifierFacade getNonArray()
449 {
450 return this.getSuperClassifierFacade().getNonArray();
451 }
452
453
454 public java.lang.String getOperationCallFromAttributes()
455 {
456 return this.getSuperClassifierFacade().getOperationCallFromAttributes();
457 }
458
459
460 public java.util.Collection getOperations()
461 {
462 return this.getSuperClassifierFacade().getOperations();
463 }
464
465
466 public java.util.Collection getProperties()
467 {
468 return this.getSuperClassifierFacade().getProperties();
469 }
470
471
472 public java.util.Collection getProperties(boolean follow)
473 {
474 return this.getSuperClassifierFacade().getProperties(follow);
475 }
476
477
478 public java.util.Collection getRequiredConstructorParameters()
479 {
480 return this.getSuperClassifierFacade().getRequiredConstructorParameters();
481 }
482
483
484 public java.lang.Long getSerialVersionUID()
485 {
486 return this.getSuperClassifierFacade().getSerialVersionUID();
487 }
488
489
490 public java.util.Collection getStaticAttributes()
491 {
492 return this.getSuperClassifierFacade().getStaticAttributes();
493 }
494
495
496 public java.util.Collection getStaticOperations()
497 {
498 return this.getSuperClassifierFacade().getStaticOperations();
499 }
500
501
502 public org.andromda.metafacades.uml.ClassifierFacade getSuperClass()
503 {
504 return this.getSuperClassifierFacade().getSuperClass();
505 }
506
507
508 public java.lang.String getWrapperName()
509 {
510 return this.getSuperClassifierFacade().getWrapperName();
511 }
512
513
514 public boolean isAbstract()
515 {
516 return this.getSuperClassifierFacade().isAbstract();
517 }
518
519
520 public boolean isArrayType()
521 {
522 return this.getSuperClassifierFacade().isArrayType();
523 }
524
525
526 public boolean isAssociationClass()
527 {
528 return this.getSuperClassifierFacade().isAssociationClass();
529 }
530
531
532 public boolean isBlobType()
533 {
534 return this.getSuperClassifierFacade().isBlobType();
535 }
536
537
538 public boolean isBooleanType()
539 {
540 return this.getSuperClassifierFacade().isBooleanType();
541 }
542
543
544 public boolean isClobType()
545 {
546 return this.getSuperClassifierFacade().isClobType();
547 }
548
549
550 public boolean isCollectionType()
551 {
552 return this.getSuperClassifierFacade().isCollectionType();
553 }
554
555
556 public boolean isDataType()
557 {
558 return this.getSuperClassifierFacade().isDataType();
559 }
560
561
562 public boolean isDateType()
563 {
564 return this.getSuperClassifierFacade().isDateType();
565 }
566
567
568 public boolean isEnumeration()
569 {
570 return this.getSuperClassifierFacade().isEnumeration();
571 }
572
573
574 public boolean isFileType()
575 {
576 return this.getSuperClassifierFacade().isFileType();
577 }
578
579
580 public boolean isInterface()
581 {
582 return this.getSuperClassifierFacade().isInterface();
583 }
584
585
586 public boolean isLeaf()
587 {
588 return this.getSuperClassifierFacade().isLeaf();
589 }
590
591
592 public boolean isListType()
593 {
594 return this.getSuperClassifierFacade().isListType();
595 }
596
597
598 public boolean isMapType()
599 {
600 return this.getSuperClassifierFacade().isMapType();
601 }
602
603
604 public boolean isPrimitive()
605 {
606 return this.getSuperClassifierFacade().isPrimitive();
607 }
608
609
610 public boolean isSetType()
611 {
612 return this.getSuperClassifierFacade().isSetType();
613 }
614
615
616 public boolean isStringType()
617 {
618 return this.getSuperClassifierFacade().isStringType();
619 }
620
621
622 public boolean isTimeType()
623 {
624 return this.getSuperClassifierFacade().isTimeType();
625 }
626
627
628 public java.lang.Object findTaggedValue(java.lang.String tagName, boolean follow)
629 {
630 return this.getSuperClassifierFacade().findTaggedValue(tagName, follow);
631 }
632
633
634 public java.util.Collection getAllGeneralizations()
635 {
636 return this.getSuperClassifierFacade().getAllGeneralizations();
637 }
638
639
640 public java.util.Collection getAllSpecializations()
641 {
642 return this.getSuperClassifierFacade().getAllSpecializations();
643 }
644
645
646 public org.andromda.metafacades.uml.GeneralizableElementFacade getGeneralization()
647 {
648 return this.getSuperClassifierFacade().getGeneralization();
649 }
650
651
652 public java.util.Collection getGeneralizationLinks()
653 {
654 return this.getSuperClassifierFacade().getGeneralizationLinks();
655 }
656
657
658 public java.lang.String getGeneralizationList()
659 {
660 return this.getSuperClassifierFacade().getGeneralizationList();
661 }
662
663
664 public org.andromda.metafacades.uml.GeneralizableElementFacade getGeneralizationRoot()
665 {
666 return this.getSuperClassifierFacade().getGeneralizationRoot();
667 }
668
669
670 public java.util.Collection getGeneralizations()
671 {
672 return this.getSuperClassifierFacade().getGeneralizations();
673 }
674
675
676 public java.util.Collection getSpecializations()
677 {
678 return this.getSuperClassifierFacade().getSpecializations();
679 }
680
681
682 public void copyTaggedValues(org.andromda.metafacades.uml.ModelElementFacade element)
683 {
684 this.getSuperClassifierFacade().copyTaggedValues(element);
685 }
686
687
688 public java.lang.Object findTaggedValue(java.lang.String tagName)
689 {
690 return this.getSuperClassifierFacade().findTaggedValue(tagName);
691 }
692
693
694 public java.util.Collection findTaggedValues(java.lang.String tagName)
695 {
696 return this.getSuperClassifierFacade().findTaggedValues(tagName);
697 }
698
699
700 public java.util.Collection getConstraints()
701 {
702 return this.getSuperClassifierFacade().getConstraints();
703 }
704
705
706 public java.util.Collection getConstraints(java.lang.String kind)
707 {
708 return this.getSuperClassifierFacade().getConstraints(kind);
709 }
710
711
712 public java.lang.String getDocumentation(java.lang.String indent, int lineLength)
713 {
714 return this.getSuperClassifierFacade().getDocumentation(indent, lineLength);
715 }
716
717
718 public java.lang.String getDocumentation(java.lang.String indent, int lineLength, boolean htmlStyle)
719 {
720 return this.getSuperClassifierFacade().getDocumentation(indent, lineLength, htmlStyle);
721 }
722
723
724 public java.lang.String getDocumentation(java.lang.String indent)
725 {
726 return this.getSuperClassifierFacade().getDocumentation(indent);
727 }
728
729
730 public java.lang.String getFullyQualifiedName(boolean modelName)
731 {
732 return this.getSuperClassifierFacade().getFullyQualifiedName(modelName);
733 }
734
735
736 public java.lang.String getFullyQualifiedName()
737 {
738 return this.getSuperClassifierFacade().getFullyQualifiedName();
739 }
740
741
742 public java.lang.String getFullyQualifiedNamePath()
743 {
744 return this.getSuperClassifierFacade().getFullyQualifiedNamePath();
745 }
746
747
748 public java.lang.String getId()
749 {
750 return this.getSuperClassifierFacade().getId();
751 }
752
753
754 public org.andromda.metafacades.uml.TypeMappings getLanguageMappings()
755 {
756 return this.getSuperClassifierFacade().getLanguageMappings();
757 }
758
759
760 public org.andromda.metafacades.uml.ModelFacade getModel()
761 {
762 return this.getSuperClassifierFacade().getModel();
763 }
764
765
766 public java.lang.String getName()
767 {
768 return this.getSuperClassifierFacade().getName();
769 }
770
771
772 public org.andromda.metafacades.uml.ModelElementFacade getPackage()
773 {
774 return this.getSuperClassifierFacade().getPackage();
775 }
776
777
778 public java.lang.String getPackageName(boolean modelName)
779 {
780 return this.getSuperClassifierFacade().getPackageName(modelName);
781 }
782
783
784 public java.lang.String getPackageName()
785 {
786 return this.getSuperClassifierFacade().getPackageName();
787 }
788
789
790 public java.lang.String getPackagePath()
791 {
792 return this.getSuperClassifierFacade().getPackagePath();
793 }
794
795
796 public org.andromda.metafacades.uml.PackageFacade getRootPackage()
797 {
798 return this.getSuperClassifierFacade().getRootPackage();
799 }
800
801
802 public java.util.Collection getSourceDependencies()
803 {
804 return this.getSuperClassifierFacade().getSourceDependencies();
805 }
806
807
808 public org.andromda.metafacades.uml.StateMachineFacade getStateMachineContext()
809 {
810 return this.getSuperClassifierFacade().getStateMachineContext();
811 }
812
813
814 public java.util.Collection getStereotypeNames()
815 {
816 return this.getSuperClassifierFacade().getStereotypeNames();
817 }
818
819
820 public java.util.Collection getStereotypes()
821 {
822 return this.getSuperClassifierFacade().getStereotypes();
823 }
824
825
826 public java.util.Collection getTaggedValues()
827 {
828 return this.getSuperClassifierFacade().getTaggedValues();
829 }
830
831
832 public java.util.Collection getTargetDependencies()
833 {
834 return this.getSuperClassifierFacade().getTargetDependencies();
835 }
836
837
838 public java.lang.Object getTemplateParameter(java.lang.String parameterName)
839 {
840 return this.getSuperClassifierFacade().getTemplateParameter(parameterName);
841 }
842
843
844 public java.util.Collection getTemplateParameters()
845 {
846 return this.getSuperClassifierFacade().getTemplateParameters();
847 }
848
849
850 public java.lang.String getVisibility()
851 {
852 return this.getSuperClassifierFacade().getVisibility();
853 }
854
855
856 public boolean hasExactStereotype(java.lang.String stereotypeName)
857 {
858 return this.getSuperClassifierFacade().hasExactStereotype(stereotypeName);
859 }
860
861
862 public boolean hasStereotype(java.lang.String stereotypeName)
863 {
864 return this.getSuperClassifierFacade().hasStereotype(stereotypeName);
865 }
866
867
868 public boolean isBindingDependenciesPresent()
869 {
870 return this.getSuperClassifierFacade().isBindingDependenciesPresent();
871 }
872
873
874 public boolean isConstraintsPresent()
875 {
876 return this.getSuperClassifierFacade().isConstraintsPresent();
877 }
878
879
880 public boolean isTemplateParametersPresent()
881 {
882 return this.getSuperClassifierFacade().isTemplateParametersPresent();
883 }
884
885
886 public java.lang.String translateConstraint(java.lang.String name, java.lang.String translation)
887 {
888 return this.getSuperClassifierFacade().translateConstraint(name, translation);
889 }
890
891
892 public java.lang.String[] translateConstraints(java.lang.String translation)
893 {
894 return this.getSuperClassifierFacade().translateConstraints(translation);
895 }
896
897
898 public java.lang.String[] translateConstraints(java.lang.String kind, java.lang.String translation)
899 {
900 return this.getSuperClassifierFacade().translateConstraints(kind, translation);
901 }
902
903 /***
904 * @see org.andromda.core.metafacade.MetafacadeBase#initialize()
905 */
906 public void initialize()
907 {
908 this.getSuperClassifierFacade().initialize();
909 }
910
911 /***
912 * @see org.andromda.core.metafacade.MetafacadeBase#getValidationOwner()
913 */
914 public Object getValidationOwner()
915 {
916 Object owner = this.getSuperClassifierFacade().getValidationOwner();
917 return owner;
918 }
919
920 /***
921 * @see org.andromda.core.metafacade.MetafacadeBase#getValidationName()
922 */
923 public String getValidationName()
924 {
925 String name = this.getSuperClassifierFacade().getValidationName();
926 return name;
927 }
928
929 /***
930 * @see org.andromda.core.metafacade.MetafacadeBase#validateInvariants(java.util.Collection)
931 */
932 public void validateInvariants(java.util.Collection validationMessages)
933 {
934 this.getSuperClassifierFacade().validateInvariants(validationMessages);
935 {
936 final java.lang.Object contextElement = this.THIS(); boolean constraintValid = org.andromda.translation.ocl.validation.OCLResultEnsurer.ensure((Boolean.valueOf(String.valueOf(org.andromda.translation.ocl.validation.OCLCollections.notEmpty(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"array")))).booleanValue()?org.andromda.translation.ocl.validation.OCLCollections.notEmpty(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"nonArray")):true));
937 if (!constraintValid)
938 validationMessages.add(
939 new org.andromda.core.metafacade.ModelValidationMessage(
940 (org.andromda.core.metafacade.MetafacadeBase)contextElement ,
941 "org::andromda::cartridges::webservice::metafacades::WSDLType::array type needs a non-array type",
942 "Each array type in your model requires a corresponding non-array type to be defined."));
943 }
944 {
945 final java.lang.Object contextElement = this.THIS(); boolean constraintValid = org.andromda.translation.ocl.validation.OCLResultEnsurer.ensure(org.andromda.translation.ocl.validation.OCLCollections.forAll(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"attributes"),new org.apache.commons.collections.Predicate(){public boolean evaluate(java.lang.Object object){return Boolean.valueOf(String.valueOf(org.andromda.translation.ocl.validation.OCLExpressions.equal(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(object,"visibility"),"public"))).booleanValue();}}));
946 if (!constraintValid)
947 validationMessages.add(
948 new org.andromda.core.metafacade.ModelValidationMessage(
949 (org.andromda.core.metafacade.MetafacadeBase)contextElement ,
950 "org::andromda::cartridges::webservice::metafacades::WSDLType::wsdl types must all have public attributes",
951 "All attributes must have a public visibility."));
952 }
953 {
954 final java.lang.Object contextElement = this.THIS(); boolean constraintValid = org.andromda.translation.ocl.validation.OCLResultEnsurer.ensure(org.andromda.translation.ocl.validation.OCLCollections.forAll(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(contextElement,"associationEnds"),new org.apache.commons.collections.Predicate(){public boolean evaluate(java.lang.Object object){return Boolean.valueOf(String.valueOf((Boolean.valueOf(String.valueOf(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(object,"otherEnd.navigable"))).booleanValue()?org.andromda.translation.ocl.validation.OCLExpressions.equal(org.andromda.translation.ocl.validation.OCLIntrospector.invoke(object,"otherEnd.visibility"),"public"):true))).booleanValue();}}));
955 if (!constraintValid)
956 validationMessages.add(
957 new org.andromda.core.metafacade.ModelValidationMessage(
958 (org.andromda.core.metafacade.MetafacadeBase)contextElement ,
959 "org::andromda::cartridges::webservice::metafacades::WSDLType::wsdl types must have public navigable association ends.",
960 "All navigable association ends must have a public visibility."));
961 }
962 }
963
964 /***
965 * The property that stores the name of the metafacade.
966 */
967 private static final String NAME_PROPERTY = "name";
968
969 /***
970 * @see java.lang.Object#toString()
971 */
972 public String toString()
973 {
974 final StringBuffer toString = new StringBuffer(this.getClass().getName());
975 toString.append("[");
976 try
977 {
978 toString.append(org.andromda.core.common.Introspector.instance().getProperty(this, NAME_PROPERTY));
979 }
980 catch (final Throwable throwable)
981 {
982
983 }
984 toString.append("]");
985 return toString.toString();
986 }
987 }