Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/ClassifierTemplateParameterImpl.java')
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/ClassifierTemplateParameterImpl.java213
1 files changed, 213 insertions, 0 deletions
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/ClassifierTemplateParameterImpl.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/ClassifierTemplateParameterImpl.java
new file mode 100644
index 00000000000..c86c932cc90
--- /dev/null
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/ClassifierTemplateParameterImpl.java
@@ -0,0 +1,213 @@
+/**
+ */
+package org.eclipse.papyrus.uml.alf.impl;
+
+import java.lang.reflect.InvocationTargetException;
+import org.eclipse.emf.common.util.BasicEList;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.common.util.WrappedException;
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.EOperation;
+import org.eclipse.papyrus.uml.alf.AlfPackage;
+import org.eclipse.papyrus.uml.alf.ClassifierDefinition;
+import org.eclipse.papyrus.uml.alf.ClassifierTemplateParameter;
+import org.eclipse.papyrus.uml.alf.ElementReference;
+import org.eclipse.papyrus.uml.alf.MemberDefinition;
+import org.eclipse.papyrus.uml.alf.NamespaceDefinition;
+import org.eclipse.papyrus.uml.alf.StereotypeAnnotation;
+import org.eclipse.papyrus.uml.alf.UnitDefinition;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Classifier Template Parameter</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ *
+ * @generated
+ */
+public class ClassifierTemplateParameterImpl extends ClassifierDefinitionImpl implements ClassifierTemplateParameter {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ClassifierTemplateParameterImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return AlfPackage.eINSTANCE.getClassifierTemplateParameter();
+ }
+
+ /**
+ * The cached invocation delegate for the '{@link #annotationAllowed(org.eclipse.papyrus.uml.alf.StereotypeAnnotation) <em>Annotation Allowed</em>}' operation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #annotationAllowed(org.eclipse.papyrus.uml.alf.StereotypeAnnotation)
+ * @generated
+ * @ordered
+ */
+ protected static final EOperation.Internal.InvocationDelegate ANNOTATION_ALLOWED_STEREOTYPE_ANNOTATION__EINVOCATION_DELEGATE = ((EOperation.Internal) AlfPackage.eINSTANCE.getClassifierTemplateParameter__AnnotationAllowed__StereotypeAnnotation())
+ .getInvocationDelegate();
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean annotationAllowed(StereotypeAnnotation annotation) {
+ try {
+ return (Boolean) ANNOTATION_ALLOWED_STEREOTYPE_ANNOTATION__EINVOCATION_DELEGATE.dynamicInvoke(this, new BasicEList.UnmodifiableEList<Object>(1, new Object[] { annotation }));
+ } catch (InvocationTargetException ite) {
+ throw new WrappedException(ite);
+ }
+ }
+
+ /**
+ * The cached invocation delegate for the '{@link #matchForStub(org.eclipse.papyrus.uml.alf.UnitDefinition) <em>Match For Stub</em>}' operation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #matchForStub(org.eclipse.papyrus.uml.alf.UnitDefinition)
+ * @generated
+ * @ordered
+ */
+ protected static final EOperation.Internal.InvocationDelegate MATCH_FOR_STUB_UNIT_DEFINITION__EINVOCATION_DELEGATE = ((EOperation.Internal) AlfPackage.eINSTANCE.getClassifierTemplateParameter__MatchForStub__UnitDefinition()).getInvocationDelegate();
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean matchForStub(UnitDefinition unit) {
+ try {
+ return (Boolean) MATCH_FOR_STUB_UNIT_DEFINITION__EINVOCATION_DELEGATE.dynamicInvoke(this, new BasicEList.UnmodifiableEList<Object>(1, new Object[] { unit }));
+ } catch (InvocationTargetException ite) {
+ throw new WrappedException(ite);
+ }
+ }
+
+ /**
+ * The cached invocation delegate for the '{@link #isSameKindAs(org.eclipse.papyrus.uml.alf.ElementReference) <em>Is Same Kind As</em>}' operation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #isSameKindAs(org.eclipse.papyrus.uml.alf.ElementReference)
+ * @generated
+ * @ordered
+ */
+ protected static final EOperation.Internal.InvocationDelegate IS_SAME_KIND_AS_ELEMENT_REFERENCE__EINVOCATION_DELEGATE = ((EOperation.Internal) AlfPackage.eINSTANCE.getClassifierTemplateParameter__IsSameKindAs__ElementReference()).getInvocationDelegate();
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSameKindAs(ElementReference member) {
+ try {
+ return (Boolean) IS_SAME_KIND_AS_ELEMENT_REFERENCE__EINVOCATION_DELEGATE.dynamicInvoke(this, new BasicEList.UnmodifiableEList<Object>(1, new Object[] { member }));
+ } catch (InvocationTargetException ite) {
+ throw new WrappedException(ite);
+ }
+ }
+
+ /**
+ * The cached invocation delegate for the '{@link #matches(org.eclipse.papyrus.uml.alf.ClassifierTemplateParameter) <em>Matches</em>}' operation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #matches(org.eclipse.papyrus.uml.alf.ClassifierTemplateParameter)
+ * @generated
+ * @ordered
+ */
+ protected static final EOperation.Internal.InvocationDelegate MATCHES_CLASSIFIER_TEMPLATE_PARAMETER__EINVOCATION_DELEGATE = ((EOperation.Internal) AlfPackage.eINSTANCE.getClassifierTemplateParameter__Matches__ClassifierTemplateParameter())
+ .getInvocationDelegate();
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean matches(ClassifierTemplateParameter other) {
+ try {
+ return (Boolean) MATCHES_CLASSIFIER_TEMPLATE_PARAMETER__EINVOCATION_DELEGATE.dynamicInvoke(this, new BasicEList.UnmodifiableEList<Object>(1, new Object[] { other }));
+ } catch (InvocationTargetException ite) {
+ throw new WrappedException(ite);
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) {
+ if (baseClass == MemberDefinition.class) {
+ switch (baseOperationID) {
+ case AlfPackage.MEMBER_DEFINITION___ANNOTATION_ALLOWED__STEREOTYPEANNOTATION:
+ return AlfPackage.CLASSIFIER_TEMPLATE_PARAMETER___ANNOTATION_ALLOWED__STEREOTYPEANNOTATION;
+ case AlfPackage.MEMBER_DEFINITION___MATCH_FOR_STUB__UNITDEFINITION:
+ return AlfPackage.CLASSIFIER_TEMPLATE_PARAMETER___MATCH_FOR_STUB__UNITDEFINITION;
+ case AlfPackage.MEMBER_DEFINITION___IS_SAME_KIND_AS__ELEMENTREFERENCE:
+ return AlfPackage.CLASSIFIER_TEMPLATE_PARAMETER___IS_SAME_KIND_AS__ELEMENTREFERENCE;
+ default:
+ return super.eDerivedOperationID(baseOperationID, baseClass);
+ }
+ }
+ if (baseClass == NamespaceDefinition.class) {
+ switch (baseOperationID) {
+ case AlfPackage.NAMESPACE_DEFINITION___ANNOTATION_ALLOWED__STEREOTYPEANNOTATION:
+ return AlfPackage.CLASSIFIER_TEMPLATE_PARAMETER___ANNOTATION_ALLOWED__STEREOTYPEANNOTATION;
+ default:
+ return super.eDerivedOperationID(baseOperationID, baseClass);
+ }
+ }
+ if (baseClass == ClassifierDefinition.class) {
+ switch (baseOperationID) {
+ case AlfPackage.CLASSIFIER_DEFINITION___MATCH_FOR_STUB__UNITDEFINITION:
+ return AlfPackage.CLASSIFIER_TEMPLATE_PARAMETER___MATCH_FOR_STUB__UNITDEFINITION;
+ default:
+ return super.eDerivedOperationID(baseOperationID, baseClass);
+ }
+ }
+ return super.eDerivedOperationID(baseOperationID, baseClass);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
+ switch (operationID) {
+ case AlfPackage.CLASSIFIER_TEMPLATE_PARAMETER___ANNOTATION_ALLOWED__STEREOTYPEANNOTATION:
+ return annotationAllowed((StereotypeAnnotation) arguments.get(0));
+ case AlfPackage.CLASSIFIER_TEMPLATE_PARAMETER___MATCH_FOR_STUB__UNITDEFINITION:
+ return matchForStub((UnitDefinition) arguments.get(0));
+ case AlfPackage.CLASSIFIER_TEMPLATE_PARAMETER___IS_SAME_KIND_AS__ELEMENTREFERENCE:
+ return isSameKindAs((ElementReference) arguments.get(0));
+ case AlfPackage.CLASSIFIER_TEMPLATE_PARAMETER___MATCHES__CLASSIFIERTEMPLATEPARAMETER:
+ return matches((ClassifierTemplateParameter) arguments.get(0));
+ }
+ return super.eInvoke(operationID, arguments);
+ }
+
+} // ClassifierTemplateParameterImpl

Back to the top