001: package org.andromda.metafacades.emf.uml2;
002:
003: import java.util.List;
004: import java.util.Map;
005: import java.util.Set;
006:
007: import org.eclipse.emf.common.notify.Notification;
008: import org.eclipse.emf.common.util.DiagnosticChain;
009: import org.eclipse.emf.common.util.EList;
010: import org.eclipse.emf.common.util.TreeIterator;
011: import org.eclipse.emf.ecore.EAnnotation;
012: import org.eclipse.emf.ecore.EClass;
013: import org.eclipse.emf.ecore.EObject;
014: import org.eclipse.emf.ecore.EReference;
015: import org.eclipse.emf.ecore.EStructuralFeature;
016: import org.eclipse.emf.ecore.resource.Resource;
017: import org.eclipse.uml2.AggregationKind;
018: import org.eclipse.uml2.Association;
019: import org.eclipse.uml2.Class;
020: import org.eclipse.uml2.Classifier;
021: import org.eclipse.uml2.Comment;
022: import org.eclipse.uml2.DataType;
023: import org.eclipse.uml2.Dependency;
024: import org.eclipse.uml2.Deployment;
025: import org.eclipse.uml2.Element;
026: import org.eclipse.uml2.Model;
027: import org.eclipse.uml2.MultiplicityElement;
028: import org.eclipse.uml2.NamedElement;
029: import org.eclipse.uml2.Namespace;
030: import org.eclipse.uml2.Package;
031: import org.eclipse.uml2.PackageableElement;
032: import org.eclipse.uml2.Property;
033: import org.eclipse.uml2.RedefinableElement;
034: import org.eclipse.uml2.Stereotype;
035: import org.eclipse.uml2.StringExpression;
036: import org.eclipse.uml2.TemplateBinding;
037: import org.eclipse.uml2.TemplateParameter;
038: import org.eclipse.uml2.TemplateSignature;
039: import org.eclipse.uml2.Type;
040: import org.eclipse.uml2.ValueSpecification;
041: import org.eclipse.uml2.VisibilityKind;
042:
043: /**
044: * Implementation of AssociationEnd. We extends Property We keep a reference to
045: * the original property and we defer almost all method calls to it.
046: *
047: * @author Cédric Jeanneret
048: */
049: public class AssociationEndImpl implements AssociationEnd {
050: final Property property;
051:
052: AssociationEndImpl(final Property p) {
053: this .property = p;
054: }
055:
056: public boolean equals(final Object obj) {
057: if (obj instanceof Attribute) {
058: Property other = ((AttributeImpl) obj).property;
059: return this .property.equals(other);
060: }
061: if (obj instanceof AssociationEnd) {
062: Property other = ((AssociationEndImpl) obj).property;
063: return this .property.equals(other);
064: }
065: return this .property.equals(obj);
066: }
067:
068: public int hashCode() {
069: return this .property.hashCode();
070: }
071:
072: public String toString() {
073: return this .getClass().getName() + '['
074: + this .property.toString() + ']';
075: }
076:
077: public void addKeyword(final String arg0) {
078: this .property.addKeyword(arg0);
079: }
080:
081: public List allNamespaces() {
082: return this .property.allNamespaces();
083: }
084:
085: public Set allOwnedElements() {
086: return this .property.allOwnedElements();
087: }
088:
089: public void apply(final Stereotype arg0) {
090: this .property.apply(arg0);
091: }
092:
093: public ValueSpecification createDefaultValue(final EClass arg0) {
094: return this .property.createDefaultValue(arg0);
095: }
096:
097: public Dependency createDependency(final NamedElement arg0) {
098: return this .property.createDependency(arg0);
099: }
100:
101: public Deployment createDeployment() {
102: return this .property.createDeployment();
103: }
104:
105: public Deployment createDeployment(final EClass arg0) {
106: return this .property.createDeployment(arg0);
107: }
108:
109: public EAnnotation createEAnnotation(final String arg0) {
110: return this .property.createEAnnotation(arg0);
111: }
112:
113: public ValueSpecification createLowerValue(final EClass arg0) {
114: return this .property.createLowerValue(arg0);
115: }
116:
117: public StringExpression createNameExpression() {
118: return this .property.createNameExpression();
119: }
120:
121: public StringExpression createNameExpression(final EClass arg0) {
122: return this .property.createNameExpression(arg0);
123: }
124:
125: public Comment createOwnedComment() {
126: return this .property.createOwnedComment();
127: }
128:
129: public Comment createOwnedComment(final EClass arg0) {
130: return this .property.createOwnedComment(arg0);
131: }
132:
133: public TemplateSignature createOwnedTemplateSignature() {
134: return this .property.createOwnedTemplateSignature();
135: }
136:
137: public TemplateSignature createOwnedTemplateSignature(
138: final EClass arg0) {
139: return this .property.createOwnedTemplateSignature(arg0);
140: }
141:
142: public Property createQualifier() {
143: return this .property.createQualifier();
144: }
145:
146: public Property createQualifier(final EClass arg0) {
147: return this .property.createQualifier(arg0);
148: }
149:
150: public TemplateBinding createTemplateBinding() {
151: return this .property.createTemplateBinding();
152: }
153:
154: public TemplateBinding createTemplateBinding(final EClass arg0) {
155: return this .property.createTemplateBinding(arg0);
156: }
157:
158: public ValueSpecification createUpperValue(final EClass arg0) {
159: return this .property.createUpperValue(arg0);
160: }
161:
162: public void destroy() {
163: this .property.destroy();
164: }
165:
166: public EList eAdapters() {
167: return this .property.eAdapters();
168: }
169:
170: public TreeIterator eAllContents() {
171: return this .property.eAllContents();
172: }
173:
174: public EClass eClass() {
175: return this .property.eClass();
176: }
177:
178: public EObject eContainer() {
179: return this .property.eContainer();
180: }
181:
182: public EStructuralFeature eContainingFeature() {
183: return this .property.eContainingFeature();
184: }
185:
186: public EReference eContainmentFeature() {
187: return this .property.eContainmentFeature();
188: }
189:
190: public EList eContents() {
191: return this .property.eContents();
192: }
193:
194: public EList eCrossReferences() {
195: return this .property.eCrossReferences();
196: }
197:
198: public boolean eDeliver() {
199: return this .property.eDeliver();
200: }
201:
202: public Object eGet(final EStructuralFeature arg0) {
203: return this .property.eGet(arg0);
204: }
205:
206: public Object eGet(final EStructuralFeature arg0, final boolean arg1) {
207: return this .property.eGet(arg0, arg1);
208: }
209:
210: public boolean eIsProxy() {
211: return this .property.eIsProxy();
212: }
213:
214: public boolean eIsSet(final EStructuralFeature arg0) {
215: return this .property.eIsSet(arg0);
216: }
217:
218: public void eNotify(final Notification arg0) {
219: this .property.eNotify(arg0);
220: }
221:
222: public Resource eResource() {
223: return this .property.eResource();
224: }
225:
226: public void eSet(final EStructuralFeature arg0, final Object arg1) {
227: this .property.eSet(arg0, arg1);
228: }
229:
230: public void eSetDeliver(final boolean arg0) {
231: this .property.eSetDeliver(arg0);
232: }
233:
234: public void eUnset(final EStructuralFeature arg0) {
235: this .property.eUnset(arg0);
236: }
237:
238: public AggregationKind getAggregation() {
239: return this .property.getAggregation();
240: }
241:
242: public Stereotype getApplicableStereotype(final String arg0) {
243: return this .property.getApplicableStereotype(arg0);
244: }
245:
246: public Set getApplicableStereotypes() {
247: return this .property.getApplicableStereotypes();
248: }
249:
250: public Stereotype getAppliedStereotype(final String arg0) {
251: return this .property.getAppliedStereotype(arg0);
252: }
253:
254: public Set getAppliedStereotypes() {
255: return this .property.getAppliedStereotypes();
256: }
257:
258: public String getAppliedVersion(final Stereotype arg0) {
259: return this .property.getAppliedVersion(arg0);
260: }
261:
262: public Association getAssociation() {
263: return this .property.getAssociation();
264: }
265:
266: public Property getAssociationEnd() {
267: return this .property.getAssociationEnd();
268: }
269:
270: public Class getClass_() {
271: return this .property.getClass_();
272: }
273:
274: public EList getClientDependencies() {
275: return this .property.getClientDependencies();
276: }
277:
278: public Dependency getClientDependency(final String arg0) {
279: return this .property.getClientDependency(arg0);
280: }
281:
282: public DataType getDatatype() {
283: return this .property.getDatatype();
284: }
285:
286: public String getDefault() {
287: return this .property.getDefault();
288: }
289:
290: public ValueSpecification getDefaultValue() {
291: return this .property.getDefaultValue();
292: }
293:
294: public PackageableElement getDeployedElement(final String arg0) {
295: return this .property.getDeployedElement(arg0);
296: }
297:
298: public EList getDeployedElements() {
299: return this .property.getDeployedElements();
300: }
301:
302: public Deployment getDeployment(final String arg0) {
303: return this .property.getDeployment(arg0);
304: }
305:
306: public EList getDeployments() {
307: return this .property.getDeployments();
308: }
309:
310: public EAnnotation getEAnnotation(final String arg0) {
311: return this .property.getEAnnotation(arg0);
312: }
313:
314: public EList getEAnnotations() {
315: return this .property.getEAnnotations();
316: }
317:
318: public EList getEnds() {
319: return this .property.getEnds();
320: }
321:
322: public Classifier getFeaturingClassifier(final String arg0) {
323: return this .property.getFeaturingClassifier(arg0);
324: }
325:
326: public EList getFeaturingClassifiers() {
327: return this .property.getFeaturingClassifiers();
328: }
329:
330: public Set getKeywords() {
331: return this .property.getKeywords();
332: }
333:
334: public String getLabel() {
335: return this .property.getLabel();
336: }
337:
338: public String getLabel(final boolean arg0) {
339: return this .property.getLabel(arg0);
340: }
341:
342: public int getLower() {
343: return this .property.getLower();
344: }
345:
346: public ValueSpecification getLowerValue() {
347: return this .property.getLowerValue();
348: }
349:
350: public Model getModel() {
351: return this .property.getModel();
352: }
353:
354: public String getName() {
355: return this .property.getName();
356: }
357:
358: public StringExpression getNameExpression() {
359: return this .property.getNameExpression();
360: }
361:
362: public Namespace getNamespace() {
363: return this .property.getNamespace();
364: }
365:
366: public Package getNearestPackage() {
367: return this .property.getNearestPackage();
368: }
369:
370: public Property getOpposite() {
371: return this .property.getOpposite();
372: }
373:
374: public EList getOwnedComments() {
375: return this .property.getOwnedComments();
376: }
377:
378: public EList getOwnedElements() {
379: return this .property.getOwnedElements();
380: }
381:
382: public TemplateSignature getOwnedTemplateSignature() {
383: return this .property.getOwnedTemplateSignature();
384: }
385:
386: public Element getOwner() {
387: return this .property.getOwner();
388: }
389:
390: public Association getOwningAssociation() {
391: return this .property.getOwningAssociation();
392: }
393:
394: public TemplateParameter getOwningParameter() {
395: return this .property.getOwningParameter();
396: }
397:
398: public String getQualifiedName() {
399: return this .property.getQualifiedName();
400: }
401:
402: public Property getQualifier(final String arg0) {
403: return this .property.getQualifier(arg0);
404: }
405:
406: public EList getQualifiers() {
407: return this .property.getQualifiers();
408: }
409:
410: public RedefinableElement getRedefinedElement(final String arg0) {
411: return this .property.getRedefinedElement(arg0);
412: }
413:
414: public EList getRedefinedElements() {
415: return this .property.getRedefinedElements();
416: }
417:
418: public EList getRedefinedProperties() {
419: return this .property.getRedefinedProperties();
420: }
421:
422: public Property getRedefinedProperty(final String arg0) {
423: return this .property.getRedefinedProperty(arg0);
424: }
425:
426: public Classifier getRedefinitionContext(final String arg0) {
427: return this .property.getRedefinitionContext(arg0);
428: }
429:
430: public EList getRedefinitionContexts() {
431: return this .property.getRedefinitionContexts();
432: }
433:
434: public EList getSubsettedProperties() {
435: return this .property.getSubsettedProperties();
436: }
437:
438: public Property getSubsettedProperty(final String arg0) {
439: return this .property.getSubsettedProperty(arg0);
440: }
441:
442: public EList getTemplateBindings() {
443: return this .property.getTemplateBindings();
444: }
445:
446: public TemplateParameter getTemplateParameter() {
447: return this .property.getTemplateParameter();
448: }
449:
450: public Type getType() {
451: return this .property.getType();
452: }
453:
454: public int getUpper() {
455: return this .property.getUpper();
456: }
457:
458: public ValueSpecification getUpperValue() {
459: return this .property.getUpperValue();
460: }
461:
462: public Object getValue(final Stereotype arg0, final String arg1) {
463: return this .property.getValue(arg0, arg1);
464: }
465:
466: public VisibilityKind getVisibility() {
467: return this .property.getVisibility();
468: }
469:
470: public boolean hasKeyword(final String arg0) {
471: return this .property.hasKeyword(arg0);
472: }
473:
474: public boolean hasValue(final Stereotype arg0, final String arg1) {
475: return this .property.hasValue(arg0, arg1);
476: }
477:
478: public boolean includesCardinality(final int arg0) {
479: return this .property.includesCardinality(arg0);
480: }
481:
482: public boolean includesMultiplicity(final MultiplicityElement arg0) {
483: return this .property.includesMultiplicity(arg0);
484: }
485:
486: public boolean isApplied(final Stereotype arg0) {
487: return this .property.isApplied(arg0);
488: }
489:
490: public boolean isComposite() {
491: return this .property.isComposite();
492: }
493:
494: public boolean isConsistentWith(final RedefinableElement arg0) {
495: return this .property.isConsistentWith(arg0);
496: }
497:
498: public boolean isDerived() {
499: return this .property.isDerived();
500: }
501:
502: public boolean isDerivedUnion() {
503: return this .property.isDerivedUnion();
504: }
505:
506: public boolean isDistinguishableFrom(final NamedElement arg0,
507: final Namespace arg1) {
508: return this .property.isDistinguishableFrom(arg0, arg1);
509: }
510:
511: public boolean isLeaf() {
512: return this .property.isLeaf();
513: }
514:
515: public boolean isMultivalued() {
516: return this .property.isMultivalued();
517: }
518:
519: public boolean isNavigable() {
520: return this .property.isNavigable();
521: }
522:
523: public boolean isOrdered() {
524: return this .property.isOrdered();
525: }
526:
527: public boolean isReadOnly() {
528: return this .property.isReadOnly();
529: }
530:
531: public boolean isRedefinitionContextValid(
532: final RedefinableElement arg0) {
533: return this .property.isRedefinitionContextValid(arg0);
534: }
535:
536: public boolean isRequired(final Stereotype arg0) {
537: return this .property.isRequired(arg0);
538: }
539:
540: public boolean isStatic() {
541: return this .property.isStatic();
542: }
543:
544: public boolean isUnique() {
545: return this .property.isUnique();
546: }
547:
548: public int lower() {
549: return this .property.lower();
550: }
551:
552: public int lowerBound() {
553: return this .property.lowerBound();
554: }
555:
556: public boolean mustBeOwned() {
557: return this .property.mustBeOwned();
558: }
559:
560: public Property opposite() {
561: return this .property.opposite();
562: }
563:
564: public Set parameterableElements() {
565: return this .property.parameterableElements();
566: }
567:
568: public String qualifiedName() {
569: return this .property.qualifiedName();
570: }
571:
572: public void removeKeyword(final String arg0) {
573: this .property.removeKeyword(arg0);
574: }
575:
576: public String separator() {
577: return this .property.separator();
578: }
579:
580: public void setAggregation(final AggregationKind arg0) {
581: this .property.setAggregation(arg0);
582: }
583:
584: public void setAssociation(final Association arg0) {
585: this .property.setAssociation(arg0);
586: }
587:
588: public void setAssociationEnd(final Property arg0) {
589: this .property.setAssociationEnd(arg0);
590: }
591:
592: public void setBooleanDefault(final boolean arg0) {
593: this .property.setBooleanDefault(arg0);
594: }
595:
596: public void setDatatype(final DataType arg0) {
597: this .property.setDatatype(arg0);
598: }
599:
600: public void setDefaultValue(final ValueSpecification arg0) {
601: this .property.setDefaultValue(arg0);
602: }
603:
604: public void setIntegerDefault(final int arg0) {
605: this .property.setIntegerDefault(arg0);
606: }
607:
608: public void setIsDerived(final boolean arg0) {
609: this .property.setIsDerived(arg0);
610: }
611:
612: public void setIsDerivedUnion(final boolean arg0) {
613: this .property.setIsDerivedUnion(arg0);
614: }
615:
616: public void setIsLeaf(final boolean arg0) {
617: this .property.setIsLeaf(arg0);
618: }
619:
620: public void setIsOrdered(final boolean arg0) {
621: this .property.setIsOrdered(arg0);
622: }
623:
624: public void setIsReadOnly(final boolean arg0) {
625: this .property.setIsReadOnly(arg0);
626: }
627:
628: public void setIsStatic(final boolean arg0) {
629: this .property.setIsStatic(arg0);
630: }
631:
632: public void setIsUnique(final boolean arg0) {
633: this .property.setIsUnique(arg0);
634: }
635:
636: public void setLowerBound(final int arg0) {
637: this .property.setLowerBound(arg0);
638: }
639:
640: public void setLowerValue(final ValueSpecification arg0) {
641: this .property.setLowerValue(arg0);
642: }
643:
644: public void setName(final String arg0) {
645: this .property.setName(arg0);
646: }
647:
648: public void setNameExpression(final StringExpression arg0) {
649: this .property.setNameExpression(arg0);
650: }
651:
652: public void setNavigable(final boolean arg0) {
653: this .property.setNavigable(arg0);
654: }
655:
656: public void setOwnedTemplateSignature(final TemplateSignature arg0) {
657: this .property.setOwnedTemplateSignature(arg0);
658: }
659:
660: public void setOwningAssociation(final Association arg0) {
661: this .property.setOwningAssociation(arg0);
662: }
663:
664: public void setOwningParameter(final TemplateParameter arg0) {
665: this .property.setOwningParameter(arg0);
666: }
667:
668: public void setStringDefault(final String arg0) {
669: this .property.setStringDefault(arg0);
670: }
671:
672: public void setTemplateParameter(final TemplateParameter arg0) {
673: this .property.setTemplateParameter(arg0);
674: }
675:
676: public void setType(final Type arg0) {
677: this .property.setType(arg0);
678: }
679:
680: public void setUnlimitedNaturalDefault(final int arg0) {
681: this .property.setUnlimitedNaturalDefault(arg0);
682: }
683:
684: public void setUpperBound(final int arg0) {
685: this .property.setUpperBound(arg0);
686: }
687:
688: public void setUpperValue(final ValueSpecification arg0) {
689: this .property.setUpperValue(arg0);
690: }
691:
692: public void setValue(final Stereotype arg0, final String arg1,
693: final Object arg2) {
694: this .property.setValue(arg0, arg1, arg2);
695: }
696:
697: public void setVisibility(final VisibilityKind arg0) {
698: this .property.setVisibility(arg0);
699: }
700:
701: public Set subsettingContext() {
702: return this .property.subsettingContext();
703: }
704:
705: public void unapply(final Stereotype arg0) {
706: this .property.unapply(arg0);
707: }
708:
709: public int upper() {
710: return this .property.upper();
711: }
712:
713: public int upperBound() {
714: return this .property.upperBound();
715: }
716:
717: public boolean validateDerivedUnionIsDerived(
718: final DiagnosticChain arg0, final Map arg1) {
719: return this .property.validateDerivedUnionIsDerived(arg0, arg1);
720: }
721:
722: public boolean validateHasOwner(final DiagnosticChain arg0,
723: final Map arg1) {
724: return this .property.validateHasOwner(arg0, arg1);
725: }
726:
727: public boolean validateLowerEqLowerbound(
728: final DiagnosticChain arg0, final Map arg1) {
729: return this .property.validateLowerEqLowerbound(arg0, arg1);
730: }
731:
732: public boolean validateLowerGe0(final DiagnosticChain arg0,
733: final Map arg1) {
734: return this .property.validateLowerGe0(arg0, arg1);
735: }
736:
737: public boolean validateMultiplicityOfComposite(
738: final DiagnosticChain arg0, final Map arg1) {
739: return this .property
740: .validateMultiplicityOfComposite(arg0, arg1);
741: }
742:
743: public boolean validateNavigablePropertyRedefinition(
744: final DiagnosticChain arg0, final Map arg1) {
745: return this .property.validateNavigablePropertyRedefinition(
746: arg0, arg1);
747: }
748:
749: public boolean validateNavigableReadonly(
750: final DiagnosticChain arg0, final Map arg1) {
751: return this .property.validateNavigableReadonly(arg0, arg1);
752: }
753:
754: public boolean validateNoName(final DiagnosticChain arg0,
755: final Map arg1) {
756: return this .property.validateNoName(arg0, arg1);
757: }
758:
759: public boolean validateNotOwnSelf(final DiagnosticChain arg0,
760: final Map arg1) {
761: return this .property.validateNotOwnSelf(arg0, arg1);
762: }
763:
764: public boolean validateOppositeIsOtherEnd(
765: final DiagnosticChain arg0, final Map arg1) {
766: return this .property.validateOppositeIsOtherEnd(arg0, arg1);
767: }
768:
769: public boolean validateQualifiedName(final DiagnosticChain arg0,
770: final Map arg1) {
771: return this .property.validateQualifiedName(arg0, arg1);
772: }
773:
774: public boolean validateRedefinitionConsistent(
775: final DiagnosticChain arg0, final Map arg1) {
776: return this .property.validateRedefinitionConsistent(arg0, arg1);
777: }
778:
779: public boolean validateRedefinitionContextValid(
780: final DiagnosticChain arg0, final Map arg1) {
781: return this .property.validateRedefinitionContextValid(arg0,
782: arg1);
783: }
784:
785: public boolean validateSubsettingContext(
786: final DiagnosticChain arg0, final Map arg1) {
787: return this .property.validateSubsettingContext(arg0, arg1);
788: }
789:
790: public boolean validateSubsettingRules(final DiagnosticChain arg0,
791: final Map arg1) {
792: return this .property.validateSubsettingRules(arg0, arg1);
793: }
794:
795: public boolean validateUpperEqUpperbound(
796: final DiagnosticChain arg0, final Map arg1) {
797: return this .property.validateUpperEqUpperbound(arg0, arg1);
798: }
799:
800: public boolean validateUpperGeLower(final DiagnosticChain arg0,
801: final Map arg1) {
802: return this .property.validateUpperGeLower(arg0, arg1);
803: }
804:
805: public boolean validateUpperGt0(final DiagnosticChain arg0,
806: final Map arg1) {
807: return this .property.validateUpperGt0(arg0, arg1);
808: }
809:
810: public boolean validateVisibilityNeedsOwnership(
811: final DiagnosticChain arg0, final Map arg1) {
812: return this.property.validateVisibilityNeedsOwnership(arg0,
813: arg1);
814: }
815: }
|