From a0520cf513fcc389b4334a30fc8474cab5cf3188 Mon Sep 17 00:00:00 2001
From: Arthur Daussy
* The following features are supported:
*
*
*
@@ -50,15 +52,15 @@ public interface ACliche extends EObject {
*
* @return the value of the 'Single Valued Attribute' attribute.
* @see #setSingleValuedAttribute(String)
- * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche_SingleValuedAttribute()
- * @model ordered="false"
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche2_SingleValuedAttribute()
+ * @model dataType="org.eclipse.uml2.types.String" ordered="false"
* @generated
*/
String getSingleValuedAttribute();
/**
* Sets the value of the '
- * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche#getSingleValuedAttribute
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getSingleValuedAttribute
* Single Valued Attribute}' attribute.
*
* @param value
@@ -78,8 +80,8 @@ public interface ACliche extends EObject {
*
*
* @return the value of the 'Many Valued Attribute' attribute list.
- * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche_ManyValuedAttribute()
- * @model
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche2_ManyValuedAttribute()
+ * @model dataType="org.eclipse.uml2.types.String"
* @generated
*/
EList
+ * The following features are supported:
+ *
+ *
+ *
+ * If the meaning of the 'Base Class' reference isn't clear, there really should be more of a + * description here... + *
+ * + * + * @return the value of the 'Base Class' reference. + * @see #setBase_Class(org.eclipse.uml2.uml.Class) + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage#getACliche3_Base_Class() + * @model required="true" ordered="false" + * @generated + */ + org.eclipse.uml2.uml.Class getBase_Class(); + + /** + * Sets the value of the ' + * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3#getBase_Class + * Base Class}' reference. + * + * @param value + * the new value of the 'Base Class' reference. + * @see #getBase_Class() + * @generated + */ + void setBase_Class(org.eclipse.uml2.uml.Class value); + +} // ACliche3 diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfileFactory.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfileFactory.java index 0e1ba0e46..2bc5c05b4 100644 --- a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfileFactory.java +++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfileFactory.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2012 Obeo. + * Copyright (c) 2011, 2014 Obeo. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -37,6 +37,22 @@ public interface UML2CompareTestProfileFactory extends EFactory { ACliche createACliche(); /** + * Returns a new object of class 'ACliche2'. + * + * @return a new object of class 'ACliche2'. + * @generated + */ + ACliche2 createACliche2(); + + /** + * Returns a new object of class 'ACliche3'. + * + * @return a new object of class 'ACliche3'. + * @generated + */ + ACliche3 createACliche3(); + + /** * Returns the package supported by this factory. * * @return the package supported by this factory. diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfilePackage.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfilePackage.java index 85d9e5862..bf5b271df 100644 --- a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfilePackage.java +++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/UML2CompareTestProfilePackage.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2012 Obeo. + * Copyright (c) 2011, 2014 Obeo. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -28,6 +28,7 @@ import org.eclipse.emf.ecore.EReference; * * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfileFactory * @model kind="package" + * annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='UML2CompareTestProfile'" * @generated */ public interface UML2CompareTestProfilePackage extends EPackage { @@ -126,6 +127,100 @@ public interface UML2CompareTestProfilePackage extends EPackage { int ACLICHE_FEATURE_COUNT = 5; /** + * The meta object id for the ' + * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche2Impl + * ACliche2}' class. + * + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche2Impl + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.UML2CompareTestProfilePackageImpl#getACliche2() + * @generated + */ + int ACLICHE2 = 1; + + /** + * The feature id for the 'Single Valued Attribute' attribute. + * + * + * @generated + * @ordered + */ + int ACLICHE2__SINGLE_VALUED_ATTRIBUTE = 0; + + /** + * The feature id for the 'Many Valued Attribute' attribute list. + * + * + * @generated + * @ordered + */ + int ACLICHE2__MANY_VALUED_ATTRIBUTE = 1; + + /** + * The feature id for the 'Single Valued Reference' reference. + * + * + * @generated + * @ordered + */ + int ACLICHE2__SINGLE_VALUED_REFERENCE = 2; + + /** + * The feature id for the 'Many Valued Reference' reference list. + * + * + * @generated + * @ordered + */ + int ACLICHE2__MANY_VALUED_REFERENCE = 3; + + /** + * The feature id for the 'Base Class' reference. + * + * @generated + * @ordered + */ + int ACLICHE2__BASE_CLASS = 4; + + /** + * The number of structural features of the 'ACliche2' class. + * + * @generated + * @ordered + */ + int ACLICHE2_FEATURE_COUNT = 5; + + /** + * The meta object id for the ' + * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche3Impl + * ACliche3}' class. + * + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche3Impl + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.UML2CompareTestProfilePackageImpl#getACliche3() + * @generated + */ + int ACLICHE3 = 2; + + /** + * The feature id for the 'Base Class' reference. + * + * @generated + * @ordered + */ + int ACLICHE3__BASE_CLASS = 0; + + /** + * The number of structural features of the 'ACliche3' class. + * + * @generated + * @ordered + */ + int ACLICHE3_FEATURE_COUNT = 1; + + /** * Returns the meta object for class ' * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche ACliche}'. * @@ -197,6 +292,100 @@ public interface UML2CompareTestProfilePackage extends EPackage { EReference getACliche_Base_Class(); /** + * Returns the meta object for class ' + * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2 ACliche2}'. + * + * + * @return the meta object for class 'ACliche2'. + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2 + * @generated + */ + EClass getACliche2(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getSingleValuedAttribute + * Single Valued Attribute}'. + * + * @return the meta object for the attribute 'Single Valued Attribute'. + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getSingleValuedAttribute() + * @see #getACliche2() + * @generated + */ + EAttribute getACliche2_SingleValuedAttribute(); + + /** + * Returns the meta object for the attribute list ' + * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getManyValuedAttribute + * Many Valued Attribute}'. + * + * @return the meta object for the attribute list 'Many Valued Attribute'. + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getManyValuedAttribute() + * @see #getACliche2() + * @generated + */ + EAttribute getACliche2_ManyValuedAttribute(); + + /** + * Returns the meta object for the reference ' + * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getSingleValuedReference + * Single Valued Reference}'. + * + * @return the meta object for the reference 'Single Valued Reference'. + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getSingleValuedReference() + * @see #getACliche2() + * @generated + */ + EReference getACliche2_SingleValuedReference(); + + /** + * Returns the meta object for the reference list ' + * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getManyValuedReference + * Many Valued Reference}'. + * + * @return the meta object for the reference list 'Many Valued Reference'. + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getManyValuedReference() + * @see #getACliche2() + * @generated + */ + EReference getACliche2_ManyValuedReference(); + + /** + * Returns the meta object for the reference ' + * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getBase_Class + * Base Class}'. + * + * @return the meta object for the reference 'Base Class'. + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2#getBase_Class() + * @see #getACliche2() + * @generated + */ + EReference getACliche2_Base_Class(); + + /** + * Returns the meta object for class ' + * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3 ACliche3}'. + * + * + * @return the meta object for class 'ACliche3'. + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3 + * @generated + */ + EClass getACliche3(); + + /** + * Returns the meta object for the reference ' + * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3#getBase_Class + * Base Class}'. + * + * @return the meta object for the reference 'Base Class'. + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3#getBase_Class() + * @see #getACliche3() + * @generated + */ + EReference getACliche3_Base_Class(); + + /** * Returns the factory that creates the instances of the model. * @@ -269,6 +458,76 @@ public interface UML2CompareTestProfilePackage extends EPackage { */ EReference ACLICHE__BASE_CLASS = eINSTANCE.getACliche_Base_Class(); + /** + * The meta object literal for the ' + * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche2Impl + * ACliche2}' class. + * + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche2Impl + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.UML2CompareTestProfilePackageImpl#getACliche2() + * @generated + */ + EClass ACLICHE2 = eINSTANCE.getACliche2(); + + /** + * The meta object literal for the 'Single Valued Attribute' attribute feature. + * + * @generated + */ + EAttribute ACLICHE2__SINGLE_VALUED_ATTRIBUTE = eINSTANCE.getACliche2_SingleValuedAttribute(); + + /** + * The meta object literal for the 'Many Valued Attribute' attribute list feature. + * + * + * @generated + */ + EAttribute ACLICHE2__MANY_VALUED_ATTRIBUTE = eINSTANCE.getACliche2_ManyValuedAttribute(); + + /** + * The meta object literal for the 'Single Valued Reference' reference feature. + * + * @generated + */ + EReference ACLICHE2__SINGLE_VALUED_REFERENCE = eINSTANCE.getACliche2_SingleValuedReference(); + + /** + * The meta object literal for the 'Many Valued Reference' reference list feature. + * + * + * @generated + */ + EReference ACLICHE2__MANY_VALUED_REFERENCE = eINSTANCE.getACliche2_ManyValuedReference(); + + /** + * The meta object literal for the 'Base Class' reference feature. + * + * @generated + */ + EReference ACLICHE2__BASE_CLASS = eINSTANCE.getACliche2_Base_Class(); + + /** + * The meta object literal for the ' + * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche3Impl + * ACliche3}' class. + * + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.ACliche3Impl + * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl.UML2CompareTestProfilePackageImpl#getACliche3() + * @generated + */ + EClass ACLICHE3 = eINSTANCE.getACliche3(); + + /** + * The meta object literal for the 'Base Class' reference feature. + * + * @generated + */ + EReference ACLICHE3__BASE_CLASS = eINSTANCE.getACliche3_Base_Class(); + } } // UML2CompareTestProfilePackage diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/AClicheImpl.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/ACliche2Impl.java similarity index 80% copy from plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/AClicheImpl.java copy to plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/ACliche2Impl.java index d772bcfdb..159baa11e 100644 --- a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/AClicheImpl.java +++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/impl/ACliche2Impl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2012 Obeo. + * Copyright (c) 2014 Obeo. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -14,7 +14,7 @@ import java.util.Collection; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche; +import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2; import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; @@ -24,31 +24,32 @@ import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; import org.eclipse.emf.ecore.util.EObjectResolvingEList; /** - * An implementation of the model object 'ACliche'. An implementation of the model object 'ACliche2'. ** The following features are implemented: *
+ * The following features are implemented: + *
@@ -71,10 +88,9 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
* @generated
*/
public static UML2CompareTestProfilePackage init() {
- if (isInited) {
+ if (isInited)
return (UML2CompareTestProfilePackage)EPackage.Registry.INSTANCE
.getEPackage(UML2CompareTestProfilePackage.eNS_URI);
- }
// Obtain or create and register package
UML2CompareTestProfilePackageImpl theUML2CompareTestProfilePackage = (UML2CompareTestProfilePackageImpl)(EPackage.Registry.INSTANCE
@@ -160,6 +176,78 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
*
* @generated
*/
+ public EClass getACliche2() {
+ return aCliche2EClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getACliche2_SingleValuedAttribute() {
+ return (EAttribute)aCliche2EClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getACliche2_ManyValuedAttribute() {
+ return (EAttribute)aCliche2EClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getACliche2_SingleValuedReference() {
+ return (EReference)aCliche2EClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getACliche2_ManyValuedReference() {
+ return (EReference)aCliche2EClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getACliche2_Base_Class() {
+ return (EReference)aCliche2EClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getACliche3() {
+ return aCliche3EClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getACliche3_Base_Class() {
+ return (EReference)aCliche3EClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
public UML2CompareTestProfileFactory getUML2CompareTestProfileFactory() {
return (UML2CompareTestProfileFactory)getEFactoryInstance();
}
@@ -178,9 +266,8 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
* @generated
*/
public void createPackageContents() {
- if (isCreated) {
+ if (isCreated)
return;
- }
isCreated = true;
// Create classes and their features
@@ -190,6 +277,16 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
createEReference(aClicheEClass, ACLICHE__SINGLE_VALUED_REFERENCE);
createEReference(aClicheEClass, ACLICHE__MANY_VALUED_REFERENCE);
createEReference(aClicheEClass, ACLICHE__BASE_CLASS);
+
+ aCliche2EClass = createEClass(ACLICHE2);
+ createEAttribute(aCliche2EClass, ACLICHE2__SINGLE_VALUED_ATTRIBUTE);
+ createEAttribute(aCliche2EClass, ACLICHE2__MANY_VALUED_ATTRIBUTE);
+ createEReference(aCliche2EClass, ACLICHE2__SINGLE_VALUED_REFERENCE);
+ createEReference(aCliche2EClass, ACLICHE2__MANY_VALUED_REFERENCE);
+ createEReference(aCliche2EClass, ACLICHE2__BASE_CLASS);
+
+ aCliche3EClass = createEClass(ACLICHE3);
+ createEReference(aCliche3EClass, ACLICHE3__BASE_CLASS);
}
/**
@@ -206,9 +303,8 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
* @generated
*/
public void initializePackageContents() {
- if (isInitialized) {
+ if (isInitialized)
return;
- }
isInitialized = true;
// Initialize package
@@ -217,6 +313,8 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
setNsURI(eNS_URI);
// Obtain other dependent packages
+ TypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE
+ .getEPackage(TypesPackage.eNS_URI);
UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
// Create type parameters
@@ -226,29 +324,84 @@ public class UML2CompareTestProfilePackageImpl extends EPackageImpl implements U
// Add supertypes to classes
// Initialize classes and features; add operations and parameters
- initEClass(aClicheEClass, ACliche.class, "ACliche", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
- IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getACliche_SingleValuedAttribute(), ecorePackage.getEString(),
- "singleValuedAttribute", null, 0, 1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$
- IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getACliche_ManyValuedAttribute(), ecorePackage.getEString(),
- "manyValuedAttribute", //$NON-NLS-1$
- null, 0, -1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
- !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getACliche_SingleValuedReference(), theUMLPackage.getClass_(), null,
- "singleValuedReference", null, 0, 1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$
- IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- !IS_ORDERED);
- initEReference(getACliche_ManyValuedReference(), theUMLPackage.getClass_(), null,
- "manyValuedReference", null, 0, -1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$
- IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
- initEReference(getACliche_Base_Class(), theUMLPackage.getClass_(), null, "base_Class", null, 1, 1, //$NON-NLS-1$
- ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
- !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEClass(aClicheEClass, ACliche.class,
+ "ACliche", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEAttribute(
+ getACliche_SingleValuedAttribute(),
+ theTypesPackage.getString(),
+ "singleValuedAttribute", null, 0, 1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(
+ getACliche_ManyValuedAttribute(),
+ theTypesPackage.getString(),
+ "manyValuedAttribute", null, 0, -1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getACliche_SingleValuedReference(),
+ theUMLPackage.getClass_(),
+ null,
+ "singleValuedReference", null, 0, 1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getACliche_ManyValuedReference(),
+ theUMLPackage.getClass_(),
+ null,
+ "manyValuedReference", null, 0, -1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getACliche_Base_Class(),
+ theUMLPackage.getClass_(),
+ null,
+ "base_Class", null, 1, 1, ACliche.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(aCliche2EClass, ACliche2.class,
+ "ACliche2", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEAttribute(
+ getACliche2_SingleValuedAttribute(),
+ theTypesPackage.getString(),
+ "singleValuedAttribute", null, 0, 1, ACliche2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(
+ getACliche2_ManyValuedAttribute(),
+ theTypesPackage.getString(),
+ "manyValuedAttribute", null, 0, -1, ACliche2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getACliche2_SingleValuedReference(),
+ theUMLPackage.getClass_(),
+ null,
+ "singleValuedReference", null, 0, 1, ACliche2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getACliche2_ManyValuedReference(),
+ theUMLPackage.getClass_(),
+ null,
+ "manyValuedReference", null, 0, -1, ACliche2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getACliche2_Base_Class(),
+ theUMLPackage.getClass_(),
+ null,
+ "base_Class", null, 1, 1, ACliche2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(aCliche3EClass, ACliche3.class,
+ "ACliche3", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEReference(
+ getACliche3_Base_Class(),
+ theUMLPackage.getClass_(),
+ null,
+ "base_Class", null, 1, 1, ACliche3.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$
// Create resource
createResource(eNS_URI);
+
+ // Create annotations
+ // http://www.eclipse.org/uml2/2.0.0/UML
+ createUMLAnnotations();
+ }
+
+ /**
+ * Initializes the annotations for http://www.eclipse.org/uml2/2.0.0/UML.
+ *
+ *
+ * @generated
+ */
+ protected void createUMLAnnotations() {
+ String source = "http://www.eclipse.org/uml2/2.0.0/UML"; //$NON-NLS-1$
+ addAnnotation(this, source, new String[] {"originalName", "UML2CompareTestProfile" //$NON-NLS-1$ //$NON-NLS-2$
+ });
}
} // UML2CompareTestProfilePackageImpl
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileAdapterFactory.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileAdapterFactory.java
index d894f2d45..5db335f2f 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileAdapterFactory.java
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileAdapterFactory.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 Obeo.
+ * Copyright (c) 2011, 2014 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -13,6 +13,7 @@ package org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.*;
import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche;
import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage;
import org.eclipse.emf.ecore.EObject;
@@ -75,6 +76,16 @@ public class UML2CompareTestProfileAdapterFactory extends AdapterFactoryImpl {
}
@Override
+ public Adapter caseACliche2(ACliche2 object) {
+ return createACliche2Adapter();
+ }
+
+ @Override
+ public Adapter caseACliche3(ACliche3 object) {
+ return createACliche3Adapter();
+ }
+
+ @Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
@@ -108,6 +119,34 @@ public class UML2CompareTestProfileAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2 ACliche2}'.
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2
+ * @generated
+ */
+ public Adapter createACliche2Adapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3 ACliche3}'.
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3
+ * @generated
+ */
+ public Adapter createACliche3Adapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for the default case. This default implementation returns
* null.
*
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileSwitch.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileSwitch.java
index 5edeed3bc..daf10ba5b 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileSwitch.java
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/util/UML2CompareTestProfileSwitch.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 Obeo.
+ * Copyright (c) 2011, 2014 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,33 +10,33 @@
*******************************************************************************/
package org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.util;
-import java.util.List;
-
import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3;
import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage;
-import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.util.Switch;
/**
* The Switch for the model's inheritance hierarchy. It supports the call
* {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX
method for each class of the
* model, starting with the actual class of the object and proceeding up the inheritance hierarchy until a
* non-null result is returned, which is the result of the switch.
- *
* @see org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage
* @generated
*/
-public class UML2CompareTestProfileSwitchcaseXXX
for each class of the model until one returns a non null result; it yields
- * that result.
- *
- * @return the first non-null result returned by a caseXXX
call.
- * @generated
- */
- public T doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls caseXXX
for each class of the model until one returns a non null result; it yields
- * that result.
- *
- * @return the first non-null result returned by a caseXXX
call.
+ * Checks whether this is a switch for the given package.
+ *
+ *
+ * @parameter ePackage the package in question.
+ * @return whether this is a switch for the given package.
* @generated
*/
- protected T doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- } else {
- ListcaseXXX
for each class of the model until one returns a non null result; it yields
- * that result.
- *
+ * Calls caseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
* @return the first non-null result returned by a caseXXX
call.
* @generated
*/
+ @Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case UML2CompareTestProfilePackage.ACLICHE: {
ACliche aCliche = (ACliche)theEObject;
T result = caseACliche(aCliche);
- if (result == null) {
- result = defaultCase(theEObject);
- }
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UML2CompareTestProfilePackage.ACLICHE2: {
+ ACliche2 aCliche2 = (ACliche2)theEObject;
+ T result = caseACliche2(aCliche2);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UML2CompareTestProfilePackage.ACLICHE3: {
+ ACliche3 aCliche3 = (ACliche3)theEObject;
+ T result = caseACliche3(aCliche3);
+ if (result == null) result = defaultCase(theEObject);
return result;
}
- default:
- return defaultCase(theEObject);
+ default: return defaultCase(theEObject);
}
}
/**
- * Returns the result of interpreting the object as an instance of 'ACliche'. This implementation returns null; returning a non-null result will terminate the switch.
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'ACliche'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -110,16 +104,46 @@ public class UML2CompareTestProfileSwitch