From 9c37acefec7fc6e4fcac07e109e4257dc5dd5fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Le=20Calvar?= Date: Fri, 23 Jun 2023 14:55:30 +0200 Subject: [PATCH] update java solution to use generated code provided with driver --- solutions/java/app/.classpath | 9 +- solutions/java/app/.project | 11 + .../app/.settings/org.eclipse.jdt.core.prefs | 11 + .../app/resources/metamodels/Changes.ecore | 126 - .../app/resources/metamodels/Changes.genmodel | 111 - .../java/app/resources/metamodels/Class.ecore | 22 - .../app/resources/metamodels/Class.genmodel | 24 - .../resources/metamodels/ClassDiagram.ecore | 35 - .../metamodels/ClassDiagram.genmodel | 32 - .../app/resources/metamodels/Relational.ecore | 31 - .../resources/metamodels/Relational.genmodel | 30 - .../JClass2RelationalIncremental/App.java | 24 - .../metamodels/Changes/AssociationChange.java | 17 - .../AssociationCollectionDeletion.java | 46 - .../AssociationCollectionInsertion.java | 46 - .../Changes/AssociationCollectionReset.java | 17 - .../Changes/AssociationListDeletion.java | 69 - .../Changes/AssociationListInsertion.java | 69 - .../Changes/AssociationPropertyChange.java | 69 - .../metamodels/Changes/AttributeChange.java | 17 - .../Changes/AttributeCollectionDeletion.java | 45 - .../Changes/AttributeCollectionInsertion.java | 45 - .../Changes/AttributeCollectionReset.java | 17 - .../Changes/AttributeListDeletion.java | 68 - .../Changes/AttributeListInsertion.java | 68 - .../Changes/AttributePropertyChange.java | 68 - .../metamodels/Changes/ChangeTransaction.java | 59 - .../metamodels/Changes/ChangesFactory.java | 294 -- .../metamodels/Changes/ChangesPackage.java | 3257 ----------------- .../metamodels/Changes/CompositionChange.java | 17 - .../CompositionCollectionDeletion.java | 46 - .../CompositionCollectionInsertion.java | 46 - .../Changes/CompositionCollectionReset.java | 17 - .../Changes/CompositionListDeletion.java | 69 - .../Changes/CompositionListInsertion.java | 69 - .../Changes/CompositionMoveIntoProperty.java | 92 - .../Changes/CompositionMoveToCollection.java | 69 - .../Changes/CompositionMoveToList.java | 92 - .../Changes/CompositionPropertyChange.java | 69 - .../metamodels/Changes/ElementaryChange.java | 70 - .../java/metamodels/Changes/ModelChange.java | 18 - .../metamodels/Changes/ModelChangeSet.java | 38 - .../metamodels/Changes/OperationArgument.java | 46 - .../metamodels/Changes/OperationCall.java | 85 - .../metamodels/Changes/ReferenceArgument.java | 46 - .../metamodels/Changes/ValueArgument.java | 45 - .../Changes/impl/AssociationChangeImpl.java | 37 - .../AssociationCollectionDeletionImpl.java | 156 - .../AssociationCollectionInsertionImpl.java | 156 - .../impl/AssociationCollectionResetImpl.java | 37 - .../impl/AssociationListDeletionImpl.java | 224 -- .../impl/AssociationListInsertionImpl.java | 224 -- .../impl/AssociationPropertyChangeImpl.java | 216 -- .../Changes/impl/AttributeChangeImpl.java | 37 - .../impl/AttributeCollectionDeletionImpl.java | 162 - .../AttributeCollectionInsertionImpl.java | 162 - .../impl/AttributeCollectionResetImpl.java | 37 - .../impl/AttributeListDeletionImpl.java | 216 -- .../impl/AttributeListInsertionImpl.java | 216 -- .../impl/AttributePropertyChangeImpl.java | 216 -- .../Changes/impl/ChangeTransactionImpl.java | 219 -- .../Changes/impl/ChangesFactoryImpl.java | 403 -- .../Changes/impl/ChangesPackageImpl.java | 1318 ------- .../Changes/impl/CompositionChangeImpl.java | 37 - .../CompositionCollectionDeletionImpl.java | 156 - .../CompositionCollectionInsertionImpl.java | 175 - .../impl/CompositionCollectionResetImpl.java | 37 - .../impl/CompositionListDeletionImpl.java | 224 -- .../impl/CompositionListInsertionImpl.java | 243 -- .../impl/CompositionMoveIntoPropertyImpl.java | 296 -- .../impl/CompositionMoveToCollectionImpl.java | 237 -- .../impl/CompositionMoveToListImpl.java | 304 -- .../impl/CompositionPropertyChangeImpl.java | 235 -- .../Changes/impl/ElementaryChangeImpl.java | 217 -- .../Changes/impl/ModelChangeImpl.java | 39 - .../Changes/impl/ModelChangeSetImpl.java | 152 - .../Changes/impl/OperationArgumentImpl.java | 163 - .../Changes/impl/OperationCallImpl.java | 275 -- .../Changes/impl/ReferenceArgumentImpl.java | 156 - .../Changes/impl/ValueArgumentImpl.java | 162 - .../Changes/util/ChangesAdapterFactory.java | 678 ---- .../Changes/util/ChangesSwitch.java | 832 ----- .../PrimitiveTypes/PrimitiveTypesFactory.java | 33 - .../PrimitiveTypes/PrimitiveTypesPackage.java | 176 - .../impl/PrimitiveTypesFactoryImpl.java | 177 - .../impl/PrimitiveTypesPackageImpl.java | 200 - .../java/metamodels/Relational/Column.java | 95 - .../java/metamodels/Relational/Named.java | 46 - .../Relational/RelationalFactory.java | 60 - .../Relational/RelationalPackage.java | 472 --- .../java/metamodels/Relational/Table.java | 53 - .../main/java/metamodels/Relational/Type.java | 17 - .../Relational/impl/ColumnImpl.java | 344 -- .../metamodels/Relational/impl/NamedImpl.java | 162 - .../impl/RelationalFactoryImpl.java | 117 - .../impl/RelationalPackageImpl.java | 308 -- .../metamodels/Relational/impl/TableImpl.java | 204 -- .../metamodels/Relational/impl/TypeImpl.java | 37 - .../util/RelationalAdapterFactory.java | 174 - .../Relational/util/RelationalSwitch.java | 176 - .../java/metamodels/class_/Attribute.java | 93 - .../main/java/metamodels/class_/Class.java | 38 - .../java/metamodels/class_/Class_Factory.java | 60 - .../java/metamodels/class_/Class_Package.java | 501 --- .../java/metamodels/class_/Classifier.java | 17 - .../main/java/metamodels/class_/DataType.java | 17 - .../main/java/metamodels/class_/NamedElt.java | 46 - .../metamodels/class_/impl/AttributeImpl.java | 323 -- .../metamodels/class_/impl/ClassImpl.java | 164 - .../class_/impl/Class_FactoryImpl.java | 120 - .../class_/impl/Class_PackageImpl.java | 308 -- .../class_/impl/ClassifierImpl.java | 37 - .../metamodels/class_/impl/DataTypeImpl.java | 37 - .../metamodels/class_/impl/NamedEltImpl.java | 163 - .../class_/util/Class_AdapterFactory.java | 196 - .../metamodels/class_/util/Class_Switch.java | 204 -- .../batch/Class2Relational.java | 38 +- .../Class2RelationalIncremental.java | 38 +- 118 files changed, 61 insertions(+), 19515 deletions(-) create mode 100644 solutions/java/app/.settings/org.eclipse.jdt.core.prefs delete mode 100644 solutions/java/app/resources/metamodels/Changes.ecore delete mode 100644 solutions/java/app/resources/metamodels/Changes.genmodel delete mode 100644 solutions/java/app/resources/metamodels/Class.ecore delete mode 100644 solutions/java/app/resources/metamodels/Class.genmodel delete mode 100644 solutions/java/app/resources/metamodels/ClassDiagram.ecore delete mode 100644 solutions/java/app/resources/metamodels/ClassDiagram.genmodel delete mode 100644 solutions/java/app/resources/metamodels/Relational.ecore delete mode 100644 solutions/java/app/resources/metamodels/Relational.genmodel delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/AssociationChange.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/AssociationCollectionDeletion.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/AssociationCollectionInsertion.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/AssociationCollectionReset.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/AssociationListDeletion.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/AssociationListInsertion.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/AssociationPropertyChange.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/AttributeChange.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/AttributeCollectionDeletion.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/AttributeCollectionInsertion.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/AttributeCollectionReset.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/AttributeListDeletion.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/AttributeListInsertion.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/AttributePropertyChange.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/ChangeTransaction.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/ChangesFactory.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/ChangesPackage.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/CompositionChange.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/CompositionCollectionDeletion.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/CompositionCollectionInsertion.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/CompositionCollectionReset.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/CompositionListDeletion.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/CompositionListInsertion.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/CompositionMoveIntoProperty.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/CompositionMoveToCollection.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/CompositionMoveToList.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/CompositionPropertyChange.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/ElementaryChange.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/ModelChange.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/ModelChangeSet.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/OperationArgument.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/OperationCall.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/ReferenceArgument.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/ValueArgument.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationChangeImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationCollectionDeletionImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationCollectionInsertionImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationCollectionResetImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationListDeletionImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationListInsertionImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationPropertyChangeImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeChangeImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeCollectionDeletionImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeCollectionInsertionImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeCollectionResetImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeListDeletionImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeListInsertionImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/AttributePropertyChangeImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/ChangeTransactionImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/ChangesFactoryImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/ChangesPackageImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionChangeImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionCollectionDeletionImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionCollectionInsertionImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionCollectionResetImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionListDeletionImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionListInsertionImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionMoveIntoPropertyImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionMoveToCollectionImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionMoveToListImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionPropertyChangeImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/ElementaryChangeImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/ModelChangeImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/ModelChangeSetImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/OperationArgumentImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/OperationCallImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/ReferenceArgumentImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/impl/ValueArgumentImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/util/ChangesAdapterFactory.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Changes/util/ChangesSwitch.java delete mode 100644 solutions/java/app/src/main/java/metamodels/PrimitiveTypes/PrimitiveTypesFactory.java delete mode 100644 solutions/java/app/src/main/java/metamodels/PrimitiveTypes/PrimitiveTypesPackage.java delete mode 100644 solutions/java/app/src/main/java/metamodels/PrimitiveTypes/impl/PrimitiveTypesFactoryImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/PrimitiveTypes/impl/PrimitiveTypesPackageImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Relational/Column.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Relational/Named.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Relational/RelationalFactory.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Relational/RelationalPackage.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Relational/Table.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Relational/Type.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Relational/impl/ColumnImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Relational/impl/NamedImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Relational/impl/RelationalFactoryImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Relational/impl/RelationalPackageImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Relational/impl/TableImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Relational/impl/TypeImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Relational/util/RelationalAdapterFactory.java delete mode 100644 solutions/java/app/src/main/java/metamodels/Relational/util/RelationalSwitch.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/Attribute.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/Class.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/Class_Factory.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/Class_Package.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/Classifier.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/DataType.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/NamedElt.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/impl/AttributeImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/impl/ClassImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/impl/Class_FactoryImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/impl/Class_PackageImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/impl/ClassifierImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/impl/DataTypeImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/impl/NamedEltImpl.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/util/Class_AdapterFactory.java delete mode 100644 solutions/java/app/src/main/java/metamodels/class_/util/Class_Switch.java diff --git a/solutions/java/app/.classpath b/solutions/java/app/.classpath index fa0bbae..e16509f 100644 --- a/solutions/java/app/.classpath +++ b/solutions/java/app/.classpath @@ -6,14 +6,7 @@ - - - - - - - - + diff --git a/solutions/java/app/.project b/solutions/java/app/.project index 33635b2..f929904 100644 --- a/solutions/java/app/.project +++ b/solutions/java/app/.project @@ -31,4 +31,15 @@ org.eclipse.buildship.core.gradleprojectnature org.eclipse.pde.PluginNature + + + 1684148512397 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + diff --git a/solutions/java/app/.settings/org.eclipse.jdt.core.prefs b/solutions/java/app/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..fa58230 --- /dev/null +++ b/solutions/java/app/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,11 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.annotation.nonnull=javax.annotation.Nonnull +org.eclipse.jdt.core.compiler.annotation.nullable=javax.annotation.Nullable +org.eclipse.jdt.core.compiler.annotation.nullanalysis=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 +org.eclipse.jdt.core.compiler.compliance=11 +org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=warning +org.eclipse.jdt.core.compiler.problem.nullReference=warning +org.eclipse.jdt.core.compiler.problem.nullSpecViolation=warning +org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning +org.eclipse.jdt.core.compiler.source=11 diff --git a/solutions/java/app/resources/metamodels/Changes.ecore b/solutions/java/app/resources/metamodels/Changes.ecore deleted file mode 100644 index 669e36d..0000000 --- a/solutions/java/app/resources/metamodels/Changes.ecore +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/solutions/java/app/resources/metamodels/Changes.genmodel b/solutions/java/app/resources/metamodels/Changes.genmodel deleted file mode 100644 index 7bd4f58..0000000 --- a/solutions/java/app/resources/metamodels/Changes.genmodel +++ /dev/null @@ -1,111 +0,0 @@ - - - Changes.ecore - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/solutions/java/app/resources/metamodels/Class.ecore b/solutions/java/app/resources/metamodels/Class.ecore deleted file mode 100644 index 564ec6f..0000000 --- a/solutions/java/app/resources/metamodels/Class.ecore +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/solutions/java/app/resources/metamodels/Class.genmodel b/solutions/java/app/resources/metamodels/Class.genmodel deleted file mode 100644 index 58bc110..0000000 --- a/solutions/java/app/resources/metamodels/Class.genmodel +++ /dev/null @@ -1,24 +0,0 @@ - - - Class.ecore - - - - - - - - - - - - - - - - diff --git a/solutions/java/app/resources/metamodels/ClassDiagram.ecore b/solutions/java/app/resources/metamodels/ClassDiagram.ecore deleted file mode 100644 index 57a4985..0000000 --- a/solutions/java/app/resources/metamodels/ClassDiagram.ecore +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/solutions/java/app/resources/metamodels/ClassDiagram.genmodel b/solutions/java/app/resources/metamodels/ClassDiagram.genmodel deleted file mode 100644 index 27a7afc..0000000 --- a/solutions/java/app/resources/metamodels/ClassDiagram.genmodel +++ /dev/null @@ -1,32 +0,0 @@ - - - ClassDiagram.ecore - - - - - - - - - - - - - - - - - - - - - - - diff --git a/solutions/java/app/resources/metamodels/Relational.ecore b/solutions/java/app/resources/metamodels/Relational.ecore deleted file mode 100644 index 1d90153..0000000 --- a/solutions/java/app/resources/metamodels/Relational.ecore +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/solutions/java/app/resources/metamodels/Relational.genmodel b/solutions/java/app/resources/metamodels/Relational.genmodel deleted file mode 100644 index 4e0352d..0000000 --- a/solutions/java/app/resources/metamodels/Relational.genmodel +++ /dev/null @@ -1,30 +0,0 @@ - - - Relational.ecore - - - - - - - - - - - - - - - - - - - - - diff --git a/solutions/java/app/src/main/java/JClass2RelationalIncremental/App.java b/solutions/java/app/src/main/java/JClass2RelationalIncremental/App.java index f57bf61..e6f04a4 100644 --- a/solutions/java/app/src/main/java/JClass2RelationalIncremental/App.java +++ b/solutions/java/app/src/main/java/JClass2RelationalIncremental/App.java @@ -3,35 +3,11 @@ */ package JClass2RelationalIncremental; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl; -import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl; - -import Changes.ChangesPackage; import atl.research.AbstractDriver; import transformations.incremental.Class2RelationalIncremental; -import metamodels.Relational.RelationalPackage; -import metamodels.class_.Class_Package; public class App extends AbstractDriver { - @Override - public void setupResourceSet() { - Class_Package.eINSTANCE.eClass(); - ChangesPackage.eINSTANCE.eClass(); - RelationalPackage.eINSTANCE.eClass(); - // register XMI - Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("xmi", new XMIResourceFactoryImpl()); - // register ecore - Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("ecore", new EcoreResourceFactoryImpl()); - // register uml - Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("uml", new XMIResourceFactoryImpl()); - } - - public App() { - setupResourceSet(); - } - // static run public static void main(String[] args) { App solution = new App(); diff --git a/solutions/java/app/src/main/java/metamodels/Changes/AssociationChange.java b/solutions/java/app/src/main/java/metamodels/Changes/AssociationChange.java deleted file mode 100644 index ded83a9..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/AssociationChange.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - */ -package metamodels.Changes; - - -/** - * - * A representation of the model object 'Association Change'. - * - * - * - * @see metamodels.Changes.ChangesPackage#getAssociationChange() - * @model - * @generated - */ -public interface AssociationChange extends ElementaryChange { -} // AssociationChange diff --git a/solutions/java/app/src/main/java/metamodels/Changes/AssociationCollectionDeletion.java b/solutions/java/app/src/main/java/metamodels/Changes/AssociationCollectionDeletion.java deleted file mode 100644 index 697e1d1..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/AssociationCollectionDeletion.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Association Collection Deletion'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.AssociationCollectionDeletion#getDeletedElement Deleted Element}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getAssociationCollectionDeletion() - * @model - * @generated - */ -public interface AssociationCollectionDeletion extends AssociationChange { - /** - * Returns the value of the 'Deleted Element' reference. - * - * - * @return the value of the 'Deleted Element' reference. - * @see #setDeletedElement(EObject) - * @see metamodels.Changes.ChangesPackage#getAssociationCollectionDeletion_DeletedElement() - * @model required="true" - * @generated - */ - EObject getDeletedElement(); - - /** - * Sets the value of the '{@link metamodels.Changes.AssociationCollectionDeletion#getDeletedElement Deleted Element}' reference. - * - * - * @param value the new value of the 'Deleted Element' reference. - * @see #getDeletedElement() - * @generated - */ - void setDeletedElement(EObject value); - -} // AssociationCollectionDeletion diff --git a/solutions/java/app/src/main/java/metamodels/Changes/AssociationCollectionInsertion.java b/solutions/java/app/src/main/java/metamodels/Changes/AssociationCollectionInsertion.java deleted file mode 100644 index 57f0f34..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/AssociationCollectionInsertion.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Association Collection Insertion'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.AssociationCollectionInsertion#getAddedElement Added Element}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getAssociationCollectionInsertion() - * @model - * @generated - */ -public interface AssociationCollectionInsertion extends AssociationChange { - /** - * Returns the value of the 'Added Element' reference. - * - * - * @return the value of the 'Added Element' reference. - * @see #setAddedElement(EObject) - * @see metamodels.Changes.ChangesPackage#getAssociationCollectionInsertion_AddedElement() - * @model required="true" - * @generated - */ - EObject getAddedElement(); - - /** - * Sets the value of the '{@link metamodels.Changes.AssociationCollectionInsertion#getAddedElement Added Element}' reference. - * - * - * @param value the new value of the 'Added Element' reference. - * @see #getAddedElement() - * @generated - */ - void setAddedElement(EObject value); - -} // AssociationCollectionInsertion diff --git a/solutions/java/app/src/main/java/metamodels/Changes/AssociationCollectionReset.java b/solutions/java/app/src/main/java/metamodels/Changes/AssociationCollectionReset.java deleted file mode 100644 index 1439e4f..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/AssociationCollectionReset.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - */ -package metamodels.Changes; - - -/** - * - * A representation of the model object 'Association Collection Reset'. - * - * - * - * @see metamodels.Changes.ChangesPackage#getAssociationCollectionReset() - * @model - * @generated - */ -public interface AssociationCollectionReset extends AssociationChange { -} // AssociationCollectionReset diff --git a/solutions/java/app/src/main/java/metamodels/Changes/AssociationListDeletion.java b/solutions/java/app/src/main/java/metamodels/Changes/AssociationListDeletion.java deleted file mode 100644 index 6b72e1e..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/AssociationListDeletion.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Association List Deletion'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.AssociationListDeletion#getDeletedElement Deleted Element}
  • - *
  • {@link metamodels.Changes.AssociationListDeletion#getIndex Index}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getAssociationListDeletion() - * @model - * @generated - */ -public interface AssociationListDeletion extends AssociationChange { - /** - * Returns the value of the 'Deleted Element' reference. - * - * - * @return the value of the 'Deleted Element' reference. - * @see #setDeletedElement(EObject) - * @see metamodels.Changes.ChangesPackage#getAssociationListDeletion_DeletedElement() - * @model - * @generated - */ - EObject getDeletedElement(); - - /** - * Sets the value of the '{@link metamodels.Changes.AssociationListDeletion#getDeletedElement Deleted Element}' reference. - * - * - * @param value the new value of the 'Deleted Element' reference. - * @see #getDeletedElement() - * @generated - */ - void setDeletedElement(EObject value); - - /** - * Returns the value of the 'Index' attribute. - * - * - * @return the value of the 'Index' attribute. - * @see #setIndex(int) - * @see metamodels.Changes.ChangesPackage#getAssociationListDeletion_Index() - * @model required="true" - * @generated - */ - int getIndex(); - - /** - * Sets the value of the '{@link metamodels.Changes.AssociationListDeletion#getIndex Index}' attribute. - * - * - * @param value the new value of the 'Index' attribute. - * @see #getIndex() - * @generated - */ - void setIndex(int value); - -} // AssociationListDeletion diff --git a/solutions/java/app/src/main/java/metamodels/Changes/AssociationListInsertion.java b/solutions/java/app/src/main/java/metamodels/Changes/AssociationListInsertion.java deleted file mode 100644 index 59ce839..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/AssociationListInsertion.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Association List Insertion'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.AssociationListInsertion#getAddedElement Added Element}
  • - *
  • {@link metamodels.Changes.AssociationListInsertion#getIndex Index}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getAssociationListInsertion() - * @model - * @generated - */ -public interface AssociationListInsertion extends AssociationChange { - /** - * Returns the value of the 'Added Element' reference. - * - * - * @return the value of the 'Added Element' reference. - * @see #setAddedElement(EObject) - * @see metamodels.Changes.ChangesPackage#getAssociationListInsertion_AddedElement() - * @model required="true" - * @generated - */ - EObject getAddedElement(); - - /** - * Sets the value of the '{@link metamodels.Changes.AssociationListInsertion#getAddedElement Added Element}' reference. - * - * - * @param value the new value of the 'Added Element' reference. - * @see #getAddedElement() - * @generated - */ - void setAddedElement(EObject value); - - /** - * Returns the value of the 'Index' attribute. - * - * - * @return the value of the 'Index' attribute. - * @see #setIndex(int) - * @see metamodels.Changes.ChangesPackage#getAssociationListInsertion_Index() - * @model required="true" - * @generated - */ - int getIndex(); - - /** - * Sets the value of the '{@link metamodels.Changes.AssociationListInsertion#getIndex Index}' attribute. - * - * - * @param value the new value of the 'Index' attribute. - * @see #getIndex() - * @generated - */ - void setIndex(int value); - -} // AssociationListInsertion diff --git a/solutions/java/app/src/main/java/metamodels/Changes/AssociationPropertyChange.java b/solutions/java/app/src/main/java/metamodels/Changes/AssociationPropertyChange.java deleted file mode 100644 index c358581..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/AssociationPropertyChange.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Association Property Change'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.AssociationPropertyChange#getNewValue New Value}
  • - *
  • {@link metamodels.Changes.AssociationPropertyChange#getOldValue Old Value}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getAssociationPropertyChange() - * @model - * @generated - */ -public interface AssociationPropertyChange extends AssociationChange { - /** - * Returns the value of the 'New Value' reference. - * - * - * @return the value of the 'New Value' reference. - * @see #setNewValue(EObject) - * @see metamodels.Changes.ChangesPackage#getAssociationPropertyChange_NewValue() - * @model - * @generated - */ - EObject getNewValue(); - - /** - * Sets the value of the '{@link metamodels.Changes.AssociationPropertyChange#getNewValue New Value}' reference. - * - * - * @param value the new value of the 'New Value' reference. - * @see #getNewValue() - * @generated - */ - void setNewValue(EObject value); - - /** - * Returns the value of the 'Old Value' reference. - * - * - * @return the value of the 'Old Value' reference. - * @see #setOldValue(EObject) - * @see metamodels.Changes.ChangesPackage#getAssociationPropertyChange_OldValue() - * @model - * @generated - */ - EObject getOldValue(); - - /** - * Sets the value of the '{@link metamodels.Changes.AssociationPropertyChange#getOldValue Old Value}' reference. - * - * - * @param value the new value of the 'Old Value' reference. - * @see #getOldValue() - * @generated - */ - void setOldValue(EObject value); - -} // AssociationPropertyChange diff --git a/solutions/java/app/src/main/java/metamodels/Changes/AttributeChange.java b/solutions/java/app/src/main/java/metamodels/Changes/AttributeChange.java deleted file mode 100644 index 87e421c..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/AttributeChange.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - */ -package metamodels.Changes; - - -/** - * - * A representation of the model object 'Attribute Change'. - * - * - * - * @see metamodels.Changes.ChangesPackage#getAttributeChange() - * @model - * @generated - */ -public interface AttributeChange extends ElementaryChange { -} // AttributeChange diff --git a/solutions/java/app/src/main/java/metamodels/Changes/AttributeCollectionDeletion.java b/solutions/java/app/src/main/java/metamodels/Changes/AttributeCollectionDeletion.java deleted file mode 100644 index 47e6bbf..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/AttributeCollectionDeletion.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - */ -package metamodels.Changes; - - -/** - * - * A representation of the model object 'Attribute Collection Deletion'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.AttributeCollectionDeletion#getDeletedValue Deleted Value}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getAttributeCollectionDeletion() - * @model - * @generated - */ -public interface AttributeCollectionDeletion extends AttributeChange { - /** - * Returns the value of the 'Deleted Value' attribute. - * - * - * @return the value of the 'Deleted Value' attribute. - * @see #setDeletedValue(String) - * @see metamodels.Changes.ChangesPackage#getAttributeCollectionDeletion_DeletedValue() - * @model required="true" - * @generated - */ - String getDeletedValue(); - - /** - * Sets the value of the '{@link metamodels.Changes.AttributeCollectionDeletion#getDeletedValue Deleted Value}' attribute. - * - * - * @param value the new value of the 'Deleted Value' attribute. - * @see #getDeletedValue() - * @generated - */ - void setDeletedValue(String value); - -} // AttributeCollectionDeletion diff --git a/solutions/java/app/src/main/java/metamodels/Changes/AttributeCollectionInsertion.java b/solutions/java/app/src/main/java/metamodels/Changes/AttributeCollectionInsertion.java deleted file mode 100644 index cabec42..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/AttributeCollectionInsertion.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - */ -package metamodels.Changes; - - -/** - * - * A representation of the model object 'Attribute Collection Insertion'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.AttributeCollectionInsertion#getAddedValue Added Value}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getAttributeCollectionInsertion() - * @model - * @generated - */ -public interface AttributeCollectionInsertion extends AttributeChange { - /** - * Returns the value of the 'Added Value' attribute. - * - * - * @return the value of the 'Added Value' attribute. - * @see #setAddedValue(String) - * @see metamodels.Changes.ChangesPackage#getAttributeCollectionInsertion_AddedValue() - * @model required="true" - * @generated - */ - String getAddedValue(); - - /** - * Sets the value of the '{@link metamodels.Changes.AttributeCollectionInsertion#getAddedValue Added Value}' attribute. - * - * - * @param value the new value of the 'Added Value' attribute. - * @see #getAddedValue() - * @generated - */ - void setAddedValue(String value); - -} // AttributeCollectionInsertion diff --git a/solutions/java/app/src/main/java/metamodels/Changes/AttributeCollectionReset.java b/solutions/java/app/src/main/java/metamodels/Changes/AttributeCollectionReset.java deleted file mode 100644 index d7d3ff5..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/AttributeCollectionReset.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - */ -package metamodels.Changes; - - -/** - * - * A representation of the model object 'Attribute Collection Reset'. - * - * - * - * @see metamodels.Changes.ChangesPackage#getAttributeCollectionReset() - * @model - * @generated - */ -public interface AttributeCollectionReset extends AttributeChange { -} // AttributeCollectionReset diff --git a/solutions/java/app/src/main/java/metamodels/Changes/AttributeListDeletion.java b/solutions/java/app/src/main/java/metamodels/Changes/AttributeListDeletion.java deleted file mode 100644 index 3614bb1..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/AttributeListDeletion.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - */ -package metamodels.Changes; - - -/** - * - * A representation of the model object 'Attribute List Deletion'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.AttributeListDeletion#getDeletedValue Deleted Value}
  • - *
  • {@link metamodels.Changes.AttributeListDeletion#getIndex Index}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getAttributeListDeletion() - * @model - * @generated - */ -public interface AttributeListDeletion extends AttributeChange { - /** - * Returns the value of the 'Deleted Value' attribute. - * - * - * @return the value of the 'Deleted Value' attribute. - * @see #setDeletedValue(String) - * @see metamodels.Changes.ChangesPackage#getAttributeListDeletion_DeletedValue() - * @model - * @generated - */ - String getDeletedValue(); - - /** - * Sets the value of the '{@link metamodels.Changes.AttributeListDeletion#getDeletedValue Deleted Value}' attribute. - * - * - * @param value the new value of the 'Deleted Value' attribute. - * @see #getDeletedValue() - * @generated - */ - void setDeletedValue(String value); - - /** - * Returns the value of the 'Index' attribute. - * - * - * @return the value of the 'Index' attribute. - * @see #setIndex(int) - * @see metamodels.Changes.ChangesPackage#getAttributeListDeletion_Index() - * @model required="true" - * @generated - */ - int getIndex(); - - /** - * Sets the value of the '{@link metamodels.Changes.AttributeListDeletion#getIndex Index}' attribute. - * - * - * @param value the new value of the 'Index' attribute. - * @see #getIndex() - * @generated - */ - void setIndex(int value); - -} // AttributeListDeletion diff --git a/solutions/java/app/src/main/java/metamodels/Changes/AttributeListInsertion.java b/solutions/java/app/src/main/java/metamodels/Changes/AttributeListInsertion.java deleted file mode 100644 index 8f4e28a..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/AttributeListInsertion.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - */ -package metamodels.Changes; - - -/** - * - * A representation of the model object 'Attribute List Insertion'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.AttributeListInsertion#getAddedValue Added Value}
  • - *
  • {@link metamodels.Changes.AttributeListInsertion#getIndex Index}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getAttributeListInsertion() - * @model - * @generated - */ -public interface AttributeListInsertion extends AttributeChange { - /** - * Returns the value of the 'Added Value' attribute. - * - * - * @return the value of the 'Added Value' attribute. - * @see #setAddedValue(String) - * @see metamodels.Changes.ChangesPackage#getAttributeListInsertion_AddedValue() - * @model required="true" - * @generated - */ - String getAddedValue(); - - /** - * Sets the value of the '{@link metamodels.Changes.AttributeListInsertion#getAddedValue Added Value}' attribute. - * - * - * @param value the new value of the 'Added Value' attribute. - * @see #getAddedValue() - * @generated - */ - void setAddedValue(String value); - - /** - * Returns the value of the 'Index' attribute. - * - * - * @return the value of the 'Index' attribute. - * @see #setIndex(int) - * @see metamodels.Changes.ChangesPackage#getAttributeListInsertion_Index() - * @model required="true" - * @generated - */ - int getIndex(); - - /** - * Sets the value of the '{@link metamodels.Changes.AttributeListInsertion#getIndex Index}' attribute. - * - * - * @param value the new value of the 'Index' attribute. - * @see #getIndex() - * @generated - */ - void setIndex(int value); - -} // AttributeListInsertion diff --git a/solutions/java/app/src/main/java/metamodels/Changes/AttributePropertyChange.java b/solutions/java/app/src/main/java/metamodels/Changes/AttributePropertyChange.java deleted file mode 100644 index 3aebdea..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/AttributePropertyChange.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - */ -package metamodels.Changes; - - -/** - * - * A representation of the model object 'Attribute Property Change'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.AttributePropertyChange#getNewValue New Value}
  • - *
  • {@link metamodels.Changes.AttributePropertyChange#getOldValue Old Value}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getAttributePropertyChange() - * @model - * @generated - */ -public interface AttributePropertyChange extends AttributeChange { - /** - * Returns the value of the 'New Value' attribute. - * - * - * @return the value of the 'New Value' attribute. - * @see #setNewValue(String) - * @see metamodels.Changes.ChangesPackage#getAttributePropertyChange_NewValue() - * @model - * @generated - */ - String getNewValue(); - - /** - * Sets the value of the '{@link metamodels.Changes.AttributePropertyChange#getNewValue New Value}' attribute. - * - * - * @param value the new value of the 'New Value' attribute. - * @see #getNewValue() - * @generated - */ - void setNewValue(String value); - - /** - * Returns the value of the 'Old Value' attribute. - * - * - * @return the value of the 'Old Value' attribute. - * @see #setOldValue(String) - * @see metamodels.Changes.ChangesPackage#getAttributePropertyChange_OldValue() - * @model - * @generated - */ - String getOldValue(); - - /** - * Sets the value of the '{@link metamodels.Changes.AttributePropertyChange#getOldValue Old Value}' attribute. - * - * - * @param value the new value of the 'Old Value' attribute. - * @see #getOldValue() - * @generated - */ - void setOldValue(String value); - -} // AttributePropertyChange diff --git a/solutions/java/app/src/main/java/metamodels/Changes/ChangeTransaction.java b/solutions/java/app/src/main/java/metamodels/Changes/ChangeTransaction.java deleted file mode 100644 index d38e9db..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/ChangeTransaction.java +++ /dev/null @@ -1,59 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'Change Transaction'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.ChangeTransaction#getSourceChange Source Change}
  • - *
  • {@link metamodels.Changes.ChangeTransaction#getNestedChanges Nested Changes}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getChangeTransaction() - * @model - * @generated - */ -public interface ChangeTransaction extends ModelChange { - /** - * Returns the value of the 'Source Change' containment reference. - * - * - * @return the value of the 'Source Change' containment reference. - * @see #setSourceChange(ModelChange) - * @see metamodels.Changes.ChangesPackage#getChangeTransaction_SourceChange() - * @model containment="true" required="true" - * @generated - */ - ModelChange getSourceChange(); - - /** - * Sets the value of the '{@link metamodels.Changes.ChangeTransaction#getSourceChange Source Change}' containment reference. - * - * - * @param value the new value of the 'Source Change' containment reference. - * @see #getSourceChange() - * @generated - */ - void setSourceChange(ModelChange value); - - /** - * Returns the value of the 'Nested Changes' containment reference list. - * The list contents are of type {@link metamodels.Changes.ModelChange}. - * - * - * @return the value of the 'Nested Changes' containment reference list. - * @see metamodels.Changes.ChangesPackage#getChangeTransaction_NestedChanges() - * @model containment="true" - * @generated - */ - EList getNestedChanges(); - -} // ChangeTransaction diff --git a/solutions/java/app/src/main/java/metamodels/Changes/ChangesFactory.java b/solutions/java/app/src/main/java/metamodels/Changes/ChangesFactory.java deleted file mode 100644 index 2330546..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/ChangesFactory.java +++ /dev/null @@ -1,294 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see metamodels.Changes.ChangesPackage - * @generated - */ -public interface ChangesFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - ChangesFactory eINSTANCE = metamodels.Changes.impl.ChangesFactoryImpl.init(); - - /** - * Returns a new object of class 'Model Change Set'. - * - * - * @return a new object of class 'Model Change Set'. - * @generated - */ - ModelChangeSet createModelChangeSet(); - - /** - * Returns a new object of class 'Change Transaction'. - * - * - * @return a new object of class 'Change Transaction'. - * @generated - */ - ChangeTransaction createChangeTransaction(); - - /** - * Returns a new object of class 'Composition Change'. - * - * - * @return a new object of class 'Composition Change'. - * @generated - */ - CompositionChange createCompositionChange(); - - /** - * Returns a new object of class 'Association Change'. - * - * - * @return a new object of class 'Association Change'. - * @generated - */ - AssociationChange createAssociationChange(); - - /** - * Returns a new object of class 'Attribute Change'. - * - * - * @return a new object of class 'Attribute Change'. - * @generated - */ - AttributeChange createAttributeChange(); - - /** - * Returns a new object of class 'Association Collection Deletion'. - * - * - * @return a new object of class 'Association Collection Deletion'. - * @generated - */ - AssociationCollectionDeletion createAssociationCollectionDeletion(); - - /** - * Returns a new object of class 'Composition Collection Deletion'. - * - * - * @return a new object of class 'Composition Collection Deletion'. - * @generated - */ - CompositionCollectionDeletion createCompositionCollectionDeletion(); - - /** - * Returns a new object of class 'Attribute Collection Deletion'. - * - * - * @return a new object of class 'Attribute Collection Deletion'. - * @generated - */ - AttributeCollectionDeletion createAttributeCollectionDeletion(); - - /** - * Returns a new object of class 'Association Collection Insertion'. - * - * - * @return a new object of class 'Association Collection Insertion'. - * @generated - */ - AssociationCollectionInsertion createAssociationCollectionInsertion(); - - /** - * Returns a new object of class 'Composition Collection Insertion'. - * - * - * @return a new object of class 'Composition Collection Insertion'. - * @generated - */ - CompositionCollectionInsertion createCompositionCollectionInsertion(); - - /** - * Returns a new object of class 'Attribute Collection Insertion'. - * - * - * @return a new object of class 'Attribute Collection Insertion'. - * @generated - */ - AttributeCollectionInsertion createAttributeCollectionInsertion(); - - /** - * Returns a new object of class 'Association Collection Reset'. - * - * - * @return a new object of class 'Association Collection Reset'. - * @generated - */ - AssociationCollectionReset createAssociationCollectionReset(); - - /** - * Returns a new object of class 'Composition Collection Reset'. - * - * - * @return a new object of class 'Composition Collection Reset'. - * @generated - */ - CompositionCollectionReset createCompositionCollectionReset(); - - /** - * Returns a new object of class 'Attribute Collection Reset'. - * - * - * @return a new object of class 'Attribute Collection Reset'. - * @generated - */ - AttributeCollectionReset createAttributeCollectionReset(); - - /** - * Returns a new object of class 'Association List Deletion'. - * - * - * @return a new object of class 'Association List Deletion'. - * @generated - */ - AssociationListDeletion createAssociationListDeletion(); - - /** - * Returns a new object of class 'Composition List Deletion'. - * - * - * @return a new object of class 'Composition List Deletion'. - * @generated - */ - CompositionListDeletion createCompositionListDeletion(); - - /** - * Returns a new object of class 'Attribute List Deletion'. - * - * - * @return a new object of class 'Attribute List Deletion'. - * @generated - */ - AttributeListDeletion createAttributeListDeletion(); - - /** - * Returns a new object of class 'Association List Insertion'. - * - * - * @return a new object of class 'Association List Insertion'. - * @generated - */ - AssociationListInsertion createAssociationListInsertion(); - - /** - * Returns a new object of class 'Composition List Insertion'. - * - * - * @return a new object of class 'Composition List Insertion'. - * @generated - */ - CompositionListInsertion createCompositionListInsertion(); - - /** - * Returns a new object of class 'Attribute List Insertion'. - * - * - * @return a new object of class 'Attribute List Insertion'. - * @generated - */ - AttributeListInsertion createAttributeListInsertion(); - - /** - * Returns a new object of class 'Attribute Property Change'. - * - * - * @return a new object of class 'Attribute Property Change'. - * @generated - */ - AttributePropertyChange createAttributePropertyChange(); - - /** - * Returns a new object of class 'Association Property Change'. - * - * - * @return a new object of class 'Association Property Change'. - * @generated - */ - AssociationPropertyChange createAssociationPropertyChange(); - - /** - * Returns a new object of class 'Composition Property Change'. - * - * - * @return a new object of class 'Composition Property Change'. - * @generated - */ - CompositionPropertyChange createCompositionPropertyChange(); - - /** - * Returns a new object of class 'Composition Move Into Property'. - * - * - * @return a new object of class 'Composition Move Into Property'. - * @generated - */ - CompositionMoveIntoProperty createCompositionMoveIntoProperty(); - - /** - * Returns a new object of class 'Composition Move To List'. - * - * - * @return a new object of class 'Composition Move To List'. - * @generated - */ - CompositionMoveToList createCompositionMoveToList(); - - /** - * Returns a new object of class 'Composition Move To Collection'. - * - * - * @return a new object of class 'Composition Move To Collection'. - * @generated - */ - CompositionMoveToCollection createCompositionMoveToCollection(); - - /** - * Returns a new object of class 'Operation Call'. - * - * - * @return a new object of class 'Operation Call'. - * @generated - */ - OperationCall createOperationCall(); - - /** - * Returns a new object of class 'Value Argument'. - * - * - * @return a new object of class 'Value Argument'. - * @generated - */ - ValueArgument createValueArgument(); - - /** - * Returns a new object of class 'Reference Argument'. - * - * - * @return a new object of class 'Reference Argument'. - * @generated - */ - ReferenceArgument createReferenceArgument(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - ChangesPackage getChangesPackage(); - -} //ChangesFactory diff --git a/solutions/java/app/src/main/java/metamodels/Changes/ChangesPackage.java b/solutions/java/app/src/main/java/metamodels/Changes/ChangesPackage.java deleted file mode 100644 index deae792..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/ChangesPackage.java +++ /dev/null @@ -1,3257 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see metamodels.Changes.ChangesFactory - * @model kind="package" - * @generated - */ -public interface ChangesPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "Changes"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://nmf.codeplex.com/changes"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "changes"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - ChangesPackage eINSTANCE = metamodels.Changes.impl.ChangesPackageImpl.init(); - - /** - * The meta object id for the '{@link metamodels.Changes.impl.ModelChangeSetImpl Model Change Set}' class. - * - * - * @see metamodels.Changes.impl.ModelChangeSetImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getModelChangeSet() - * @generated - */ - int MODEL_CHANGE_SET = 0; - - /** - * The feature id for the 'Changes' containment reference list. - * - * - * @generated - * @ordered - */ - int MODEL_CHANGE_SET__CHANGES = 0; - - /** - * The number of structural features of the 'Model Change Set' class. - * - * - * @generated - * @ordered - */ - int MODEL_CHANGE_SET_FEATURE_COUNT = 1; - - /** - * The number of operations of the 'Model Change Set' class. - * - * - * @generated - * @ordered - */ - int MODEL_CHANGE_SET_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.ModelChangeImpl Model Change}' class. - * - * - * @see metamodels.Changes.impl.ModelChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getModelChange() - * @generated - */ - int MODEL_CHANGE = 1; - - /** - * The number of structural features of the 'Model Change' class. - * - * - * @generated - * @ordered - */ - int MODEL_CHANGE_FEATURE_COUNT = 0; - - /** - * The number of operations of the 'Model Change' class. - * - * - * @generated - * @ordered - */ - int MODEL_CHANGE_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.ElementaryChangeImpl Elementary Change}' class. - * - * - * @see metamodels.Changes.impl.ElementaryChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getElementaryChange() - * @generated - */ - int ELEMENTARY_CHANGE = 2; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ELEMENTARY_CHANGE__AFFECTED_ELEMENT = MODEL_CHANGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ELEMENTARY_CHANGE__FEATURE = MODEL_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Elementary Change' class. - * - * - * @generated - * @ordered - */ - int ELEMENTARY_CHANGE_FEATURE_COUNT = MODEL_CHANGE_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Elementary Change' class. - * - * - * @generated - * @ordered - */ - int ELEMENTARY_CHANGE_OPERATION_COUNT = MODEL_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.ChangeTransactionImpl Change Transaction}' class. - * - * - * @see metamodels.Changes.impl.ChangeTransactionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getChangeTransaction() - * @generated - */ - int CHANGE_TRANSACTION = 3; - - /** - * The feature id for the 'Source Change' containment reference. - * - * - * @generated - * @ordered - */ - int CHANGE_TRANSACTION__SOURCE_CHANGE = MODEL_CHANGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Nested Changes' containment reference list. - * - * - * @generated - * @ordered - */ - int CHANGE_TRANSACTION__NESTED_CHANGES = MODEL_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Change Transaction' class. - * - * - * @generated - * @ordered - */ - int CHANGE_TRANSACTION_FEATURE_COUNT = MODEL_CHANGE_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Change Transaction' class. - * - * - * @generated - * @ordered - */ - int CHANGE_TRANSACTION_OPERATION_COUNT = MODEL_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.CompositionChangeImpl Composition Change}' class. - * - * - * @see metamodels.Changes.impl.CompositionChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionChange() - * @generated - */ - int COMPOSITION_CHANGE = 4; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_CHANGE__AFFECTED_ELEMENT = ELEMENTARY_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_CHANGE__FEATURE = ELEMENTARY_CHANGE__FEATURE; - - /** - * The number of structural features of the 'Composition Change' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_CHANGE_FEATURE_COUNT = ELEMENTARY_CHANGE_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Composition Change' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_CHANGE_OPERATION_COUNT = ELEMENTARY_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.AssociationChangeImpl Association Change}' class. - * - * - * @see metamodels.Changes.impl.AssociationChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAssociationChange() - * @generated - */ - int ASSOCIATION_CHANGE = 5; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_CHANGE__AFFECTED_ELEMENT = ELEMENTARY_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_CHANGE__FEATURE = ELEMENTARY_CHANGE__FEATURE; - - /** - * The number of structural features of the 'Association Change' class. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_CHANGE_FEATURE_COUNT = ELEMENTARY_CHANGE_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Association Change' class. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_CHANGE_OPERATION_COUNT = ELEMENTARY_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.AttributeChangeImpl Attribute Change}' class. - * - * - * @see metamodels.Changes.impl.AttributeChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAttributeChange() - * @generated - */ - int ATTRIBUTE_CHANGE = 6; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_CHANGE__AFFECTED_ELEMENT = ELEMENTARY_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_CHANGE__FEATURE = ELEMENTARY_CHANGE__FEATURE; - - /** - * The number of structural features of the 'Attribute Change' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_CHANGE_FEATURE_COUNT = ELEMENTARY_CHANGE_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Attribute Change' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_CHANGE_OPERATION_COUNT = ELEMENTARY_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.AssociationCollectionDeletionImpl Association Collection Deletion}' class. - * - * - * @see metamodels.Changes.impl.AssociationCollectionDeletionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAssociationCollectionDeletion() - * @generated - */ - int ASSOCIATION_COLLECTION_DELETION = 7; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_COLLECTION_DELETION__AFFECTED_ELEMENT = ASSOCIATION_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_COLLECTION_DELETION__FEATURE = ASSOCIATION_CHANGE__FEATURE; - - /** - * The feature id for the 'Deleted Element' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_COLLECTION_DELETION__DELETED_ELEMENT = ASSOCIATION_CHANGE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Association Collection Deletion' class. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_COLLECTION_DELETION_FEATURE_COUNT = ASSOCIATION_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Association Collection Deletion' class. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_COLLECTION_DELETION_OPERATION_COUNT = ASSOCIATION_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.CompositionCollectionDeletionImpl Composition Collection Deletion}' class. - * - * - * @see metamodels.Changes.impl.CompositionCollectionDeletionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionCollectionDeletion() - * @generated - */ - int COMPOSITION_COLLECTION_DELETION = 8; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_COLLECTION_DELETION__AFFECTED_ELEMENT = COMPOSITION_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_COLLECTION_DELETION__FEATURE = COMPOSITION_CHANGE__FEATURE; - - /** - * The feature id for the 'Deleted Element' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_COLLECTION_DELETION__DELETED_ELEMENT = COMPOSITION_CHANGE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Composition Collection Deletion' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_COLLECTION_DELETION_FEATURE_COUNT = COMPOSITION_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Composition Collection Deletion' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_COLLECTION_DELETION_OPERATION_COUNT = COMPOSITION_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.AttributeCollectionDeletionImpl Attribute Collection Deletion}' class. - * - * - * @see metamodels.Changes.impl.AttributeCollectionDeletionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAttributeCollectionDeletion() - * @generated - */ - int ATTRIBUTE_COLLECTION_DELETION = 9; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_COLLECTION_DELETION__AFFECTED_ELEMENT = ATTRIBUTE_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_COLLECTION_DELETION__FEATURE = ATTRIBUTE_CHANGE__FEATURE; - - /** - * The feature id for the 'Deleted Value' attribute. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_COLLECTION_DELETION__DELETED_VALUE = ATTRIBUTE_CHANGE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Attribute Collection Deletion' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_COLLECTION_DELETION_FEATURE_COUNT = ATTRIBUTE_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Attribute Collection Deletion' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_COLLECTION_DELETION_OPERATION_COUNT = ATTRIBUTE_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.AssociationCollectionInsertionImpl Association Collection Insertion}' class. - * - * - * @see metamodels.Changes.impl.AssociationCollectionInsertionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAssociationCollectionInsertion() - * @generated - */ - int ASSOCIATION_COLLECTION_INSERTION = 10; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_COLLECTION_INSERTION__AFFECTED_ELEMENT = ASSOCIATION_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_COLLECTION_INSERTION__FEATURE = ASSOCIATION_CHANGE__FEATURE; - - /** - * The feature id for the 'Added Element' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_COLLECTION_INSERTION__ADDED_ELEMENT = ASSOCIATION_CHANGE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Association Collection Insertion' class. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_COLLECTION_INSERTION_FEATURE_COUNT = ASSOCIATION_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Association Collection Insertion' class. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_COLLECTION_INSERTION_OPERATION_COUNT = ASSOCIATION_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.CompositionCollectionInsertionImpl Composition Collection Insertion}' class. - * - * - * @see metamodels.Changes.impl.CompositionCollectionInsertionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionCollectionInsertion() - * @generated - */ - int COMPOSITION_COLLECTION_INSERTION = 11; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_COLLECTION_INSERTION__AFFECTED_ELEMENT = COMPOSITION_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_COLLECTION_INSERTION__FEATURE = COMPOSITION_CHANGE__FEATURE; - - /** - * The feature id for the 'Added Element' containment reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_COLLECTION_INSERTION__ADDED_ELEMENT = COMPOSITION_CHANGE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Composition Collection Insertion' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_COLLECTION_INSERTION_FEATURE_COUNT = COMPOSITION_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Composition Collection Insertion' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_COLLECTION_INSERTION_OPERATION_COUNT = COMPOSITION_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.AttributeCollectionInsertionImpl Attribute Collection Insertion}' class. - * - * - * @see metamodels.Changes.impl.AttributeCollectionInsertionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAttributeCollectionInsertion() - * @generated - */ - int ATTRIBUTE_COLLECTION_INSERTION = 12; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_COLLECTION_INSERTION__AFFECTED_ELEMENT = ATTRIBUTE_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_COLLECTION_INSERTION__FEATURE = ATTRIBUTE_CHANGE__FEATURE; - - /** - * The feature id for the 'Added Value' attribute. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_COLLECTION_INSERTION__ADDED_VALUE = ATTRIBUTE_CHANGE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Attribute Collection Insertion' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_COLLECTION_INSERTION_FEATURE_COUNT = ATTRIBUTE_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Attribute Collection Insertion' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_COLLECTION_INSERTION_OPERATION_COUNT = ATTRIBUTE_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.AssociationCollectionResetImpl Association Collection Reset}' class. - * - * - * @see metamodels.Changes.impl.AssociationCollectionResetImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAssociationCollectionReset() - * @generated - */ - int ASSOCIATION_COLLECTION_RESET = 13; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_COLLECTION_RESET__AFFECTED_ELEMENT = ASSOCIATION_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_COLLECTION_RESET__FEATURE = ASSOCIATION_CHANGE__FEATURE; - - /** - * The number of structural features of the 'Association Collection Reset' class. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_COLLECTION_RESET_FEATURE_COUNT = ASSOCIATION_CHANGE_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Association Collection Reset' class. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_COLLECTION_RESET_OPERATION_COUNT = ASSOCIATION_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.CompositionCollectionResetImpl Composition Collection Reset}' class. - * - * - * @see metamodels.Changes.impl.CompositionCollectionResetImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionCollectionReset() - * @generated - */ - int COMPOSITION_COLLECTION_RESET = 14; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_COLLECTION_RESET__AFFECTED_ELEMENT = COMPOSITION_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_COLLECTION_RESET__FEATURE = COMPOSITION_CHANGE__FEATURE; - - /** - * The number of structural features of the 'Composition Collection Reset' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_COLLECTION_RESET_FEATURE_COUNT = COMPOSITION_CHANGE_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Composition Collection Reset' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_COLLECTION_RESET_OPERATION_COUNT = COMPOSITION_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.AttributeCollectionResetImpl Attribute Collection Reset}' class. - * - * - * @see metamodels.Changes.impl.AttributeCollectionResetImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAttributeCollectionReset() - * @generated - */ - int ATTRIBUTE_COLLECTION_RESET = 15; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_COLLECTION_RESET__AFFECTED_ELEMENT = ATTRIBUTE_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_COLLECTION_RESET__FEATURE = ATTRIBUTE_CHANGE__FEATURE; - - /** - * The number of structural features of the 'Attribute Collection Reset' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_COLLECTION_RESET_FEATURE_COUNT = ATTRIBUTE_CHANGE_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Attribute Collection Reset' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_COLLECTION_RESET_OPERATION_COUNT = ATTRIBUTE_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.AssociationListDeletionImpl Association List Deletion}' class. - * - * - * @see metamodels.Changes.impl.AssociationListDeletionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAssociationListDeletion() - * @generated - */ - int ASSOCIATION_LIST_DELETION = 16; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_LIST_DELETION__AFFECTED_ELEMENT = ASSOCIATION_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_LIST_DELETION__FEATURE = ASSOCIATION_CHANGE__FEATURE; - - /** - * The feature id for the 'Deleted Element' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_LIST_DELETION__DELETED_ELEMENT = ASSOCIATION_CHANGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Index' attribute. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_LIST_DELETION__INDEX = ASSOCIATION_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Association List Deletion' class. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_LIST_DELETION_FEATURE_COUNT = ASSOCIATION_CHANGE_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Association List Deletion' class. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_LIST_DELETION_OPERATION_COUNT = ASSOCIATION_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.CompositionListDeletionImpl Composition List Deletion}' class. - * - * - * @see metamodels.Changes.impl.CompositionListDeletionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionListDeletion() - * @generated - */ - int COMPOSITION_LIST_DELETION = 17; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_LIST_DELETION__AFFECTED_ELEMENT = COMPOSITION_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_LIST_DELETION__FEATURE = COMPOSITION_CHANGE__FEATURE; - - /** - * The feature id for the 'Deleted Element' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_LIST_DELETION__DELETED_ELEMENT = COMPOSITION_CHANGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Index' attribute. - * - * - * @generated - * @ordered - */ - int COMPOSITION_LIST_DELETION__INDEX = COMPOSITION_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Composition List Deletion' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_LIST_DELETION_FEATURE_COUNT = COMPOSITION_CHANGE_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Composition List Deletion' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_LIST_DELETION_OPERATION_COUNT = COMPOSITION_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.AttributeListDeletionImpl Attribute List Deletion}' class. - * - * - * @see metamodels.Changes.impl.AttributeListDeletionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAttributeListDeletion() - * @generated - */ - int ATTRIBUTE_LIST_DELETION = 18; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_LIST_DELETION__AFFECTED_ELEMENT = ATTRIBUTE_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_LIST_DELETION__FEATURE = ATTRIBUTE_CHANGE__FEATURE; - - /** - * The feature id for the 'Deleted Value' attribute. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_LIST_DELETION__DELETED_VALUE = ATTRIBUTE_CHANGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Index' attribute. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_LIST_DELETION__INDEX = ATTRIBUTE_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Attribute List Deletion' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_LIST_DELETION_FEATURE_COUNT = ATTRIBUTE_CHANGE_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Attribute List Deletion' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_LIST_DELETION_OPERATION_COUNT = ATTRIBUTE_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.AssociationListInsertionImpl Association List Insertion}' class. - * - * - * @see metamodels.Changes.impl.AssociationListInsertionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAssociationListInsertion() - * @generated - */ - int ASSOCIATION_LIST_INSERTION = 19; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_LIST_INSERTION__AFFECTED_ELEMENT = ASSOCIATION_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_LIST_INSERTION__FEATURE = ASSOCIATION_CHANGE__FEATURE; - - /** - * The feature id for the 'Added Element' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_LIST_INSERTION__ADDED_ELEMENT = ASSOCIATION_CHANGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Index' attribute. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_LIST_INSERTION__INDEX = ASSOCIATION_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Association List Insertion' class. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_LIST_INSERTION_FEATURE_COUNT = ASSOCIATION_CHANGE_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Association List Insertion' class. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_LIST_INSERTION_OPERATION_COUNT = ASSOCIATION_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.CompositionListInsertionImpl Composition List Insertion}' class. - * - * - * @see metamodels.Changes.impl.CompositionListInsertionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionListInsertion() - * @generated - */ - int COMPOSITION_LIST_INSERTION = 20; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_LIST_INSERTION__AFFECTED_ELEMENT = COMPOSITION_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_LIST_INSERTION__FEATURE = COMPOSITION_CHANGE__FEATURE; - - /** - * The feature id for the 'Added Element' containment reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_LIST_INSERTION__ADDED_ELEMENT = COMPOSITION_CHANGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Index' attribute. - * - * - * @generated - * @ordered - */ - int COMPOSITION_LIST_INSERTION__INDEX = COMPOSITION_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Composition List Insertion' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_LIST_INSERTION_FEATURE_COUNT = COMPOSITION_CHANGE_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Composition List Insertion' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_LIST_INSERTION_OPERATION_COUNT = COMPOSITION_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.AttributeListInsertionImpl Attribute List Insertion}' class. - * - * - * @see metamodels.Changes.impl.AttributeListInsertionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAttributeListInsertion() - * @generated - */ - int ATTRIBUTE_LIST_INSERTION = 21; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_LIST_INSERTION__AFFECTED_ELEMENT = ATTRIBUTE_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_LIST_INSERTION__FEATURE = ATTRIBUTE_CHANGE__FEATURE; - - /** - * The feature id for the 'Added Value' attribute. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_LIST_INSERTION__ADDED_VALUE = ATTRIBUTE_CHANGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Index' attribute. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_LIST_INSERTION__INDEX = ATTRIBUTE_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Attribute List Insertion' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_LIST_INSERTION_FEATURE_COUNT = ATTRIBUTE_CHANGE_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Attribute List Insertion' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_LIST_INSERTION_OPERATION_COUNT = ATTRIBUTE_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.AttributePropertyChangeImpl Attribute Property Change}' class. - * - * - * @see metamodels.Changes.impl.AttributePropertyChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAttributePropertyChange() - * @generated - */ - int ATTRIBUTE_PROPERTY_CHANGE = 22; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_PROPERTY_CHANGE__AFFECTED_ELEMENT = ATTRIBUTE_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_PROPERTY_CHANGE__FEATURE = ATTRIBUTE_CHANGE__FEATURE; - - /** - * The feature id for the 'New Value' attribute. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_PROPERTY_CHANGE__NEW_VALUE = ATTRIBUTE_CHANGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Old Value' attribute. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_PROPERTY_CHANGE__OLD_VALUE = ATTRIBUTE_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Attribute Property Change' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_PROPERTY_CHANGE_FEATURE_COUNT = ATTRIBUTE_CHANGE_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Attribute Property Change' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_PROPERTY_CHANGE_OPERATION_COUNT = ATTRIBUTE_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.AssociationPropertyChangeImpl Association Property Change}' class. - * - * - * @see metamodels.Changes.impl.AssociationPropertyChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAssociationPropertyChange() - * @generated - */ - int ASSOCIATION_PROPERTY_CHANGE = 23; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_PROPERTY_CHANGE__AFFECTED_ELEMENT = ASSOCIATION_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_PROPERTY_CHANGE__FEATURE = ASSOCIATION_CHANGE__FEATURE; - - /** - * The feature id for the 'New Value' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_PROPERTY_CHANGE__NEW_VALUE = ASSOCIATION_CHANGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Old Value' reference. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_PROPERTY_CHANGE__OLD_VALUE = ASSOCIATION_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Association Property Change' class. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_PROPERTY_CHANGE_FEATURE_COUNT = ASSOCIATION_CHANGE_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Association Property Change' class. - * - * - * @generated - * @ordered - */ - int ASSOCIATION_PROPERTY_CHANGE_OPERATION_COUNT = ASSOCIATION_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.CompositionPropertyChangeImpl Composition Property Change}' class. - * - * - * @see metamodels.Changes.impl.CompositionPropertyChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionPropertyChange() - * @generated - */ - int COMPOSITION_PROPERTY_CHANGE = 24; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_PROPERTY_CHANGE__AFFECTED_ELEMENT = COMPOSITION_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_PROPERTY_CHANGE__FEATURE = COMPOSITION_CHANGE__FEATURE; - - /** - * The feature id for the 'New Value' containment reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_PROPERTY_CHANGE__NEW_VALUE = COMPOSITION_CHANGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Old Value' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_PROPERTY_CHANGE__OLD_VALUE = COMPOSITION_CHANGE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Composition Property Change' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_PROPERTY_CHANGE_FEATURE_COUNT = COMPOSITION_CHANGE_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Composition Property Change' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_PROPERTY_CHANGE_OPERATION_COUNT = COMPOSITION_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.CompositionMoveIntoPropertyImpl Composition Move Into Property}' class. - * - * - * @see metamodels.Changes.impl.CompositionMoveIntoPropertyImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionMoveIntoProperty() - * @generated - */ - int COMPOSITION_MOVE_INTO_PROPERTY = 25; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_INTO_PROPERTY__AFFECTED_ELEMENT = COMPOSITION_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_INTO_PROPERTY__FEATURE = COMPOSITION_CHANGE__FEATURE; - - /** - * The feature id for the 'New Value' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_INTO_PROPERTY__NEW_VALUE = COMPOSITION_CHANGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Old Value' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_INTO_PROPERTY__OLD_VALUE = COMPOSITION_CHANGE_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Origin' containment reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_INTO_PROPERTY__ORIGIN = COMPOSITION_CHANGE_FEATURE_COUNT + 2; - - /** - * The number of structural features of the 'Composition Move Into Property' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_INTO_PROPERTY_FEATURE_COUNT = COMPOSITION_CHANGE_FEATURE_COUNT + 3; - - /** - * The number of operations of the 'Composition Move Into Property' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_INTO_PROPERTY_OPERATION_COUNT = COMPOSITION_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.CompositionMoveToListImpl Composition Move To List}' class. - * - * - * @see metamodels.Changes.impl.CompositionMoveToListImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionMoveToList() - * @generated - */ - int COMPOSITION_MOVE_TO_LIST = 26; - - /** - * The feature id for the 'Affected Element' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_TO_LIST__AFFECTED_ELEMENT = COMPOSITION_CHANGE__AFFECTED_ELEMENT; - - /** - * The feature id for the 'Feature' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_TO_LIST__FEATURE = COMPOSITION_CHANGE__FEATURE; - - /** - * The feature id for the 'Index' attribute. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_TO_LIST__INDEX = COMPOSITION_CHANGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Moved Element' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_TO_LIST__MOVED_ELEMENT = COMPOSITION_CHANGE_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Origin' containment reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_TO_LIST__ORIGIN = COMPOSITION_CHANGE_FEATURE_COUNT + 2; - - /** - * The number of structural features of the 'Composition Move To List' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_TO_LIST_FEATURE_COUNT = COMPOSITION_CHANGE_FEATURE_COUNT + 3; - - /** - * The number of operations of the 'Composition Move To List' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_TO_LIST_OPERATION_COUNT = COMPOSITION_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.CompositionMoveToCollectionImpl Composition Move To Collection}' class. - * - * - * @see metamodels.Changes.impl.CompositionMoveToCollectionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionMoveToCollection() - * @generated - */ - int COMPOSITION_MOVE_TO_COLLECTION = 27; - - /** - * The feature id for the 'Moved Element' reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_TO_COLLECTION__MOVED_ELEMENT = 0; - - /** - * The feature id for the 'Origin' containment reference. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_TO_COLLECTION__ORIGIN = 1; - - /** - * The number of structural features of the 'Composition Move To Collection' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_TO_COLLECTION_FEATURE_COUNT = 2; - - /** - * The number of operations of the 'Composition Move To Collection' class. - * - * - * @generated - * @ordered - */ - int COMPOSITION_MOVE_TO_COLLECTION_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.OperationCallImpl Operation Call}' class. - * - * - * @see metamodels.Changes.impl.OperationCallImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getOperationCall() - * @generated - */ - int OPERATION_CALL = 28; - - /** - * The feature id for the 'Operation' reference. - * - * - * @generated - * @ordered - */ - int OPERATION_CALL__OPERATION = MODEL_CHANGE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Target Element' reference. - * - * - * @generated - * @ordered - */ - int OPERATION_CALL__TARGET_ELEMENT = MODEL_CHANGE_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Arguments' containment reference list. - * - * - * @generated - * @ordered - */ - int OPERATION_CALL__ARGUMENTS = MODEL_CHANGE_FEATURE_COUNT + 2; - - /** - * The number of structural features of the 'Operation Call' class. - * - * - * @generated - * @ordered - */ - int OPERATION_CALL_FEATURE_COUNT = MODEL_CHANGE_FEATURE_COUNT + 3; - - /** - * The number of operations of the 'Operation Call' class. - * - * - * @generated - * @ordered - */ - int OPERATION_CALL_OPERATION_COUNT = MODEL_CHANGE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.OperationArgumentImpl Operation Argument}' class. - * - * - * @see metamodels.Changes.impl.OperationArgumentImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getOperationArgument() - * @generated - */ - int OPERATION_ARGUMENT = 29; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int OPERATION_ARGUMENT__NAME = 0; - - /** - * The number of structural features of the 'Operation Argument' class. - * - * - * @generated - * @ordered - */ - int OPERATION_ARGUMENT_FEATURE_COUNT = 1; - - /** - * The number of operations of the 'Operation Argument' class. - * - * - * @generated - * @ordered - */ - int OPERATION_ARGUMENT_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.ValueArgumentImpl Value Argument}' class. - * - * - * @see metamodels.Changes.impl.ValueArgumentImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getValueArgument() - * @generated - */ - int VALUE_ARGUMENT = 30; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int VALUE_ARGUMENT__NAME = OPERATION_ARGUMENT__NAME; - - /** - * The feature id for the 'Value' attribute. - * - * - * @generated - * @ordered - */ - int VALUE_ARGUMENT__VALUE = OPERATION_ARGUMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Value Argument' class. - * - * - * @generated - * @ordered - */ - int VALUE_ARGUMENT_FEATURE_COUNT = OPERATION_ARGUMENT_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Value Argument' class. - * - * - * @generated - * @ordered - */ - int VALUE_ARGUMENT_OPERATION_COUNT = OPERATION_ARGUMENT_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Changes.impl.ReferenceArgumentImpl Reference Argument}' class. - * - * - * @see metamodels.Changes.impl.ReferenceArgumentImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getReferenceArgument() - * @generated - */ - int REFERENCE_ARGUMENT = 31; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int REFERENCE_ARGUMENT__NAME = OPERATION_ARGUMENT__NAME; - - /** - * The feature id for the 'Value' reference. - * - * - * @generated - * @ordered - */ - int REFERENCE_ARGUMENT__VALUE = OPERATION_ARGUMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Reference Argument' class. - * - * - * @generated - * @ordered - */ - int REFERENCE_ARGUMENT_FEATURE_COUNT = OPERATION_ARGUMENT_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Reference Argument' class. - * - * - * @generated - * @ordered - */ - int REFERENCE_ARGUMENT_OPERATION_COUNT = OPERATION_ARGUMENT_OPERATION_COUNT + 0; - - - /** - * Returns the meta object for class '{@link metamodels.Changes.ModelChangeSet Model Change Set}'. - * - * - * @return the meta object for class 'Model Change Set'. - * @see metamodels.Changes.ModelChangeSet - * @generated - */ - EClass getModelChangeSet(); - - /** - * Returns the meta object for the containment reference list '{@link metamodels.Changes.ModelChangeSet#getChanges Changes}'. - * - * - * @return the meta object for the containment reference list 'Changes'. - * @see metamodels.Changes.ModelChangeSet#getChanges() - * @see #getModelChangeSet() - * @generated - */ - EReference getModelChangeSet_Changes(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.ModelChange Model Change}'. - * - * - * @return the meta object for class 'Model Change'. - * @see metamodels.Changes.ModelChange - * @generated - */ - EClass getModelChange(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.ElementaryChange Elementary Change}'. - * - * - * @return the meta object for class 'Elementary Change'. - * @see metamodels.Changes.ElementaryChange - * @generated - */ - EClass getElementaryChange(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.ElementaryChange#getAffectedElement Affected Element}'. - * - * - * @return the meta object for the reference 'Affected Element'. - * @see metamodels.Changes.ElementaryChange#getAffectedElement() - * @see #getElementaryChange() - * @generated - */ - EReference getElementaryChange_AffectedElement(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.ElementaryChange#getFeature Feature}'. - * - * - * @return the meta object for the reference 'Feature'. - * @see metamodels.Changes.ElementaryChange#getFeature() - * @see #getElementaryChange() - * @generated - */ - EReference getElementaryChange_Feature(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.ChangeTransaction Change Transaction}'. - * - * - * @return the meta object for class 'Change Transaction'. - * @see metamodels.Changes.ChangeTransaction - * @generated - */ - EClass getChangeTransaction(); - - /** - * Returns the meta object for the containment reference '{@link metamodels.Changes.ChangeTransaction#getSourceChange Source Change}'. - * - * - * @return the meta object for the containment reference 'Source Change'. - * @see metamodels.Changes.ChangeTransaction#getSourceChange() - * @see #getChangeTransaction() - * @generated - */ - EReference getChangeTransaction_SourceChange(); - - /** - * Returns the meta object for the containment reference list '{@link metamodels.Changes.ChangeTransaction#getNestedChanges Nested Changes}'. - * - * - * @return the meta object for the containment reference list 'Nested Changes'. - * @see metamodels.Changes.ChangeTransaction#getNestedChanges() - * @see #getChangeTransaction() - * @generated - */ - EReference getChangeTransaction_NestedChanges(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.CompositionChange Composition Change}'. - * - * - * @return the meta object for class 'Composition Change'. - * @see metamodels.Changes.CompositionChange - * @generated - */ - EClass getCompositionChange(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.AssociationChange Association Change}'. - * - * - * @return the meta object for class 'Association Change'. - * @see metamodels.Changes.AssociationChange - * @generated - */ - EClass getAssociationChange(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.AttributeChange Attribute Change}'. - * - * - * @return the meta object for class 'Attribute Change'. - * @see metamodels.Changes.AttributeChange - * @generated - */ - EClass getAttributeChange(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.AssociationCollectionDeletion Association Collection Deletion}'. - * - * - * @return the meta object for class 'Association Collection Deletion'. - * @see metamodels.Changes.AssociationCollectionDeletion - * @generated - */ - EClass getAssociationCollectionDeletion(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.AssociationCollectionDeletion#getDeletedElement Deleted Element}'. - * - * - * @return the meta object for the reference 'Deleted Element'. - * @see metamodels.Changes.AssociationCollectionDeletion#getDeletedElement() - * @see #getAssociationCollectionDeletion() - * @generated - */ - EReference getAssociationCollectionDeletion_DeletedElement(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.CompositionCollectionDeletion Composition Collection Deletion}'. - * - * - * @return the meta object for class 'Composition Collection Deletion'. - * @see metamodels.Changes.CompositionCollectionDeletion - * @generated - */ - EClass getCompositionCollectionDeletion(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.CompositionCollectionDeletion#getDeletedElement Deleted Element}'. - * - * - * @return the meta object for the reference 'Deleted Element'. - * @see metamodels.Changes.CompositionCollectionDeletion#getDeletedElement() - * @see #getCompositionCollectionDeletion() - * @generated - */ - EReference getCompositionCollectionDeletion_DeletedElement(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.AttributeCollectionDeletion Attribute Collection Deletion}'. - * - * - * @return the meta object for class 'Attribute Collection Deletion'. - * @see metamodels.Changes.AttributeCollectionDeletion - * @generated - */ - EClass getAttributeCollectionDeletion(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.AttributeCollectionDeletion#getDeletedValue Deleted Value}'. - * - * - * @return the meta object for the attribute 'Deleted Value'. - * @see metamodels.Changes.AttributeCollectionDeletion#getDeletedValue() - * @see #getAttributeCollectionDeletion() - * @generated - */ - EAttribute getAttributeCollectionDeletion_DeletedValue(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.AssociationCollectionInsertion Association Collection Insertion}'. - * - * - * @return the meta object for class 'Association Collection Insertion'. - * @see metamodels.Changes.AssociationCollectionInsertion - * @generated - */ - EClass getAssociationCollectionInsertion(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.AssociationCollectionInsertion#getAddedElement Added Element}'. - * - * - * @return the meta object for the reference 'Added Element'. - * @see metamodels.Changes.AssociationCollectionInsertion#getAddedElement() - * @see #getAssociationCollectionInsertion() - * @generated - */ - EReference getAssociationCollectionInsertion_AddedElement(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.CompositionCollectionInsertion Composition Collection Insertion}'. - * - * - * @return the meta object for class 'Composition Collection Insertion'. - * @see metamodels.Changes.CompositionCollectionInsertion - * @generated - */ - EClass getCompositionCollectionInsertion(); - - /** - * Returns the meta object for the containment reference '{@link metamodels.Changes.CompositionCollectionInsertion#getAddedElement Added Element}'. - * - * - * @return the meta object for the containment reference 'Added Element'. - * @see metamodels.Changes.CompositionCollectionInsertion#getAddedElement() - * @see #getCompositionCollectionInsertion() - * @generated - */ - EReference getCompositionCollectionInsertion_AddedElement(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.AttributeCollectionInsertion Attribute Collection Insertion}'. - * - * - * @return the meta object for class 'Attribute Collection Insertion'. - * @see metamodels.Changes.AttributeCollectionInsertion - * @generated - */ - EClass getAttributeCollectionInsertion(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.AttributeCollectionInsertion#getAddedValue Added Value}'. - * - * - * @return the meta object for the attribute 'Added Value'. - * @see metamodels.Changes.AttributeCollectionInsertion#getAddedValue() - * @see #getAttributeCollectionInsertion() - * @generated - */ - EAttribute getAttributeCollectionInsertion_AddedValue(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.AssociationCollectionReset Association Collection Reset}'. - * - * - * @return the meta object for class 'Association Collection Reset'. - * @see metamodels.Changes.AssociationCollectionReset - * @generated - */ - EClass getAssociationCollectionReset(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.CompositionCollectionReset Composition Collection Reset}'. - * - * - * @return the meta object for class 'Composition Collection Reset'. - * @see metamodels.Changes.CompositionCollectionReset - * @generated - */ - EClass getCompositionCollectionReset(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.AttributeCollectionReset Attribute Collection Reset}'. - * - * - * @return the meta object for class 'Attribute Collection Reset'. - * @see metamodels.Changes.AttributeCollectionReset - * @generated - */ - EClass getAttributeCollectionReset(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.AssociationListDeletion Association List Deletion}'. - * - * - * @return the meta object for class 'Association List Deletion'. - * @see metamodels.Changes.AssociationListDeletion - * @generated - */ - EClass getAssociationListDeletion(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.AssociationListDeletion#getDeletedElement Deleted Element}'. - * - * - * @return the meta object for the reference 'Deleted Element'. - * @see metamodels.Changes.AssociationListDeletion#getDeletedElement() - * @see #getAssociationListDeletion() - * @generated - */ - EReference getAssociationListDeletion_DeletedElement(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.AssociationListDeletion#getIndex Index}'. - * - * - * @return the meta object for the attribute 'Index'. - * @see metamodels.Changes.AssociationListDeletion#getIndex() - * @see #getAssociationListDeletion() - * @generated - */ - EAttribute getAssociationListDeletion_Index(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.CompositionListDeletion Composition List Deletion}'. - * - * - * @return the meta object for class 'Composition List Deletion'. - * @see metamodels.Changes.CompositionListDeletion - * @generated - */ - EClass getCompositionListDeletion(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.CompositionListDeletion#getDeletedElement Deleted Element}'. - * - * - * @return the meta object for the reference 'Deleted Element'. - * @see metamodels.Changes.CompositionListDeletion#getDeletedElement() - * @see #getCompositionListDeletion() - * @generated - */ - EReference getCompositionListDeletion_DeletedElement(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.CompositionListDeletion#getIndex Index}'. - * - * - * @return the meta object for the attribute 'Index'. - * @see metamodels.Changes.CompositionListDeletion#getIndex() - * @see #getCompositionListDeletion() - * @generated - */ - EAttribute getCompositionListDeletion_Index(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.AttributeListDeletion Attribute List Deletion}'. - * - * - * @return the meta object for class 'Attribute List Deletion'. - * @see metamodels.Changes.AttributeListDeletion - * @generated - */ - EClass getAttributeListDeletion(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.AttributeListDeletion#getDeletedValue Deleted Value}'. - * - * - * @return the meta object for the attribute 'Deleted Value'. - * @see metamodels.Changes.AttributeListDeletion#getDeletedValue() - * @see #getAttributeListDeletion() - * @generated - */ - EAttribute getAttributeListDeletion_DeletedValue(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.AttributeListDeletion#getIndex Index}'. - * - * - * @return the meta object for the attribute 'Index'. - * @see metamodels.Changes.AttributeListDeletion#getIndex() - * @see #getAttributeListDeletion() - * @generated - */ - EAttribute getAttributeListDeletion_Index(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.AssociationListInsertion Association List Insertion}'. - * - * - * @return the meta object for class 'Association List Insertion'. - * @see metamodels.Changes.AssociationListInsertion - * @generated - */ - EClass getAssociationListInsertion(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.AssociationListInsertion#getAddedElement Added Element}'. - * - * - * @return the meta object for the reference 'Added Element'. - * @see metamodels.Changes.AssociationListInsertion#getAddedElement() - * @see #getAssociationListInsertion() - * @generated - */ - EReference getAssociationListInsertion_AddedElement(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.AssociationListInsertion#getIndex Index}'. - * - * - * @return the meta object for the attribute 'Index'. - * @see metamodels.Changes.AssociationListInsertion#getIndex() - * @see #getAssociationListInsertion() - * @generated - */ - EAttribute getAssociationListInsertion_Index(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.CompositionListInsertion Composition List Insertion}'. - * - * - * @return the meta object for class 'Composition List Insertion'. - * @see metamodels.Changes.CompositionListInsertion - * @generated - */ - EClass getCompositionListInsertion(); - - /** - * Returns the meta object for the containment reference '{@link metamodels.Changes.CompositionListInsertion#getAddedElement Added Element}'. - * - * - * @return the meta object for the containment reference 'Added Element'. - * @see metamodels.Changes.CompositionListInsertion#getAddedElement() - * @see #getCompositionListInsertion() - * @generated - */ - EReference getCompositionListInsertion_AddedElement(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.CompositionListInsertion#getIndex Index}'. - * - * - * @return the meta object for the attribute 'Index'. - * @see metamodels.Changes.CompositionListInsertion#getIndex() - * @see #getCompositionListInsertion() - * @generated - */ - EAttribute getCompositionListInsertion_Index(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.AttributeListInsertion Attribute List Insertion}'. - * - * - * @return the meta object for class 'Attribute List Insertion'. - * @see metamodels.Changes.AttributeListInsertion - * @generated - */ - EClass getAttributeListInsertion(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.AttributeListInsertion#getAddedValue Added Value}'. - * - * - * @return the meta object for the attribute 'Added Value'. - * @see metamodels.Changes.AttributeListInsertion#getAddedValue() - * @see #getAttributeListInsertion() - * @generated - */ - EAttribute getAttributeListInsertion_AddedValue(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.AttributeListInsertion#getIndex Index}'. - * - * - * @return the meta object for the attribute 'Index'. - * @see metamodels.Changes.AttributeListInsertion#getIndex() - * @see #getAttributeListInsertion() - * @generated - */ - EAttribute getAttributeListInsertion_Index(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.AttributePropertyChange Attribute Property Change}'. - * - * - * @return the meta object for class 'Attribute Property Change'. - * @see metamodels.Changes.AttributePropertyChange - * @generated - */ - EClass getAttributePropertyChange(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.AttributePropertyChange#getNewValue New Value}'. - * - * - * @return the meta object for the attribute 'New Value'. - * @see metamodels.Changes.AttributePropertyChange#getNewValue() - * @see #getAttributePropertyChange() - * @generated - */ - EAttribute getAttributePropertyChange_NewValue(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.AttributePropertyChange#getOldValue Old Value}'. - * - * - * @return the meta object for the attribute 'Old Value'. - * @see metamodels.Changes.AttributePropertyChange#getOldValue() - * @see #getAttributePropertyChange() - * @generated - */ - EAttribute getAttributePropertyChange_OldValue(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.AssociationPropertyChange Association Property Change}'. - * - * - * @return the meta object for class 'Association Property Change'. - * @see metamodels.Changes.AssociationPropertyChange - * @generated - */ - EClass getAssociationPropertyChange(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.AssociationPropertyChange#getNewValue New Value}'. - * - * - * @return the meta object for the reference 'New Value'. - * @see metamodels.Changes.AssociationPropertyChange#getNewValue() - * @see #getAssociationPropertyChange() - * @generated - */ - EReference getAssociationPropertyChange_NewValue(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.AssociationPropertyChange#getOldValue Old Value}'. - * - * - * @return the meta object for the reference 'Old Value'. - * @see metamodels.Changes.AssociationPropertyChange#getOldValue() - * @see #getAssociationPropertyChange() - * @generated - */ - EReference getAssociationPropertyChange_OldValue(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.CompositionPropertyChange Composition Property Change}'. - * - * - * @return the meta object for class 'Composition Property Change'. - * @see metamodels.Changes.CompositionPropertyChange - * @generated - */ - EClass getCompositionPropertyChange(); - - /** - * Returns the meta object for the containment reference '{@link metamodels.Changes.CompositionPropertyChange#getNewValue New Value}'. - * - * - * @return the meta object for the containment reference 'New Value'. - * @see metamodels.Changes.CompositionPropertyChange#getNewValue() - * @see #getCompositionPropertyChange() - * @generated - */ - EReference getCompositionPropertyChange_NewValue(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.CompositionPropertyChange#getOldValue Old Value}'. - * - * - * @return the meta object for the reference 'Old Value'. - * @see metamodels.Changes.CompositionPropertyChange#getOldValue() - * @see #getCompositionPropertyChange() - * @generated - */ - EReference getCompositionPropertyChange_OldValue(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.CompositionMoveIntoProperty Composition Move Into Property}'. - * - * - * @return the meta object for class 'Composition Move Into Property'. - * @see metamodels.Changes.CompositionMoveIntoProperty - * @generated - */ - EClass getCompositionMoveIntoProperty(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.CompositionMoveIntoProperty#getNewValue New Value}'. - * - * - * @return the meta object for the reference 'New Value'. - * @see metamodels.Changes.CompositionMoveIntoProperty#getNewValue() - * @see #getCompositionMoveIntoProperty() - * @generated - */ - EReference getCompositionMoveIntoProperty_NewValue(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.CompositionMoveIntoProperty#getOldValue Old Value}'. - * - * - * @return the meta object for the reference 'Old Value'. - * @see metamodels.Changes.CompositionMoveIntoProperty#getOldValue() - * @see #getCompositionMoveIntoProperty() - * @generated - */ - EReference getCompositionMoveIntoProperty_OldValue(); - - /** - * Returns the meta object for the containment reference '{@link metamodels.Changes.CompositionMoveIntoProperty#getOrigin Origin}'. - * - * - * @return the meta object for the containment reference 'Origin'. - * @see metamodels.Changes.CompositionMoveIntoProperty#getOrigin() - * @see #getCompositionMoveIntoProperty() - * @generated - */ - EReference getCompositionMoveIntoProperty_Origin(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.CompositionMoveToList Composition Move To List}'. - * - * - * @return the meta object for class 'Composition Move To List'. - * @see metamodels.Changes.CompositionMoveToList - * @generated - */ - EClass getCompositionMoveToList(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.CompositionMoveToList#getIndex Index}'. - * - * - * @return the meta object for the attribute 'Index'. - * @see metamodels.Changes.CompositionMoveToList#getIndex() - * @see #getCompositionMoveToList() - * @generated - */ - EAttribute getCompositionMoveToList_Index(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.CompositionMoveToList#getMovedElement Moved Element}'. - * - * - * @return the meta object for the reference 'Moved Element'. - * @see metamodels.Changes.CompositionMoveToList#getMovedElement() - * @see #getCompositionMoveToList() - * @generated - */ - EReference getCompositionMoveToList_MovedElement(); - - /** - * Returns the meta object for the containment reference '{@link metamodels.Changes.CompositionMoveToList#getOrigin Origin}'. - * - * - * @return the meta object for the containment reference 'Origin'. - * @see metamodels.Changes.CompositionMoveToList#getOrigin() - * @see #getCompositionMoveToList() - * @generated - */ - EReference getCompositionMoveToList_Origin(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.CompositionMoveToCollection Composition Move To Collection}'. - * - * - * @return the meta object for class 'Composition Move To Collection'. - * @see metamodels.Changes.CompositionMoveToCollection - * @generated - */ - EClass getCompositionMoveToCollection(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.CompositionMoveToCollection#getMovedElement Moved Element}'. - * - * - * @return the meta object for the reference 'Moved Element'. - * @see metamodels.Changes.CompositionMoveToCollection#getMovedElement() - * @see #getCompositionMoveToCollection() - * @generated - */ - EReference getCompositionMoveToCollection_MovedElement(); - - /** - * Returns the meta object for the containment reference '{@link metamodels.Changes.CompositionMoveToCollection#getOrigin Origin}'. - * - * - * @return the meta object for the containment reference 'Origin'. - * @see metamodels.Changes.CompositionMoveToCollection#getOrigin() - * @see #getCompositionMoveToCollection() - * @generated - */ - EReference getCompositionMoveToCollection_Origin(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.OperationCall Operation Call}'. - * - * - * @return the meta object for class 'Operation Call'. - * @see metamodels.Changes.OperationCall - * @generated - */ - EClass getOperationCall(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.OperationCall#getOperation Operation}'. - * - * - * @return the meta object for the reference 'Operation'. - * @see metamodels.Changes.OperationCall#getOperation() - * @see #getOperationCall() - * @generated - */ - EReference getOperationCall_Operation(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.OperationCall#getTargetElement Target Element}'. - * - * - * @return the meta object for the reference 'Target Element'. - * @see metamodels.Changes.OperationCall#getTargetElement() - * @see #getOperationCall() - * @generated - */ - EReference getOperationCall_TargetElement(); - - /** - * Returns the meta object for the containment reference list '{@link metamodels.Changes.OperationCall#getArguments Arguments}'. - * - * - * @return the meta object for the containment reference list 'Arguments'. - * @see metamodels.Changes.OperationCall#getArguments() - * @see #getOperationCall() - * @generated - */ - EReference getOperationCall_Arguments(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.OperationArgument Operation Argument}'. - * - * - * @return the meta object for class 'Operation Argument'. - * @see metamodels.Changes.OperationArgument - * @generated - */ - EClass getOperationArgument(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.OperationArgument#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see metamodels.Changes.OperationArgument#getName() - * @see #getOperationArgument() - * @generated - */ - EAttribute getOperationArgument_Name(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.ValueArgument Value Argument}'. - * - * - * @return the meta object for class 'Value Argument'. - * @see metamodels.Changes.ValueArgument - * @generated - */ - EClass getValueArgument(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Changes.ValueArgument#getValue Value}'. - * - * - * @return the meta object for the attribute 'Value'. - * @see metamodels.Changes.ValueArgument#getValue() - * @see #getValueArgument() - * @generated - */ - EAttribute getValueArgument_Value(); - - /** - * Returns the meta object for class '{@link metamodels.Changes.ReferenceArgument Reference Argument}'. - * - * - * @return the meta object for class 'Reference Argument'. - * @see metamodels.Changes.ReferenceArgument - * @generated - */ - EClass getReferenceArgument(); - - /** - * Returns the meta object for the reference '{@link metamodels.Changes.ReferenceArgument#getValue Value}'. - * - * - * @return the meta object for the reference 'Value'. - * @see metamodels.Changes.ReferenceArgument#getValue() - * @see #getReferenceArgument() - * @generated - */ - EReference getReferenceArgument_Value(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - ChangesFactory getChangesFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link metamodels.Changes.impl.ModelChangeSetImpl Model Change Set}' class. - * - * - * @see metamodels.Changes.impl.ModelChangeSetImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getModelChangeSet() - * @generated - */ - EClass MODEL_CHANGE_SET = eINSTANCE.getModelChangeSet(); - - /** - * The meta object literal for the 'Changes' containment reference list feature. - * - * - * @generated - */ - EReference MODEL_CHANGE_SET__CHANGES = eINSTANCE.getModelChangeSet_Changes(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.ModelChangeImpl Model Change}' class. - * - * - * @see metamodels.Changes.impl.ModelChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getModelChange() - * @generated - */ - EClass MODEL_CHANGE = eINSTANCE.getModelChange(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.ElementaryChangeImpl Elementary Change}' class. - * - * - * @see metamodels.Changes.impl.ElementaryChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getElementaryChange() - * @generated - */ - EClass ELEMENTARY_CHANGE = eINSTANCE.getElementaryChange(); - - /** - * The meta object literal for the 'Affected Element' reference feature. - * - * - * @generated - */ - EReference ELEMENTARY_CHANGE__AFFECTED_ELEMENT = eINSTANCE.getElementaryChange_AffectedElement(); - - /** - * The meta object literal for the 'Feature' reference feature. - * - * - * @generated - */ - EReference ELEMENTARY_CHANGE__FEATURE = eINSTANCE.getElementaryChange_Feature(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.ChangeTransactionImpl Change Transaction}' class. - * - * - * @see metamodels.Changes.impl.ChangeTransactionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getChangeTransaction() - * @generated - */ - EClass CHANGE_TRANSACTION = eINSTANCE.getChangeTransaction(); - - /** - * The meta object literal for the 'Source Change' containment reference feature. - * - * - * @generated - */ - EReference CHANGE_TRANSACTION__SOURCE_CHANGE = eINSTANCE.getChangeTransaction_SourceChange(); - - /** - * The meta object literal for the 'Nested Changes' containment reference list feature. - * - * - * @generated - */ - EReference CHANGE_TRANSACTION__NESTED_CHANGES = eINSTANCE.getChangeTransaction_NestedChanges(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.CompositionChangeImpl Composition Change}' class. - * - * - * @see metamodels.Changes.impl.CompositionChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionChange() - * @generated - */ - EClass COMPOSITION_CHANGE = eINSTANCE.getCompositionChange(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.AssociationChangeImpl Association Change}' class. - * - * - * @see metamodels.Changes.impl.AssociationChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAssociationChange() - * @generated - */ - EClass ASSOCIATION_CHANGE = eINSTANCE.getAssociationChange(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.AttributeChangeImpl Attribute Change}' class. - * - * - * @see metamodels.Changes.impl.AttributeChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAttributeChange() - * @generated - */ - EClass ATTRIBUTE_CHANGE = eINSTANCE.getAttributeChange(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.AssociationCollectionDeletionImpl Association Collection Deletion}' class. - * - * - * @see metamodels.Changes.impl.AssociationCollectionDeletionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAssociationCollectionDeletion() - * @generated - */ - EClass ASSOCIATION_COLLECTION_DELETION = eINSTANCE.getAssociationCollectionDeletion(); - - /** - * The meta object literal for the 'Deleted Element' reference feature. - * - * - * @generated - */ - EReference ASSOCIATION_COLLECTION_DELETION__DELETED_ELEMENT = eINSTANCE.getAssociationCollectionDeletion_DeletedElement(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.CompositionCollectionDeletionImpl Composition Collection Deletion}' class. - * - * - * @see metamodels.Changes.impl.CompositionCollectionDeletionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionCollectionDeletion() - * @generated - */ - EClass COMPOSITION_COLLECTION_DELETION = eINSTANCE.getCompositionCollectionDeletion(); - - /** - * The meta object literal for the 'Deleted Element' reference feature. - * - * - * @generated - */ - EReference COMPOSITION_COLLECTION_DELETION__DELETED_ELEMENT = eINSTANCE.getCompositionCollectionDeletion_DeletedElement(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.AttributeCollectionDeletionImpl Attribute Collection Deletion}' class. - * - * - * @see metamodels.Changes.impl.AttributeCollectionDeletionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAttributeCollectionDeletion() - * @generated - */ - EClass ATTRIBUTE_COLLECTION_DELETION = eINSTANCE.getAttributeCollectionDeletion(); - - /** - * The meta object literal for the 'Deleted Value' attribute feature. - * - * - * @generated - */ - EAttribute ATTRIBUTE_COLLECTION_DELETION__DELETED_VALUE = eINSTANCE.getAttributeCollectionDeletion_DeletedValue(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.AssociationCollectionInsertionImpl Association Collection Insertion}' class. - * - * - * @see metamodels.Changes.impl.AssociationCollectionInsertionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAssociationCollectionInsertion() - * @generated - */ - EClass ASSOCIATION_COLLECTION_INSERTION = eINSTANCE.getAssociationCollectionInsertion(); - - /** - * The meta object literal for the 'Added Element' reference feature. - * - * - * @generated - */ - EReference ASSOCIATION_COLLECTION_INSERTION__ADDED_ELEMENT = eINSTANCE.getAssociationCollectionInsertion_AddedElement(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.CompositionCollectionInsertionImpl Composition Collection Insertion}' class. - * - * - * @see metamodels.Changes.impl.CompositionCollectionInsertionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionCollectionInsertion() - * @generated - */ - EClass COMPOSITION_COLLECTION_INSERTION = eINSTANCE.getCompositionCollectionInsertion(); - - /** - * The meta object literal for the 'Added Element' containment reference feature. - * - * - * @generated - */ - EReference COMPOSITION_COLLECTION_INSERTION__ADDED_ELEMENT = eINSTANCE.getCompositionCollectionInsertion_AddedElement(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.AttributeCollectionInsertionImpl Attribute Collection Insertion}' class. - * - * - * @see metamodels.Changes.impl.AttributeCollectionInsertionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAttributeCollectionInsertion() - * @generated - */ - EClass ATTRIBUTE_COLLECTION_INSERTION = eINSTANCE.getAttributeCollectionInsertion(); - - /** - * The meta object literal for the 'Added Value' attribute feature. - * - * - * @generated - */ - EAttribute ATTRIBUTE_COLLECTION_INSERTION__ADDED_VALUE = eINSTANCE.getAttributeCollectionInsertion_AddedValue(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.AssociationCollectionResetImpl Association Collection Reset}' class. - * - * - * @see metamodels.Changes.impl.AssociationCollectionResetImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAssociationCollectionReset() - * @generated - */ - EClass ASSOCIATION_COLLECTION_RESET = eINSTANCE.getAssociationCollectionReset(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.CompositionCollectionResetImpl Composition Collection Reset}' class. - * - * - * @see metamodels.Changes.impl.CompositionCollectionResetImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionCollectionReset() - * @generated - */ - EClass COMPOSITION_COLLECTION_RESET = eINSTANCE.getCompositionCollectionReset(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.AttributeCollectionResetImpl Attribute Collection Reset}' class. - * - * - * @see metamodels.Changes.impl.AttributeCollectionResetImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAttributeCollectionReset() - * @generated - */ - EClass ATTRIBUTE_COLLECTION_RESET = eINSTANCE.getAttributeCollectionReset(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.AssociationListDeletionImpl Association List Deletion}' class. - * - * - * @see metamodels.Changes.impl.AssociationListDeletionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAssociationListDeletion() - * @generated - */ - EClass ASSOCIATION_LIST_DELETION = eINSTANCE.getAssociationListDeletion(); - - /** - * The meta object literal for the 'Deleted Element' reference feature. - * - * - * @generated - */ - EReference ASSOCIATION_LIST_DELETION__DELETED_ELEMENT = eINSTANCE.getAssociationListDeletion_DeletedElement(); - - /** - * The meta object literal for the 'Index' attribute feature. - * - * - * @generated - */ - EAttribute ASSOCIATION_LIST_DELETION__INDEX = eINSTANCE.getAssociationListDeletion_Index(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.CompositionListDeletionImpl Composition List Deletion}' class. - * - * - * @see metamodels.Changes.impl.CompositionListDeletionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionListDeletion() - * @generated - */ - EClass COMPOSITION_LIST_DELETION = eINSTANCE.getCompositionListDeletion(); - - /** - * The meta object literal for the 'Deleted Element' reference feature. - * - * - * @generated - */ - EReference COMPOSITION_LIST_DELETION__DELETED_ELEMENT = eINSTANCE.getCompositionListDeletion_DeletedElement(); - - /** - * The meta object literal for the 'Index' attribute feature. - * - * - * @generated - */ - EAttribute COMPOSITION_LIST_DELETION__INDEX = eINSTANCE.getCompositionListDeletion_Index(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.AttributeListDeletionImpl Attribute List Deletion}' class. - * - * - * @see metamodels.Changes.impl.AttributeListDeletionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAttributeListDeletion() - * @generated - */ - EClass ATTRIBUTE_LIST_DELETION = eINSTANCE.getAttributeListDeletion(); - - /** - * The meta object literal for the 'Deleted Value' attribute feature. - * - * - * @generated - */ - EAttribute ATTRIBUTE_LIST_DELETION__DELETED_VALUE = eINSTANCE.getAttributeListDeletion_DeletedValue(); - - /** - * The meta object literal for the 'Index' attribute feature. - * - * - * @generated - */ - EAttribute ATTRIBUTE_LIST_DELETION__INDEX = eINSTANCE.getAttributeListDeletion_Index(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.AssociationListInsertionImpl Association List Insertion}' class. - * - * - * @see metamodels.Changes.impl.AssociationListInsertionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAssociationListInsertion() - * @generated - */ - EClass ASSOCIATION_LIST_INSERTION = eINSTANCE.getAssociationListInsertion(); - - /** - * The meta object literal for the 'Added Element' reference feature. - * - * - * @generated - */ - EReference ASSOCIATION_LIST_INSERTION__ADDED_ELEMENT = eINSTANCE.getAssociationListInsertion_AddedElement(); - - /** - * The meta object literal for the 'Index' attribute feature. - * - * - * @generated - */ - EAttribute ASSOCIATION_LIST_INSERTION__INDEX = eINSTANCE.getAssociationListInsertion_Index(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.CompositionListInsertionImpl Composition List Insertion}' class. - * - * - * @see metamodels.Changes.impl.CompositionListInsertionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionListInsertion() - * @generated - */ - EClass COMPOSITION_LIST_INSERTION = eINSTANCE.getCompositionListInsertion(); - - /** - * The meta object literal for the 'Added Element' containment reference feature. - * - * - * @generated - */ - EReference COMPOSITION_LIST_INSERTION__ADDED_ELEMENT = eINSTANCE.getCompositionListInsertion_AddedElement(); - - /** - * The meta object literal for the 'Index' attribute feature. - * - * - * @generated - */ - EAttribute COMPOSITION_LIST_INSERTION__INDEX = eINSTANCE.getCompositionListInsertion_Index(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.AttributeListInsertionImpl Attribute List Insertion}' class. - * - * - * @see metamodels.Changes.impl.AttributeListInsertionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAttributeListInsertion() - * @generated - */ - EClass ATTRIBUTE_LIST_INSERTION = eINSTANCE.getAttributeListInsertion(); - - /** - * The meta object literal for the 'Added Value' attribute feature. - * - * - * @generated - */ - EAttribute ATTRIBUTE_LIST_INSERTION__ADDED_VALUE = eINSTANCE.getAttributeListInsertion_AddedValue(); - - /** - * The meta object literal for the 'Index' attribute feature. - * - * - * @generated - */ - EAttribute ATTRIBUTE_LIST_INSERTION__INDEX = eINSTANCE.getAttributeListInsertion_Index(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.AttributePropertyChangeImpl Attribute Property Change}' class. - * - * - * @see metamodels.Changes.impl.AttributePropertyChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAttributePropertyChange() - * @generated - */ - EClass ATTRIBUTE_PROPERTY_CHANGE = eINSTANCE.getAttributePropertyChange(); - - /** - * The meta object literal for the 'New Value' attribute feature. - * - * - * @generated - */ - EAttribute ATTRIBUTE_PROPERTY_CHANGE__NEW_VALUE = eINSTANCE.getAttributePropertyChange_NewValue(); - - /** - * The meta object literal for the 'Old Value' attribute feature. - * - * - * @generated - */ - EAttribute ATTRIBUTE_PROPERTY_CHANGE__OLD_VALUE = eINSTANCE.getAttributePropertyChange_OldValue(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.AssociationPropertyChangeImpl Association Property Change}' class. - * - * - * @see metamodels.Changes.impl.AssociationPropertyChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getAssociationPropertyChange() - * @generated - */ - EClass ASSOCIATION_PROPERTY_CHANGE = eINSTANCE.getAssociationPropertyChange(); - - /** - * The meta object literal for the 'New Value' reference feature. - * - * - * @generated - */ - EReference ASSOCIATION_PROPERTY_CHANGE__NEW_VALUE = eINSTANCE.getAssociationPropertyChange_NewValue(); - - /** - * The meta object literal for the 'Old Value' reference feature. - * - * - * @generated - */ - EReference ASSOCIATION_PROPERTY_CHANGE__OLD_VALUE = eINSTANCE.getAssociationPropertyChange_OldValue(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.CompositionPropertyChangeImpl Composition Property Change}' class. - * - * - * @see metamodels.Changes.impl.CompositionPropertyChangeImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionPropertyChange() - * @generated - */ - EClass COMPOSITION_PROPERTY_CHANGE = eINSTANCE.getCompositionPropertyChange(); - - /** - * The meta object literal for the 'New Value' containment reference feature. - * - * - * @generated - */ - EReference COMPOSITION_PROPERTY_CHANGE__NEW_VALUE = eINSTANCE.getCompositionPropertyChange_NewValue(); - - /** - * The meta object literal for the 'Old Value' reference feature. - * - * - * @generated - */ - EReference COMPOSITION_PROPERTY_CHANGE__OLD_VALUE = eINSTANCE.getCompositionPropertyChange_OldValue(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.CompositionMoveIntoPropertyImpl Composition Move Into Property}' class. - * - * - * @see metamodels.Changes.impl.CompositionMoveIntoPropertyImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionMoveIntoProperty() - * @generated - */ - EClass COMPOSITION_MOVE_INTO_PROPERTY = eINSTANCE.getCompositionMoveIntoProperty(); - - /** - * The meta object literal for the 'New Value' reference feature. - * - * - * @generated - */ - EReference COMPOSITION_MOVE_INTO_PROPERTY__NEW_VALUE = eINSTANCE.getCompositionMoveIntoProperty_NewValue(); - - /** - * The meta object literal for the 'Old Value' reference feature. - * - * - * @generated - */ - EReference COMPOSITION_MOVE_INTO_PROPERTY__OLD_VALUE = eINSTANCE.getCompositionMoveIntoProperty_OldValue(); - - /** - * The meta object literal for the 'Origin' containment reference feature. - * - * - * @generated - */ - EReference COMPOSITION_MOVE_INTO_PROPERTY__ORIGIN = eINSTANCE.getCompositionMoveIntoProperty_Origin(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.CompositionMoveToListImpl Composition Move To List}' class. - * - * - * @see metamodels.Changes.impl.CompositionMoveToListImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionMoveToList() - * @generated - */ - EClass COMPOSITION_MOVE_TO_LIST = eINSTANCE.getCompositionMoveToList(); - - /** - * The meta object literal for the 'Index' attribute feature. - * - * - * @generated - */ - EAttribute COMPOSITION_MOVE_TO_LIST__INDEX = eINSTANCE.getCompositionMoveToList_Index(); - - /** - * The meta object literal for the 'Moved Element' reference feature. - * - * - * @generated - */ - EReference COMPOSITION_MOVE_TO_LIST__MOVED_ELEMENT = eINSTANCE.getCompositionMoveToList_MovedElement(); - - /** - * The meta object literal for the 'Origin' containment reference feature. - * - * - * @generated - */ - EReference COMPOSITION_MOVE_TO_LIST__ORIGIN = eINSTANCE.getCompositionMoveToList_Origin(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.CompositionMoveToCollectionImpl Composition Move To Collection}' class. - * - * - * @see metamodels.Changes.impl.CompositionMoveToCollectionImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getCompositionMoveToCollection() - * @generated - */ - EClass COMPOSITION_MOVE_TO_COLLECTION = eINSTANCE.getCompositionMoveToCollection(); - - /** - * The meta object literal for the 'Moved Element' reference feature. - * - * - * @generated - */ - EReference COMPOSITION_MOVE_TO_COLLECTION__MOVED_ELEMENT = eINSTANCE.getCompositionMoveToCollection_MovedElement(); - - /** - * The meta object literal for the 'Origin' containment reference feature. - * - * - * @generated - */ - EReference COMPOSITION_MOVE_TO_COLLECTION__ORIGIN = eINSTANCE.getCompositionMoveToCollection_Origin(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.OperationCallImpl Operation Call}' class. - * - * - * @see metamodels.Changes.impl.OperationCallImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getOperationCall() - * @generated - */ - EClass OPERATION_CALL = eINSTANCE.getOperationCall(); - - /** - * The meta object literal for the 'Operation' reference feature. - * - * - * @generated - */ - EReference OPERATION_CALL__OPERATION = eINSTANCE.getOperationCall_Operation(); - - /** - * The meta object literal for the 'Target Element' reference feature. - * - * - * @generated - */ - EReference OPERATION_CALL__TARGET_ELEMENT = eINSTANCE.getOperationCall_TargetElement(); - - /** - * The meta object literal for the 'Arguments' containment reference list feature. - * - * - * @generated - */ - EReference OPERATION_CALL__ARGUMENTS = eINSTANCE.getOperationCall_Arguments(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.OperationArgumentImpl Operation Argument}' class. - * - * - * @see metamodels.Changes.impl.OperationArgumentImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getOperationArgument() - * @generated - */ - EClass OPERATION_ARGUMENT = eINSTANCE.getOperationArgument(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * - * @generated - */ - EAttribute OPERATION_ARGUMENT__NAME = eINSTANCE.getOperationArgument_Name(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.ValueArgumentImpl Value Argument}' class. - * - * - * @see metamodels.Changes.impl.ValueArgumentImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getValueArgument() - * @generated - */ - EClass VALUE_ARGUMENT = eINSTANCE.getValueArgument(); - - /** - * The meta object literal for the 'Value' attribute feature. - * - * - * @generated - */ - EAttribute VALUE_ARGUMENT__VALUE = eINSTANCE.getValueArgument_Value(); - - /** - * The meta object literal for the '{@link metamodels.Changes.impl.ReferenceArgumentImpl Reference Argument}' class. - * - * - * @see metamodels.Changes.impl.ReferenceArgumentImpl - * @see metamodels.Changes.impl.ChangesPackageImpl#getReferenceArgument() - * @generated - */ - EClass REFERENCE_ARGUMENT = eINSTANCE.getReferenceArgument(); - - /** - * The meta object literal for the 'Value' reference feature. - * - * - * @generated - */ - EReference REFERENCE_ARGUMENT__VALUE = eINSTANCE.getReferenceArgument_Value(); - - } - -} //ChangesPackage diff --git a/solutions/java/app/src/main/java/metamodels/Changes/CompositionChange.java b/solutions/java/app/src/main/java/metamodels/Changes/CompositionChange.java deleted file mode 100644 index 69d4586..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/CompositionChange.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - */ -package metamodels.Changes; - - -/** - * - * A representation of the model object 'Composition Change'. - * - * - * - * @see metamodels.Changes.ChangesPackage#getCompositionChange() - * @model - * @generated - */ -public interface CompositionChange extends ElementaryChange { -} // CompositionChange diff --git a/solutions/java/app/src/main/java/metamodels/Changes/CompositionCollectionDeletion.java b/solutions/java/app/src/main/java/metamodels/Changes/CompositionCollectionDeletion.java deleted file mode 100644 index 1ef3bd6..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/CompositionCollectionDeletion.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Composition Collection Deletion'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.CompositionCollectionDeletion#getDeletedElement Deleted Element}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getCompositionCollectionDeletion() - * @model - * @generated - */ -public interface CompositionCollectionDeletion extends CompositionChange { - /** - * Returns the value of the 'Deleted Element' reference. - * - * - * @return the value of the 'Deleted Element' reference. - * @see #setDeletedElement(EObject) - * @see metamodels.Changes.ChangesPackage#getCompositionCollectionDeletion_DeletedElement() - * @model - * @generated - */ - EObject getDeletedElement(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionCollectionDeletion#getDeletedElement Deleted Element}' reference. - * - * - * @param value the new value of the 'Deleted Element' reference. - * @see #getDeletedElement() - * @generated - */ - void setDeletedElement(EObject value); - -} // CompositionCollectionDeletion diff --git a/solutions/java/app/src/main/java/metamodels/Changes/CompositionCollectionInsertion.java b/solutions/java/app/src/main/java/metamodels/Changes/CompositionCollectionInsertion.java deleted file mode 100644 index 3057187..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/CompositionCollectionInsertion.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Composition Collection Insertion'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.CompositionCollectionInsertion#getAddedElement Added Element}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getCompositionCollectionInsertion() - * @model - * @generated - */ -public interface CompositionCollectionInsertion extends CompositionChange { - /** - * Returns the value of the 'Added Element' containment reference. - * - * - * @return the value of the 'Added Element' containment reference. - * @see #setAddedElement(EObject) - * @see metamodels.Changes.ChangesPackage#getCompositionCollectionInsertion_AddedElement() - * @model containment="true" required="true" - * @generated - */ - EObject getAddedElement(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionCollectionInsertion#getAddedElement Added Element}' containment reference. - * - * - * @param value the new value of the 'Added Element' containment reference. - * @see #getAddedElement() - * @generated - */ - void setAddedElement(EObject value); - -} // CompositionCollectionInsertion diff --git a/solutions/java/app/src/main/java/metamodels/Changes/CompositionCollectionReset.java b/solutions/java/app/src/main/java/metamodels/Changes/CompositionCollectionReset.java deleted file mode 100644 index b6e80db..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/CompositionCollectionReset.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - */ -package metamodels.Changes; - - -/** - * - * A representation of the model object 'Composition Collection Reset'. - * - * - * - * @see metamodels.Changes.ChangesPackage#getCompositionCollectionReset() - * @model - * @generated - */ -public interface CompositionCollectionReset extends CompositionChange { -} // CompositionCollectionReset diff --git a/solutions/java/app/src/main/java/metamodels/Changes/CompositionListDeletion.java b/solutions/java/app/src/main/java/metamodels/Changes/CompositionListDeletion.java deleted file mode 100644 index b1748f2..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/CompositionListDeletion.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Composition List Deletion'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.CompositionListDeletion#getDeletedElement Deleted Element}
  • - *
  • {@link metamodels.Changes.CompositionListDeletion#getIndex Index}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getCompositionListDeletion() - * @model - * @generated - */ -public interface CompositionListDeletion extends CompositionChange { - /** - * Returns the value of the 'Deleted Element' reference. - * - * - * @return the value of the 'Deleted Element' reference. - * @see #setDeletedElement(EObject) - * @see metamodels.Changes.ChangesPackage#getCompositionListDeletion_DeletedElement() - * @model - * @generated - */ - EObject getDeletedElement(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionListDeletion#getDeletedElement Deleted Element}' reference. - * - * - * @param value the new value of the 'Deleted Element' reference. - * @see #getDeletedElement() - * @generated - */ - void setDeletedElement(EObject value); - - /** - * Returns the value of the 'Index' attribute. - * - * - * @return the value of the 'Index' attribute. - * @see #setIndex(int) - * @see metamodels.Changes.ChangesPackage#getCompositionListDeletion_Index() - * @model required="true" - * @generated - */ - int getIndex(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionListDeletion#getIndex Index}' attribute. - * - * - * @param value the new value of the 'Index' attribute. - * @see #getIndex() - * @generated - */ - void setIndex(int value); - -} // CompositionListDeletion diff --git a/solutions/java/app/src/main/java/metamodels/Changes/CompositionListInsertion.java b/solutions/java/app/src/main/java/metamodels/Changes/CompositionListInsertion.java deleted file mode 100644 index f20a914..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/CompositionListInsertion.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Composition List Insertion'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.CompositionListInsertion#getAddedElement Added Element}
  • - *
  • {@link metamodels.Changes.CompositionListInsertion#getIndex Index}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getCompositionListInsertion() - * @model - * @generated - */ -public interface CompositionListInsertion extends CompositionChange { - /** - * Returns the value of the 'Added Element' containment reference. - * - * - * @return the value of the 'Added Element' containment reference. - * @see #setAddedElement(EObject) - * @see metamodels.Changes.ChangesPackage#getCompositionListInsertion_AddedElement() - * @model containment="true" required="true" - * @generated - */ - EObject getAddedElement(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionListInsertion#getAddedElement Added Element}' containment reference. - * - * - * @param value the new value of the 'Added Element' containment reference. - * @see #getAddedElement() - * @generated - */ - void setAddedElement(EObject value); - - /** - * Returns the value of the 'Index' attribute. - * - * - * @return the value of the 'Index' attribute. - * @see #setIndex(int) - * @see metamodels.Changes.ChangesPackage#getCompositionListInsertion_Index() - * @model required="true" - * @generated - */ - int getIndex(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionListInsertion#getIndex Index}' attribute. - * - * - * @param value the new value of the 'Index' attribute. - * @see #getIndex() - * @generated - */ - void setIndex(int value); - -} // CompositionListInsertion diff --git a/solutions/java/app/src/main/java/metamodels/Changes/CompositionMoveIntoProperty.java b/solutions/java/app/src/main/java/metamodels/Changes/CompositionMoveIntoProperty.java deleted file mode 100644 index b7a6437..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/CompositionMoveIntoProperty.java +++ /dev/null @@ -1,92 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Composition Move Into Property'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.CompositionMoveIntoProperty#getNewValue New Value}
  • - *
  • {@link metamodels.Changes.CompositionMoveIntoProperty#getOldValue Old Value}
  • - *
  • {@link metamodels.Changes.CompositionMoveIntoProperty#getOrigin Origin}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getCompositionMoveIntoProperty() - * @model - * @generated - */ -public interface CompositionMoveIntoProperty extends CompositionChange { - /** - * Returns the value of the 'New Value' reference. - * - * - * @return the value of the 'New Value' reference. - * @see #setNewValue(EObject) - * @see metamodels.Changes.ChangesPackage#getCompositionMoveIntoProperty_NewValue() - * @model required="true" - * @generated - */ - EObject getNewValue(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionMoveIntoProperty#getNewValue New Value}' reference. - * - * - * @param value the new value of the 'New Value' reference. - * @see #getNewValue() - * @generated - */ - void setNewValue(EObject value); - - /** - * Returns the value of the 'Old Value' reference. - * - * - * @return the value of the 'Old Value' reference. - * @see #setOldValue(EObject) - * @see metamodels.Changes.ChangesPackage#getCompositionMoveIntoProperty_OldValue() - * @model - * @generated - */ - EObject getOldValue(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionMoveIntoProperty#getOldValue Old Value}' reference. - * - * - * @param value the new value of the 'Old Value' reference. - * @see #getOldValue() - * @generated - */ - void setOldValue(EObject value); - - /** - * Returns the value of the 'Origin' containment reference. - * - * - * @return the value of the 'Origin' containment reference. - * @see #setOrigin(ElementaryChange) - * @see metamodels.Changes.ChangesPackage#getCompositionMoveIntoProperty_Origin() - * @model containment="true" - * @generated - */ - ElementaryChange getOrigin(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionMoveIntoProperty#getOrigin Origin}' containment reference. - * - * - * @param value the new value of the 'Origin' containment reference. - * @see #getOrigin() - * @generated - */ - void setOrigin(ElementaryChange value); - -} // CompositionMoveIntoProperty diff --git a/solutions/java/app/src/main/java/metamodels/Changes/CompositionMoveToCollection.java b/solutions/java/app/src/main/java/metamodels/Changes/CompositionMoveToCollection.java deleted file mode 100644 index 81da175..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/CompositionMoveToCollection.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Composition Move To Collection'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.CompositionMoveToCollection#getMovedElement Moved Element}
  • - *
  • {@link metamodels.Changes.CompositionMoveToCollection#getOrigin Origin}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getCompositionMoveToCollection() - * @model - * @generated - */ -public interface CompositionMoveToCollection extends EObject { - /** - * Returns the value of the 'Moved Element' reference. - * - * - * @return the value of the 'Moved Element' reference. - * @see #setMovedElement(EObject) - * @see metamodels.Changes.ChangesPackage#getCompositionMoveToCollection_MovedElement() - * @model required="true" - * @generated - */ - EObject getMovedElement(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionMoveToCollection#getMovedElement Moved Element}' reference. - * - * - * @param value the new value of the 'Moved Element' reference. - * @see #getMovedElement() - * @generated - */ - void setMovedElement(EObject value); - - /** - * Returns the value of the 'Origin' containment reference. - * - * - * @return the value of the 'Origin' containment reference. - * @see #setOrigin(ElementaryChange) - * @see metamodels.Changes.ChangesPackage#getCompositionMoveToCollection_Origin() - * @model containment="true" required="true" - * @generated - */ - ElementaryChange getOrigin(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionMoveToCollection#getOrigin Origin}' containment reference. - * - * - * @param value the new value of the 'Origin' containment reference. - * @see #getOrigin() - * @generated - */ - void setOrigin(ElementaryChange value); - -} // CompositionMoveToCollection diff --git a/solutions/java/app/src/main/java/metamodels/Changes/CompositionMoveToList.java b/solutions/java/app/src/main/java/metamodels/Changes/CompositionMoveToList.java deleted file mode 100644 index fc53f22..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/CompositionMoveToList.java +++ /dev/null @@ -1,92 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Composition Move To List'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.CompositionMoveToList#getIndex Index}
  • - *
  • {@link metamodels.Changes.CompositionMoveToList#getMovedElement Moved Element}
  • - *
  • {@link metamodels.Changes.CompositionMoveToList#getOrigin Origin}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getCompositionMoveToList() - * @model - * @generated - */ -public interface CompositionMoveToList extends CompositionChange { - /** - * Returns the value of the 'Index' attribute. - * - * - * @return the value of the 'Index' attribute. - * @see #setIndex(int) - * @see metamodels.Changes.ChangesPackage#getCompositionMoveToList_Index() - * @model required="true" - * @generated - */ - int getIndex(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionMoveToList#getIndex Index}' attribute. - * - * - * @param value the new value of the 'Index' attribute. - * @see #getIndex() - * @generated - */ - void setIndex(int value); - - /** - * Returns the value of the 'Moved Element' reference. - * - * - * @return the value of the 'Moved Element' reference. - * @see #setMovedElement(EObject) - * @see metamodels.Changes.ChangesPackage#getCompositionMoveToList_MovedElement() - * @model required="true" - * @generated - */ - EObject getMovedElement(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionMoveToList#getMovedElement Moved Element}' reference. - * - * - * @param value the new value of the 'Moved Element' reference. - * @see #getMovedElement() - * @generated - */ - void setMovedElement(EObject value); - - /** - * Returns the value of the 'Origin' containment reference. - * - * - * @return the value of the 'Origin' containment reference. - * @see #setOrigin(ElementaryChange) - * @see metamodels.Changes.ChangesPackage#getCompositionMoveToList_Origin() - * @model containment="true" required="true" - * @generated - */ - ElementaryChange getOrigin(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionMoveToList#getOrigin Origin}' containment reference. - * - * - * @param value the new value of the 'Origin' containment reference. - * @see #getOrigin() - * @generated - */ - void setOrigin(ElementaryChange value); - -} // CompositionMoveToList diff --git a/solutions/java/app/src/main/java/metamodels/Changes/CompositionPropertyChange.java b/solutions/java/app/src/main/java/metamodels/Changes/CompositionPropertyChange.java deleted file mode 100644 index b64803b..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/CompositionPropertyChange.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Composition Property Change'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.CompositionPropertyChange#getNewValue New Value}
  • - *
  • {@link metamodels.Changes.CompositionPropertyChange#getOldValue Old Value}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getCompositionPropertyChange() - * @model - * @generated - */ -public interface CompositionPropertyChange extends CompositionChange { - /** - * Returns the value of the 'New Value' containment reference. - * - * - * @return the value of the 'New Value' containment reference. - * @see #setNewValue(EObject) - * @see metamodels.Changes.ChangesPackage#getCompositionPropertyChange_NewValue() - * @model containment="true" - * @generated - */ - EObject getNewValue(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionPropertyChange#getNewValue New Value}' containment reference. - * - * - * @param value the new value of the 'New Value' containment reference. - * @see #getNewValue() - * @generated - */ - void setNewValue(EObject value); - - /** - * Returns the value of the 'Old Value' reference. - * - * - * @return the value of the 'Old Value' reference. - * @see #setOldValue(EObject) - * @see metamodels.Changes.ChangesPackage#getCompositionPropertyChange_OldValue() - * @model - * @generated - */ - EObject getOldValue(); - - /** - * Sets the value of the '{@link metamodels.Changes.CompositionPropertyChange#getOldValue Old Value}' reference. - * - * - * @param value the new value of the 'Old Value' reference. - * @see #getOldValue() - * @generated - */ - void setOldValue(EObject value); - -} // CompositionPropertyChange diff --git a/solutions/java/app/src/main/java/metamodels/Changes/ElementaryChange.java b/solutions/java/app/src/main/java/metamodels/Changes/ElementaryChange.java deleted file mode 100644 index ea9d544..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/ElementaryChange.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * - * A representation of the model object 'Elementary Change'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.ElementaryChange#getAffectedElement Affected Element}
  • - *
  • {@link metamodels.Changes.ElementaryChange#getFeature Feature}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getElementaryChange() - * @model abstract="true" - * @generated - */ -public interface ElementaryChange extends ModelChange { - /** - * Returns the value of the 'Affected Element' reference. - * - * - * @return the value of the 'Affected Element' reference. - * @see #setAffectedElement(EObject) - * @see metamodels.Changes.ChangesPackage#getElementaryChange_AffectedElement() - * @model required="true" - * @generated - */ - EObject getAffectedElement(); - - /** - * Sets the value of the '{@link metamodels.Changes.ElementaryChange#getAffectedElement Affected Element}' reference. - * - * - * @param value the new value of the 'Affected Element' reference. - * @see #getAffectedElement() - * @generated - */ - void setAffectedElement(EObject value); - - /** - * Returns the value of the 'Feature' reference. - * - * - * @return the value of the 'Feature' reference. - * @see #setFeature(EStructuralFeature) - * @see metamodels.Changes.ChangesPackage#getElementaryChange_Feature() - * @model required="true" - * @generated - */ - EStructuralFeature getFeature(); - - /** - * Sets the value of the '{@link metamodels.Changes.ElementaryChange#getFeature Feature}' reference. - * - * - * @param value the new value of the 'Feature' reference. - * @see #getFeature() - * @generated - */ - void setFeature(EStructuralFeature value); - -} // ElementaryChange diff --git a/solutions/java/app/src/main/java/metamodels/Changes/ModelChange.java b/solutions/java/app/src/main/java/metamodels/Changes/ModelChange.java deleted file mode 100644 index 80b69a5..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/ModelChange.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Model Change'. - * - * - * - * @see metamodels.Changes.ChangesPackage#getModelChange() - * @model abstract="true" - * @generated - */ -public interface ModelChange extends EObject { -} // ModelChange diff --git a/solutions/java/app/src/main/java/metamodels/Changes/ModelChangeSet.java b/solutions/java/app/src/main/java/metamodels/Changes/ModelChangeSet.java deleted file mode 100644 index 375b757..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/ModelChangeSet.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Model Change Set'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.ModelChangeSet#getChanges Changes}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getModelChangeSet() - * @model - * @generated - */ -public interface ModelChangeSet extends EObject { - /** - * Returns the value of the 'Changes' containment reference list. - * The list contents are of type {@link metamodels.Changes.ModelChange}. - * - * - * @return the value of the 'Changes' containment reference list. - * @see metamodels.Changes.ChangesPackage#getModelChangeSet_Changes() - * @model containment="true" - * @generated - */ - EList getChanges(); - -} // ModelChangeSet diff --git a/solutions/java/app/src/main/java/metamodels/Changes/OperationArgument.java b/solutions/java/app/src/main/java/metamodels/Changes/OperationArgument.java deleted file mode 100644 index 4aac25c..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/OperationArgument.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Operation Argument'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.OperationArgument#getName Name}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getOperationArgument() - * @model abstract="true" - * @generated - */ -public interface OperationArgument extends EObject { - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see metamodels.Changes.ChangesPackage#getOperationArgument_Name() - * @model required="true" - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link metamodels.Changes.OperationArgument#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // OperationArgument diff --git a/solutions/java/app/src/main/java/metamodels/Changes/OperationCall.java b/solutions/java/app/src/main/java/metamodels/Changes/OperationCall.java deleted file mode 100644 index cab1521..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/OperationCall.java +++ /dev/null @@ -1,85 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EOperation; - -/** - * - * A representation of the model object 'Operation Call'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.OperationCall#getOperation Operation}
  • - *
  • {@link metamodels.Changes.OperationCall#getTargetElement Target Element}
  • - *
  • {@link metamodels.Changes.OperationCall#getArguments Arguments}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getOperationCall() - * @model - * @generated - */ -public interface OperationCall extends ModelChange { - /** - * Returns the value of the 'Operation' reference. - * - * - * @return the value of the 'Operation' reference. - * @see #setOperation(EOperation) - * @see metamodels.Changes.ChangesPackage#getOperationCall_Operation() - * @model required="true" - * @generated - */ - EOperation getOperation(); - - /** - * Sets the value of the '{@link metamodels.Changes.OperationCall#getOperation Operation}' reference. - * - * - * @param value the new value of the 'Operation' reference. - * @see #getOperation() - * @generated - */ - void setOperation(EOperation value); - - /** - * Returns the value of the 'Target Element' reference. - * - * - * @return the value of the 'Target Element' reference. - * @see #setTargetElement(EObject) - * @see metamodels.Changes.ChangesPackage#getOperationCall_TargetElement() - * @model - * @generated - */ - EObject getTargetElement(); - - /** - * Sets the value of the '{@link metamodels.Changes.OperationCall#getTargetElement Target Element}' reference. - * - * - * @param value the new value of the 'Target Element' reference. - * @see #getTargetElement() - * @generated - */ - void setTargetElement(EObject value); - - /** - * Returns the value of the 'Arguments' containment reference list. - * The list contents are of type {@link metamodels.Changes.OperationArgument}. - * - * - * @return the value of the 'Arguments' containment reference list. - * @see metamodels.Changes.ChangesPackage#getOperationCall_Arguments() - * @model containment="true" - * @generated - */ - EList getArguments(); - -} // OperationCall diff --git a/solutions/java/app/src/main/java/metamodels/Changes/ReferenceArgument.java b/solutions/java/app/src/main/java/metamodels/Changes/ReferenceArgument.java deleted file mode 100644 index c7323d4..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/ReferenceArgument.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package metamodels.Changes; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Reference Argument'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.ReferenceArgument#getValue Value}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getReferenceArgument() - * @model - * @generated - */ -public interface ReferenceArgument extends OperationArgument { - /** - * Returns the value of the 'Value' reference. - * - * - * @return the value of the 'Value' reference. - * @see #setValue(EObject) - * @see metamodels.Changes.ChangesPackage#getReferenceArgument_Value() - * @model required="true" - * @generated - */ - EObject getValue(); - - /** - * Sets the value of the '{@link metamodels.Changes.ReferenceArgument#getValue Value}' reference. - * - * - * @param value the new value of the 'Value' reference. - * @see #getValue() - * @generated - */ - void setValue(EObject value); - -} // ReferenceArgument diff --git a/solutions/java/app/src/main/java/metamodels/Changes/ValueArgument.java b/solutions/java/app/src/main/java/metamodels/Changes/ValueArgument.java deleted file mode 100644 index 389d722..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/ValueArgument.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - */ -package metamodels.Changes; - - -/** - * - * A representation of the model object 'Value Argument'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Changes.ValueArgument#getValue Value}
  • - *
- * - * @see metamodels.Changes.ChangesPackage#getValueArgument() - * @model - * @generated - */ -public interface ValueArgument extends OperationArgument { - /** - * Returns the value of the 'Value' attribute. - * - * - * @return the value of the 'Value' attribute. - * @see #setValue(String) - * @see metamodels.Changes.ChangesPackage#getValueArgument_Value() - * @model required="true" - * @generated - */ - String getValue(); - - /** - * Sets the value of the '{@link metamodels.Changes.ValueArgument#getValue Value}' attribute. - * - * - * @param value the new value of the 'Value' attribute. - * @see #getValue() - * @generated - */ - void setValue(String value); - -} // ValueArgument diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationChangeImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationChangeImpl.java deleted file mode 100644 index 91b2b47..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationChangeImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AssociationChange; -import metamodels.Changes.ChangesPackage; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Association Change'. - * - * - * @generated - */ -public class AssociationChangeImpl extends ElementaryChangeImpl implements AssociationChange { - /** - * - * - * @generated - */ - protected AssociationChangeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ASSOCIATION_CHANGE; - } - -} //AssociationChangeImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationCollectionDeletionImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationCollectionDeletionImpl.java deleted file mode 100644 index eb533f0..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationCollectionDeletionImpl.java +++ /dev/null @@ -1,156 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AssociationCollectionDeletion; -import metamodels.Changes.ChangesPackage; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Association Collection Deletion'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.AssociationCollectionDeletionImpl#getDeletedElement Deleted Element}
  • - *
- * - * @generated - */ -public class AssociationCollectionDeletionImpl extends AssociationChangeImpl implements AssociationCollectionDeletion { - /** - * The cached value of the '{@link #getDeletedElement() Deleted Element}' reference. - * - * - * @see #getDeletedElement() - * @generated - * @ordered - */ - protected EObject deletedElement; - - /** - * - * - * @generated - */ - protected AssociationCollectionDeletionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ASSOCIATION_COLLECTION_DELETION; - } - - /** - * - * - * @generated - */ - public EObject getDeletedElement() { - if (deletedElement != null && deletedElement.eIsProxy()) { - InternalEObject oldDeletedElement = (InternalEObject)deletedElement; - deletedElement = eResolveProxy(oldDeletedElement); - if (deletedElement != oldDeletedElement) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.ASSOCIATION_COLLECTION_DELETION__DELETED_ELEMENT, oldDeletedElement, deletedElement)); - } - } - return deletedElement; - } - - /** - * - * - * @generated - */ - public EObject basicGetDeletedElement() { - return deletedElement; - } - - /** - * - * - * @generated - */ - public void setDeletedElement(EObject newDeletedElement) { - EObject oldDeletedElement = deletedElement; - deletedElement = newDeletedElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ASSOCIATION_COLLECTION_DELETION__DELETED_ELEMENT, oldDeletedElement, deletedElement)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_COLLECTION_DELETION__DELETED_ELEMENT: - if (resolve) return getDeletedElement(); - return basicGetDeletedElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_COLLECTION_DELETION__DELETED_ELEMENT: - setDeletedElement((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_COLLECTION_DELETION__DELETED_ELEMENT: - setDeletedElement((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_COLLECTION_DELETION__DELETED_ELEMENT: - return deletedElement != null; - } - return super.eIsSet(featureID); - } - -} //AssociationCollectionDeletionImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationCollectionInsertionImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationCollectionInsertionImpl.java deleted file mode 100644 index 2730a57..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationCollectionInsertionImpl.java +++ /dev/null @@ -1,156 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AssociationCollectionInsertion; -import metamodels.Changes.ChangesPackage; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Association Collection Insertion'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.AssociationCollectionInsertionImpl#getAddedElement Added Element}
  • - *
- * - * @generated - */ -public class AssociationCollectionInsertionImpl extends AssociationChangeImpl implements AssociationCollectionInsertion { - /** - * The cached value of the '{@link #getAddedElement() Added Element}' reference. - * - * - * @see #getAddedElement() - * @generated - * @ordered - */ - protected EObject addedElement; - - /** - * - * - * @generated - */ - protected AssociationCollectionInsertionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ASSOCIATION_COLLECTION_INSERTION; - } - - /** - * - * - * @generated - */ - public EObject getAddedElement() { - if (addedElement != null && addedElement.eIsProxy()) { - InternalEObject oldAddedElement = (InternalEObject)addedElement; - addedElement = eResolveProxy(oldAddedElement); - if (addedElement != oldAddedElement) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.ASSOCIATION_COLLECTION_INSERTION__ADDED_ELEMENT, oldAddedElement, addedElement)); - } - } - return addedElement; - } - - /** - * - * - * @generated - */ - public EObject basicGetAddedElement() { - return addedElement; - } - - /** - * - * - * @generated - */ - public void setAddedElement(EObject newAddedElement) { - EObject oldAddedElement = addedElement; - addedElement = newAddedElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ASSOCIATION_COLLECTION_INSERTION__ADDED_ELEMENT, oldAddedElement, addedElement)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_COLLECTION_INSERTION__ADDED_ELEMENT: - if (resolve) return getAddedElement(); - return basicGetAddedElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_COLLECTION_INSERTION__ADDED_ELEMENT: - setAddedElement((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_COLLECTION_INSERTION__ADDED_ELEMENT: - setAddedElement((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_COLLECTION_INSERTION__ADDED_ELEMENT: - return addedElement != null; - } - return super.eIsSet(featureID); - } - -} //AssociationCollectionInsertionImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationCollectionResetImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationCollectionResetImpl.java deleted file mode 100644 index 592bb7f..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationCollectionResetImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AssociationCollectionReset; -import metamodels.Changes.ChangesPackage; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Association Collection Reset'. - * - * - * @generated - */ -public class AssociationCollectionResetImpl extends AssociationChangeImpl implements AssociationCollectionReset { - /** - * - * - * @generated - */ - protected AssociationCollectionResetImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ASSOCIATION_COLLECTION_RESET; - } - -} //AssociationCollectionResetImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationListDeletionImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationListDeletionImpl.java deleted file mode 100644 index dc55527..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationListDeletionImpl.java +++ /dev/null @@ -1,224 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AssociationListDeletion; -import metamodels.Changes.ChangesPackage; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Association List Deletion'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.AssociationListDeletionImpl#getDeletedElement Deleted Element}
  • - *
  • {@link metamodels.Changes.impl.AssociationListDeletionImpl#getIndex Index}
  • - *
- * - * @generated - */ -public class AssociationListDeletionImpl extends AssociationChangeImpl implements AssociationListDeletion { - /** - * The cached value of the '{@link #getDeletedElement() Deleted Element}' reference. - * - * - * @see #getDeletedElement() - * @generated - * @ordered - */ - protected EObject deletedElement; - - /** - * The default value of the '{@link #getIndex() Index}' attribute. - * - * - * @see #getIndex() - * @generated - * @ordered - */ - protected static final int INDEX_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getIndex() Index}' attribute. - * - * - * @see #getIndex() - * @generated - * @ordered - */ - protected int index = INDEX_EDEFAULT; - - /** - * - * - * @generated - */ - protected AssociationListDeletionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ASSOCIATION_LIST_DELETION; - } - - /** - * - * - * @generated - */ - public EObject getDeletedElement() { - if (deletedElement != null && deletedElement.eIsProxy()) { - InternalEObject oldDeletedElement = (InternalEObject)deletedElement; - deletedElement = eResolveProxy(oldDeletedElement); - if (deletedElement != oldDeletedElement) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.ASSOCIATION_LIST_DELETION__DELETED_ELEMENT, oldDeletedElement, deletedElement)); - } - } - return deletedElement; - } - - /** - * - * - * @generated - */ - public EObject basicGetDeletedElement() { - return deletedElement; - } - - /** - * - * - * @generated - */ - public void setDeletedElement(EObject newDeletedElement) { - EObject oldDeletedElement = deletedElement; - deletedElement = newDeletedElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ASSOCIATION_LIST_DELETION__DELETED_ELEMENT, oldDeletedElement, deletedElement)); - } - - /** - * - * - * @generated - */ - public int getIndex() { - return index; - } - - /** - * - * - * @generated - */ - public void setIndex(int newIndex) { - int oldIndex = index; - index = newIndex; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ASSOCIATION_LIST_DELETION__INDEX, oldIndex, index)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_LIST_DELETION__DELETED_ELEMENT: - if (resolve) return getDeletedElement(); - return basicGetDeletedElement(); - case ChangesPackage.ASSOCIATION_LIST_DELETION__INDEX: - return getIndex(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_LIST_DELETION__DELETED_ELEMENT: - setDeletedElement((EObject)newValue); - return; - case ChangesPackage.ASSOCIATION_LIST_DELETION__INDEX: - setIndex((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_LIST_DELETION__DELETED_ELEMENT: - setDeletedElement((EObject)null); - return; - case ChangesPackage.ASSOCIATION_LIST_DELETION__INDEX: - setIndex(INDEX_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_LIST_DELETION__DELETED_ELEMENT: - return deletedElement != null; - case ChangesPackage.ASSOCIATION_LIST_DELETION__INDEX: - return index != INDEX_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (index: "); - result.append(index); - result.append(')'); - return result.toString(); - } - -} //AssociationListDeletionImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationListInsertionImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationListInsertionImpl.java deleted file mode 100644 index f4fe7ec..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationListInsertionImpl.java +++ /dev/null @@ -1,224 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AssociationListInsertion; -import metamodels.Changes.ChangesPackage; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Association List Insertion'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.AssociationListInsertionImpl#getAddedElement Added Element}
  • - *
  • {@link metamodels.Changes.impl.AssociationListInsertionImpl#getIndex Index}
  • - *
- * - * @generated - */ -public class AssociationListInsertionImpl extends AssociationChangeImpl implements AssociationListInsertion { - /** - * The cached value of the '{@link #getAddedElement() Added Element}' reference. - * - * - * @see #getAddedElement() - * @generated - * @ordered - */ - protected EObject addedElement; - - /** - * The default value of the '{@link #getIndex() Index}' attribute. - * - * - * @see #getIndex() - * @generated - * @ordered - */ - protected static final int INDEX_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getIndex() Index}' attribute. - * - * - * @see #getIndex() - * @generated - * @ordered - */ - protected int index = INDEX_EDEFAULT; - - /** - * - * - * @generated - */ - protected AssociationListInsertionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ASSOCIATION_LIST_INSERTION; - } - - /** - * - * - * @generated - */ - public EObject getAddedElement() { - if (addedElement != null && addedElement.eIsProxy()) { - InternalEObject oldAddedElement = (InternalEObject)addedElement; - addedElement = eResolveProxy(oldAddedElement); - if (addedElement != oldAddedElement) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.ASSOCIATION_LIST_INSERTION__ADDED_ELEMENT, oldAddedElement, addedElement)); - } - } - return addedElement; - } - - /** - * - * - * @generated - */ - public EObject basicGetAddedElement() { - return addedElement; - } - - /** - * - * - * @generated - */ - public void setAddedElement(EObject newAddedElement) { - EObject oldAddedElement = addedElement; - addedElement = newAddedElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ASSOCIATION_LIST_INSERTION__ADDED_ELEMENT, oldAddedElement, addedElement)); - } - - /** - * - * - * @generated - */ - public int getIndex() { - return index; - } - - /** - * - * - * @generated - */ - public void setIndex(int newIndex) { - int oldIndex = index; - index = newIndex; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ASSOCIATION_LIST_INSERTION__INDEX, oldIndex, index)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_LIST_INSERTION__ADDED_ELEMENT: - if (resolve) return getAddedElement(); - return basicGetAddedElement(); - case ChangesPackage.ASSOCIATION_LIST_INSERTION__INDEX: - return getIndex(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_LIST_INSERTION__ADDED_ELEMENT: - setAddedElement((EObject)newValue); - return; - case ChangesPackage.ASSOCIATION_LIST_INSERTION__INDEX: - setIndex((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_LIST_INSERTION__ADDED_ELEMENT: - setAddedElement((EObject)null); - return; - case ChangesPackage.ASSOCIATION_LIST_INSERTION__INDEX: - setIndex(INDEX_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_LIST_INSERTION__ADDED_ELEMENT: - return addedElement != null; - case ChangesPackage.ASSOCIATION_LIST_INSERTION__INDEX: - return index != INDEX_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (index: "); - result.append(index); - result.append(')'); - return result.toString(); - } - -} //AssociationListInsertionImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationPropertyChangeImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationPropertyChangeImpl.java deleted file mode 100644 index 2486466..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/AssociationPropertyChangeImpl.java +++ /dev/null @@ -1,216 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AssociationPropertyChange; -import metamodels.Changes.ChangesPackage; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Association Property Change'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.AssociationPropertyChangeImpl#getNewValue New Value}
  • - *
  • {@link metamodels.Changes.impl.AssociationPropertyChangeImpl#getOldValue Old Value}
  • - *
- * - * @generated - */ -public class AssociationPropertyChangeImpl extends AssociationChangeImpl implements AssociationPropertyChange { - /** - * The cached value of the '{@link #getNewValue() New Value}' reference. - * - * - * @see #getNewValue() - * @generated - * @ordered - */ - protected EObject newValue; - - /** - * The cached value of the '{@link #getOldValue() Old Value}' reference. - * - * - * @see #getOldValue() - * @generated - * @ordered - */ - protected EObject oldValue; - - /** - * - * - * @generated - */ - protected AssociationPropertyChangeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ASSOCIATION_PROPERTY_CHANGE; - } - - /** - * - * - * @generated - */ - public EObject getNewValue() { - if (newValue != null && newValue.eIsProxy()) { - InternalEObject oldNewValue = (InternalEObject)newValue; - newValue = eResolveProxy(oldNewValue); - if (newValue != oldNewValue) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.ASSOCIATION_PROPERTY_CHANGE__NEW_VALUE, oldNewValue, newValue)); - } - } - return newValue; - } - - /** - * - * - * @generated - */ - public EObject basicGetNewValue() { - return newValue; - } - - /** - * - * - * @generated - */ - public void setNewValue(EObject newNewValue) { - EObject oldNewValue = newValue; - newValue = newNewValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ASSOCIATION_PROPERTY_CHANGE__NEW_VALUE, oldNewValue, newValue)); - } - - /** - * - * - * @generated - */ - public EObject getOldValue() { - if (oldValue != null && oldValue.eIsProxy()) { - InternalEObject oldOldValue = (InternalEObject)oldValue; - oldValue = eResolveProxy(oldOldValue); - if (oldValue != oldOldValue) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.ASSOCIATION_PROPERTY_CHANGE__OLD_VALUE, oldOldValue, oldValue)); - } - } - return oldValue; - } - - /** - * - * - * @generated - */ - public EObject basicGetOldValue() { - return oldValue; - } - - /** - * - * - * @generated - */ - public void setOldValue(EObject newOldValue) { - EObject oldOldValue = oldValue; - oldValue = newOldValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ASSOCIATION_PROPERTY_CHANGE__OLD_VALUE, oldOldValue, oldValue)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_PROPERTY_CHANGE__NEW_VALUE: - if (resolve) return getNewValue(); - return basicGetNewValue(); - case ChangesPackage.ASSOCIATION_PROPERTY_CHANGE__OLD_VALUE: - if (resolve) return getOldValue(); - return basicGetOldValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_PROPERTY_CHANGE__NEW_VALUE: - setNewValue((EObject)newValue); - return; - case ChangesPackage.ASSOCIATION_PROPERTY_CHANGE__OLD_VALUE: - setOldValue((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_PROPERTY_CHANGE__NEW_VALUE: - setNewValue((EObject)null); - return; - case ChangesPackage.ASSOCIATION_PROPERTY_CHANGE__OLD_VALUE: - setOldValue((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.ASSOCIATION_PROPERTY_CHANGE__NEW_VALUE: - return newValue != null; - case ChangesPackage.ASSOCIATION_PROPERTY_CHANGE__OLD_VALUE: - return oldValue != null; - } - return super.eIsSet(featureID); - } - -} //AssociationPropertyChangeImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeChangeImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeChangeImpl.java deleted file mode 100644 index 14ed039..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeChangeImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AttributeChange; -import metamodels.Changes.ChangesPackage; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Attribute Change'. - * - * - * @generated - */ -public class AttributeChangeImpl extends ElementaryChangeImpl implements AttributeChange { - /** - * - * - * @generated - */ - protected AttributeChangeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ATTRIBUTE_CHANGE; - } - -} //AttributeChangeImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeCollectionDeletionImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeCollectionDeletionImpl.java deleted file mode 100644 index 58721be..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeCollectionDeletionImpl.java +++ /dev/null @@ -1,162 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AttributeCollectionDeletion; -import metamodels.Changes.ChangesPackage; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Attribute Collection Deletion'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.AttributeCollectionDeletionImpl#getDeletedValue Deleted Value}
  • - *
- * - * @generated - */ -public class AttributeCollectionDeletionImpl extends AttributeChangeImpl implements AttributeCollectionDeletion { - /** - * The default value of the '{@link #getDeletedValue() Deleted Value}' attribute. - * - * - * @see #getDeletedValue() - * @generated - * @ordered - */ - protected static final String DELETED_VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDeletedValue() Deleted Value}' attribute. - * - * - * @see #getDeletedValue() - * @generated - * @ordered - */ - protected String deletedValue = DELETED_VALUE_EDEFAULT; - - /** - * - * - * @generated - */ - protected AttributeCollectionDeletionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ATTRIBUTE_COLLECTION_DELETION; - } - - /** - * - * - * @generated - */ - public String getDeletedValue() { - return deletedValue; - } - - /** - * - * - * @generated - */ - public void setDeletedValue(String newDeletedValue) { - String oldDeletedValue = deletedValue; - deletedValue = newDeletedValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ATTRIBUTE_COLLECTION_DELETION__DELETED_VALUE, oldDeletedValue, deletedValue)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_COLLECTION_DELETION__DELETED_VALUE: - return getDeletedValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_COLLECTION_DELETION__DELETED_VALUE: - setDeletedValue((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_COLLECTION_DELETION__DELETED_VALUE: - setDeletedValue(DELETED_VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_COLLECTION_DELETION__DELETED_VALUE: - return DELETED_VALUE_EDEFAULT == null ? deletedValue != null : !DELETED_VALUE_EDEFAULT.equals(deletedValue); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (deletedValue: "); - result.append(deletedValue); - result.append(')'); - return result.toString(); - } - -} //AttributeCollectionDeletionImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeCollectionInsertionImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeCollectionInsertionImpl.java deleted file mode 100644 index aacffb9..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeCollectionInsertionImpl.java +++ /dev/null @@ -1,162 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AttributeCollectionInsertion; -import metamodels.Changes.ChangesPackage; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Attribute Collection Insertion'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.AttributeCollectionInsertionImpl#getAddedValue Added Value}
  • - *
- * - * @generated - */ -public class AttributeCollectionInsertionImpl extends AttributeChangeImpl implements AttributeCollectionInsertion { - /** - * The default value of the '{@link #getAddedValue() Added Value}' attribute. - * - * - * @see #getAddedValue() - * @generated - * @ordered - */ - protected static final String ADDED_VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAddedValue() Added Value}' attribute. - * - * - * @see #getAddedValue() - * @generated - * @ordered - */ - protected String addedValue = ADDED_VALUE_EDEFAULT; - - /** - * - * - * @generated - */ - protected AttributeCollectionInsertionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ATTRIBUTE_COLLECTION_INSERTION; - } - - /** - * - * - * @generated - */ - public String getAddedValue() { - return addedValue; - } - - /** - * - * - * @generated - */ - public void setAddedValue(String newAddedValue) { - String oldAddedValue = addedValue; - addedValue = newAddedValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ATTRIBUTE_COLLECTION_INSERTION__ADDED_VALUE, oldAddedValue, addedValue)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_COLLECTION_INSERTION__ADDED_VALUE: - return getAddedValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_COLLECTION_INSERTION__ADDED_VALUE: - setAddedValue((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_COLLECTION_INSERTION__ADDED_VALUE: - setAddedValue(ADDED_VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_COLLECTION_INSERTION__ADDED_VALUE: - return ADDED_VALUE_EDEFAULT == null ? addedValue != null : !ADDED_VALUE_EDEFAULT.equals(addedValue); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (addedValue: "); - result.append(addedValue); - result.append(')'); - return result.toString(); - } - -} //AttributeCollectionInsertionImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeCollectionResetImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeCollectionResetImpl.java deleted file mode 100644 index b7e11e5..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeCollectionResetImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AttributeCollectionReset; -import metamodels.Changes.ChangesPackage; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Attribute Collection Reset'. - * - * - * @generated - */ -public class AttributeCollectionResetImpl extends AttributeChangeImpl implements AttributeCollectionReset { - /** - * - * - * @generated - */ - protected AttributeCollectionResetImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ATTRIBUTE_COLLECTION_RESET; - } - -} //AttributeCollectionResetImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeListDeletionImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeListDeletionImpl.java deleted file mode 100644 index 1db76bc..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeListDeletionImpl.java +++ /dev/null @@ -1,216 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AttributeListDeletion; -import metamodels.Changes.ChangesPackage; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Attribute List Deletion'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.AttributeListDeletionImpl#getDeletedValue Deleted Value}
  • - *
  • {@link metamodels.Changes.impl.AttributeListDeletionImpl#getIndex Index}
  • - *
- * - * @generated - */ -public class AttributeListDeletionImpl extends AttributeChangeImpl implements AttributeListDeletion { - /** - * The default value of the '{@link #getDeletedValue() Deleted Value}' attribute. - * - * - * @see #getDeletedValue() - * @generated - * @ordered - */ - protected static final String DELETED_VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDeletedValue() Deleted Value}' attribute. - * - * - * @see #getDeletedValue() - * @generated - * @ordered - */ - protected String deletedValue = DELETED_VALUE_EDEFAULT; - - /** - * The default value of the '{@link #getIndex() Index}' attribute. - * - * - * @see #getIndex() - * @generated - * @ordered - */ - protected static final int INDEX_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getIndex() Index}' attribute. - * - * - * @see #getIndex() - * @generated - * @ordered - */ - protected int index = INDEX_EDEFAULT; - - /** - * - * - * @generated - */ - protected AttributeListDeletionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ATTRIBUTE_LIST_DELETION; - } - - /** - * - * - * @generated - */ - public String getDeletedValue() { - return deletedValue; - } - - /** - * - * - * @generated - */ - public void setDeletedValue(String newDeletedValue) { - String oldDeletedValue = deletedValue; - deletedValue = newDeletedValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ATTRIBUTE_LIST_DELETION__DELETED_VALUE, oldDeletedValue, deletedValue)); - } - - /** - * - * - * @generated - */ - public int getIndex() { - return index; - } - - /** - * - * - * @generated - */ - public void setIndex(int newIndex) { - int oldIndex = index; - index = newIndex; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ATTRIBUTE_LIST_DELETION__INDEX, oldIndex, index)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_LIST_DELETION__DELETED_VALUE: - return getDeletedValue(); - case ChangesPackage.ATTRIBUTE_LIST_DELETION__INDEX: - return getIndex(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_LIST_DELETION__DELETED_VALUE: - setDeletedValue((String)newValue); - return; - case ChangesPackage.ATTRIBUTE_LIST_DELETION__INDEX: - setIndex((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_LIST_DELETION__DELETED_VALUE: - setDeletedValue(DELETED_VALUE_EDEFAULT); - return; - case ChangesPackage.ATTRIBUTE_LIST_DELETION__INDEX: - setIndex(INDEX_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_LIST_DELETION__DELETED_VALUE: - return DELETED_VALUE_EDEFAULT == null ? deletedValue != null : !DELETED_VALUE_EDEFAULT.equals(deletedValue); - case ChangesPackage.ATTRIBUTE_LIST_DELETION__INDEX: - return index != INDEX_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (deletedValue: "); - result.append(deletedValue); - result.append(", index: "); - result.append(index); - result.append(')'); - return result.toString(); - } - -} //AttributeListDeletionImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeListInsertionImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeListInsertionImpl.java deleted file mode 100644 index d2ea151..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributeListInsertionImpl.java +++ /dev/null @@ -1,216 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AttributeListInsertion; -import metamodels.Changes.ChangesPackage; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Attribute List Insertion'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.AttributeListInsertionImpl#getAddedValue Added Value}
  • - *
  • {@link metamodels.Changes.impl.AttributeListInsertionImpl#getIndex Index}
  • - *
- * - * @generated - */ -public class AttributeListInsertionImpl extends AttributeChangeImpl implements AttributeListInsertion { - /** - * The default value of the '{@link #getAddedValue() Added Value}' attribute. - * - * - * @see #getAddedValue() - * @generated - * @ordered - */ - protected static final String ADDED_VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAddedValue() Added Value}' attribute. - * - * - * @see #getAddedValue() - * @generated - * @ordered - */ - protected String addedValue = ADDED_VALUE_EDEFAULT; - - /** - * The default value of the '{@link #getIndex() Index}' attribute. - * - * - * @see #getIndex() - * @generated - * @ordered - */ - protected static final int INDEX_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getIndex() Index}' attribute. - * - * - * @see #getIndex() - * @generated - * @ordered - */ - protected int index = INDEX_EDEFAULT; - - /** - * - * - * @generated - */ - protected AttributeListInsertionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ATTRIBUTE_LIST_INSERTION; - } - - /** - * - * - * @generated - */ - public String getAddedValue() { - return addedValue; - } - - /** - * - * - * @generated - */ - public void setAddedValue(String newAddedValue) { - String oldAddedValue = addedValue; - addedValue = newAddedValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ATTRIBUTE_LIST_INSERTION__ADDED_VALUE, oldAddedValue, addedValue)); - } - - /** - * - * - * @generated - */ - public int getIndex() { - return index; - } - - /** - * - * - * @generated - */ - public void setIndex(int newIndex) { - int oldIndex = index; - index = newIndex; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ATTRIBUTE_LIST_INSERTION__INDEX, oldIndex, index)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_LIST_INSERTION__ADDED_VALUE: - return getAddedValue(); - case ChangesPackage.ATTRIBUTE_LIST_INSERTION__INDEX: - return getIndex(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_LIST_INSERTION__ADDED_VALUE: - setAddedValue((String)newValue); - return; - case ChangesPackage.ATTRIBUTE_LIST_INSERTION__INDEX: - setIndex((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_LIST_INSERTION__ADDED_VALUE: - setAddedValue(ADDED_VALUE_EDEFAULT); - return; - case ChangesPackage.ATTRIBUTE_LIST_INSERTION__INDEX: - setIndex(INDEX_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_LIST_INSERTION__ADDED_VALUE: - return ADDED_VALUE_EDEFAULT == null ? addedValue != null : !ADDED_VALUE_EDEFAULT.equals(addedValue); - case ChangesPackage.ATTRIBUTE_LIST_INSERTION__INDEX: - return index != INDEX_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (addedValue: "); - result.append(addedValue); - result.append(", index: "); - result.append(index); - result.append(')'); - return result.toString(); - } - -} //AttributeListInsertionImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributePropertyChangeImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributePropertyChangeImpl.java deleted file mode 100644 index a254fc1..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/AttributePropertyChangeImpl.java +++ /dev/null @@ -1,216 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AttributePropertyChange; -import metamodels.Changes.ChangesPackage; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Attribute Property Change'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.AttributePropertyChangeImpl#getNewValue New Value}
  • - *
  • {@link metamodels.Changes.impl.AttributePropertyChangeImpl#getOldValue Old Value}
  • - *
- * - * @generated - */ -public class AttributePropertyChangeImpl extends AttributeChangeImpl implements AttributePropertyChange { - /** - * The default value of the '{@link #getNewValue() New Value}' attribute. - * - * - * @see #getNewValue() - * @generated - * @ordered - */ - protected static final String NEW_VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getNewValue() New Value}' attribute. - * - * - * @see #getNewValue() - * @generated - * @ordered - */ - protected String newValue = NEW_VALUE_EDEFAULT; - - /** - * The default value of the '{@link #getOldValue() Old Value}' attribute. - * - * - * @see #getOldValue() - * @generated - * @ordered - */ - protected static final String OLD_VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getOldValue() Old Value}' attribute. - * - * - * @see #getOldValue() - * @generated - * @ordered - */ - protected String oldValue = OLD_VALUE_EDEFAULT; - - /** - * - * - * @generated - */ - protected AttributePropertyChangeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ATTRIBUTE_PROPERTY_CHANGE; - } - - /** - * - * - * @generated - */ - public String getNewValue() { - return newValue; - } - - /** - * - * - * @generated - */ - public void setNewValue(String newNewValue) { - String oldNewValue = newValue; - newValue = newNewValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ATTRIBUTE_PROPERTY_CHANGE__NEW_VALUE, oldNewValue, newValue)); - } - - /** - * - * - * @generated - */ - public String getOldValue() { - return oldValue; - } - - /** - * - * - * @generated - */ - public void setOldValue(String newOldValue) { - String oldOldValue = oldValue; - oldValue = newOldValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ATTRIBUTE_PROPERTY_CHANGE__OLD_VALUE, oldOldValue, oldValue)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_PROPERTY_CHANGE__NEW_VALUE: - return getNewValue(); - case ChangesPackage.ATTRIBUTE_PROPERTY_CHANGE__OLD_VALUE: - return getOldValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_PROPERTY_CHANGE__NEW_VALUE: - setNewValue((String)newValue); - return; - case ChangesPackage.ATTRIBUTE_PROPERTY_CHANGE__OLD_VALUE: - setOldValue((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_PROPERTY_CHANGE__NEW_VALUE: - setNewValue(NEW_VALUE_EDEFAULT); - return; - case ChangesPackage.ATTRIBUTE_PROPERTY_CHANGE__OLD_VALUE: - setOldValue(OLD_VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.ATTRIBUTE_PROPERTY_CHANGE__NEW_VALUE: - return NEW_VALUE_EDEFAULT == null ? newValue != null : !NEW_VALUE_EDEFAULT.equals(newValue); - case ChangesPackage.ATTRIBUTE_PROPERTY_CHANGE__OLD_VALUE: - return OLD_VALUE_EDEFAULT == null ? oldValue != null : !OLD_VALUE_EDEFAULT.equals(oldValue); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (newValue: "); - result.append(newValue); - result.append(", oldValue: "); - result.append(oldValue); - result.append(')'); - return result.toString(); - } - -} //AttributePropertyChangeImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/ChangeTransactionImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/ChangeTransactionImpl.java deleted file mode 100644 index bc3ed86..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/ChangeTransactionImpl.java +++ /dev/null @@ -1,219 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import java.util.Collection; - -import metamodels.Changes.ChangeTransaction; -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.ModelChange; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Change Transaction'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.ChangeTransactionImpl#getSourceChange Source Change}
  • - *
  • {@link metamodels.Changes.impl.ChangeTransactionImpl#getNestedChanges Nested Changes}
  • - *
- * - * @generated - */ -public class ChangeTransactionImpl extends ModelChangeImpl implements ChangeTransaction { - /** - * The cached value of the '{@link #getSourceChange() Source Change}' containment reference. - * - * - * @see #getSourceChange() - * @generated - * @ordered - */ - protected ModelChange sourceChange; - - /** - * The cached value of the '{@link #getNestedChanges() Nested Changes}' containment reference list. - * - * - * @see #getNestedChanges() - * @generated - * @ordered - */ - protected EList nestedChanges; - - /** - * - * - * @generated - */ - protected ChangeTransactionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.CHANGE_TRANSACTION; - } - - /** - * - * - * @generated - */ - public ModelChange getSourceChange() { - return sourceChange; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetSourceChange(ModelChange newSourceChange, NotificationChain msgs) { - ModelChange oldSourceChange = sourceChange; - sourceChange = newSourceChange; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ChangesPackage.CHANGE_TRANSACTION__SOURCE_CHANGE, oldSourceChange, newSourceChange); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setSourceChange(ModelChange newSourceChange) { - if (newSourceChange != sourceChange) { - NotificationChain msgs = null; - if (sourceChange != null) - msgs = ((InternalEObject)sourceChange).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ChangesPackage.CHANGE_TRANSACTION__SOURCE_CHANGE, null, msgs); - if (newSourceChange != null) - msgs = ((InternalEObject)newSourceChange).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ChangesPackage.CHANGE_TRANSACTION__SOURCE_CHANGE, null, msgs); - msgs = basicSetSourceChange(newSourceChange, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.CHANGE_TRANSACTION__SOURCE_CHANGE, newSourceChange, newSourceChange)); - } - - /** - * - * - * @generated - */ - public EList getNestedChanges() { - if (nestedChanges == null) { - nestedChanges = new EObjectContainmentEList(ModelChange.class, this, ChangesPackage.CHANGE_TRANSACTION__NESTED_CHANGES); - } - return nestedChanges; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ChangesPackage.CHANGE_TRANSACTION__SOURCE_CHANGE: - return basicSetSourceChange(null, msgs); - case ChangesPackage.CHANGE_TRANSACTION__NESTED_CHANGES: - return ((InternalEList)getNestedChanges()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.CHANGE_TRANSACTION__SOURCE_CHANGE: - return getSourceChange(); - case ChangesPackage.CHANGE_TRANSACTION__NESTED_CHANGES: - return getNestedChanges(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.CHANGE_TRANSACTION__SOURCE_CHANGE: - setSourceChange((ModelChange)newValue); - return; - case ChangesPackage.CHANGE_TRANSACTION__NESTED_CHANGES: - getNestedChanges().clear(); - getNestedChanges().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.CHANGE_TRANSACTION__SOURCE_CHANGE: - setSourceChange((ModelChange)null); - return; - case ChangesPackage.CHANGE_TRANSACTION__NESTED_CHANGES: - getNestedChanges().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.CHANGE_TRANSACTION__SOURCE_CHANGE: - return sourceChange != null; - case ChangesPackage.CHANGE_TRANSACTION__NESTED_CHANGES: - return nestedChanges != null && !nestedChanges.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //ChangeTransactionImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/ChangesFactoryImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/ChangesFactoryImpl.java deleted file mode 100644 index 0c748bc..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/ChangesFactoryImpl.java +++ /dev/null @@ -1,403 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.*; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.impl.EFactoryImpl; - -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class ChangesFactoryImpl extends EFactoryImpl implements ChangesFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static ChangesFactory init() { - try { - ChangesFactory theChangesFactory = (ChangesFactory)EPackage.Registry.INSTANCE.getEFactory(ChangesPackage.eNS_URI); - if (theChangesFactory != null) { - return theChangesFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new ChangesFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public ChangesFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case ChangesPackage.MODEL_CHANGE_SET: return createModelChangeSet(); - case ChangesPackage.CHANGE_TRANSACTION: return createChangeTransaction(); - case ChangesPackage.COMPOSITION_CHANGE: return createCompositionChange(); - case ChangesPackage.ASSOCIATION_CHANGE: return createAssociationChange(); - case ChangesPackage.ATTRIBUTE_CHANGE: return createAttributeChange(); - case ChangesPackage.ASSOCIATION_COLLECTION_DELETION: return createAssociationCollectionDeletion(); - case ChangesPackage.COMPOSITION_COLLECTION_DELETION: return createCompositionCollectionDeletion(); - case ChangesPackage.ATTRIBUTE_COLLECTION_DELETION: return createAttributeCollectionDeletion(); - case ChangesPackage.ASSOCIATION_COLLECTION_INSERTION: return createAssociationCollectionInsertion(); - case ChangesPackage.COMPOSITION_COLLECTION_INSERTION: return createCompositionCollectionInsertion(); - case ChangesPackage.ATTRIBUTE_COLLECTION_INSERTION: return createAttributeCollectionInsertion(); - case ChangesPackage.ASSOCIATION_COLLECTION_RESET: return createAssociationCollectionReset(); - case ChangesPackage.COMPOSITION_COLLECTION_RESET: return createCompositionCollectionReset(); - case ChangesPackage.ATTRIBUTE_COLLECTION_RESET: return createAttributeCollectionReset(); - case ChangesPackage.ASSOCIATION_LIST_DELETION: return createAssociationListDeletion(); - case ChangesPackage.COMPOSITION_LIST_DELETION: return createCompositionListDeletion(); - case ChangesPackage.ATTRIBUTE_LIST_DELETION: return createAttributeListDeletion(); - case ChangesPackage.ASSOCIATION_LIST_INSERTION: return createAssociationListInsertion(); - case ChangesPackage.COMPOSITION_LIST_INSERTION: return createCompositionListInsertion(); - case ChangesPackage.ATTRIBUTE_LIST_INSERTION: return createAttributeListInsertion(); - case ChangesPackage.ATTRIBUTE_PROPERTY_CHANGE: return createAttributePropertyChange(); - case ChangesPackage.ASSOCIATION_PROPERTY_CHANGE: return createAssociationPropertyChange(); - case ChangesPackage.COMPOSITION_PROPERTY_CHANGE: return createCompositionPropertyChange(); - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY: return createCompositionMoveIntoProperty(); - case ChangesPackage.COMPOSITION_MOVE_TO_LIST: return createCompositionMoveToList(); - case ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION: return createCompositionMoveToCollection(); - case ChangesPackage.OPERATION_CALL: return createOperationCall(); - case ChangesPackage.VALUE_ARGUMENT: return createValueArgument(); - case ChangesPackage.REFERENCE_ARGUMENT: return createReferenceArgument(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public ModelChangeSet createModelChangeSet() { - ModelChangeSetImpl modelChangeSet = new ModelChangeSetImpl(); - return modelChangeSet; - } - - /** - * - * - * @generated - */ - public ChangeTransaction createChangeTransaction() { - ChangeTransactionImpl changeTransaction = new ChangeTransactionImpl(); - return changeTransaction; - } - - /** - * - * - * @generated - */ - public CompositionChange createCompositionChange() { - CompositionChangeImpl compositionChange = new CompositionChangeImpl(); - return compositionChange; - } - - /** - * - * - * @generated - */ - public AssociationChange createAssociationChange() { - AssociationChangeImpl associationChange = new AssociationChangeImpl(); - return associationChange; - } - - /** - * - * - * @generated - */ - public AttributeChange createAttributeChange() { - AttributeChangeImpl attributeChange = new AttributeChangeImpl(); - return attributeChange; - } - - /** - * - * - * @generated - */ - public AssociationCollectionDeletion createAssociationCollectionDeletion() { - AssociationCollectionDeletionImpl associationCollectionDeletion = new AssociationCollectionDeletionImpl(); - return associationCollectionDeletion; - } - - /** - * - * - * @generated - */ - public CompositionCollectionDeletion createCompositionCollectionDeletion() { - CompositionCollectionDeletionImpl compositionCollectionDeletion = new CompositionCollectionDeletionImpl(); - return compositionCollectionDeletion; - } - - /** - * - * - * @generated - */ - public AttributeCollectionDeletion createAttributeCollectionDeletion() { - AttributeCollectionDeletionImpl attributeCollectionDeletion = new AttributeCollectionDeletionImpl(); - return attributeCollectionDeletion; - } - - /** - * - * - * @generated - */ - public AssociationCollectionInsertion createAssociationCollectionInsertion() { - AssociationCollectionInsertionImpl associationCollectionInsertion = new AssociationCollectionInsertionImpl(); - return associationCollectionInsertion; - } - - /** - * - * - * @generated - */ - public CompositionCollectionInsertion createCompositionCollectionInsertion() { - CompositionCollectionInsertionImpl compositionCollectionInsertion = new CompositionCollectionInsertionImpl(); - return compositionCollectionInsertion; - } - - /** - * - * - * @generated - */ - public AttributeCollectionInsertion createAttributeCollectionInsertion() { - AttributeCollectionInsertionImpl attributeCollectionInsertion = new AttributeCollectionInsertionImpl(); - return attributeCollectionInsertion; - } - - /** - * - * - * @generated - */ - public AssociationCollectionReset createAssociationCollectionReset() { - AssociationCollectionResetImpl associationCollectionReset = new AssociationCollectionResetImpl(); - return associationCollectionReset; - } - - /** - * - * - * @generated - */ - public CompositionCollectionReset createCompositionCollectionReset() { - CompositionCollectionResetImpl compositionCollectionReset = new CompositionCollectionResetImpl(); - return compositionCollectionReset; - } - - /** - * - * - * @generated - */ - public AttributeCollectionReset createAttributeCollectionReset() { - AttributeCollectionResetImpl attributeCollectionReset = new AttributeCollectionResetImpl(); - return attributeCollectionReset; - } - - /** - * - * - * @generated - */ - public AssociationListDeletion createAssociationListDeletion() { - AssociationListDeletionImpl associationListDeletion = new AssociationListDeletionImpl(); - return associationListDeletion; - } - - /** - * - * - * @generated - */ - public CompositionListDeletion createCompositionListDeletion() { - CompositionListDeletionImpl compositionListDeletion = new CompositionListDeletionImpl(); - return compositionListDeletion; - } - - /** - * - * - * @generated - */ - public AttributeListDeletion createAttributeListDeletion() { - AttributeListDeletionImpl attributeListDeletion = new AttributeListDeletionImpl(); - return attributeListDeletion; - } - - /** - * - * - * @generated - */ - public AssociationListInsertion createAssociationListInsertion() { - AssociationListInsertionImpl associationListInsertion = new AssociationListInsertionImpl(); - return associationListInsertion; - } - - /** - * - * - * @generated - */ - public CompositionListInsertion createCompositionListInsertion() { - CompositionListInsertionImpl compositionListInsertion = new CompositionListInsertionImpl(); - return compositionListInsertion; - } - - /** - * - * - * @generated - */ - public AttributeListInsertion createAttributeListInsertion() { - AttributeListInsertionImpl attributeListInsertion = new AttributeListInsertionImpl(); - return attributeListInsertion; - } - - /** - * - * - * @generated - */ - public AttributePropertyChange createAttributePropertyChange() { - AttributePropertyChangeImpl attributePropertyChange = new AttributePropertyChangeImpl(); - return attributePropertyChange; - } - - /** - * - * - * @generated - */ - public AssociationPropertyChange createAssociationPropertyChange() { - AssociationPropertyChangeImpl associationPropertyChange = new AssociationPropertyChangeImpl(); - return associationPropertyChange; - } - - /** - * - * - * @generated - */ - public CompositionPropertyChange createCompositionPropertyChange() { - CompositionPropertyChangeImpl compositionPropertyChange = new CompositionPropertyChangeImpl(); - return compositionPropertyChange; - } - - /** - * - * - * @generated - */ - public CompositionMoveIntoProperty createCompositionMoveIntoProperty() { - CompositionMoveIntoPropertyImpl compositionMoveIntoProperty = new CompositionMoveIntoPropertyImpl(); - return compositionMoveIntoProperty; - } - - /** - * - * - * @generated - */ - public CompositionMoveToList createCompositionMoveToList() { - CompositionMoveToListImpl compositionMoveToList = new CompositionMoveToListImpl(); - return compositionMoveToList; - } - - /** - * - * - * @generated - */ - public CompositionMoveToCollection createCompositionMoveToCollection() { - CompositionMoveToCollectionImpl compositionMoveToCollection = new CompositionMoveToCollectionImpl(); - return compositionMoveToCollection; - } - - /** - * - * - * @generated - */ - public OperationCall createOperationCall() { - OperationCallImpl operationCall = new OperationCallImpl(); - return operationCall; - } - - /** - * - * - * @generated - */ - public ValueArgument createValueArgument() { - ValueArgumentImpl valueArgument = new ValueArgumentImpl(); - return valueArgument; - } - - /** - * - * - * @generated - */ - public ReferenceArgument createReferenceArgument() { - ReferenceArgumentImpl referenceArgument = new ReferenceArgumentImpl(); - return referenceArgument; - } - - /** - * - * - * @generated - */ - public ChangesPackage getChangesPackage() { - return (ChangesPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static ChangesPackage getPackage() { - return ChangesPackage.eINSTANCE; - } - -} //ChangesFactoryImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/ChangesPackageImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/ChangesPackageImpl.java deleted file mode 100644 index 07ad099..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/ChangesPackageImpl.java +++ /dev/null @@ -1,1318 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.AssociationChange; -import metamodels.Changes.AssociationCollectionDeletion; -import metamodels.Changes.AssociationCollectionInsertion; -import metamodels.Changes.AssociationCollectionReset; -import metamodels.Changes.AssociationListDeletion; -import metamodels.Changes.AssociationListInsertion; -import metamodels.Changes.AssociationPropertyChange; -import metamodels.Changes.AttributeChange; -import metamodels.Changes.AttributeCollectionDeletion; -import metamodels.Changes.AttributeCollectionInsertion; -import metamodels.Changes.AttributeCollectionReset; -import metamodels.Changes.AttributeListDeletion; -import metamodels.Changes.AttributeListInsertion; -import metamodels.Changes.AttributePropertyChange; -import metamodels.Changes.ChangeTransaction; -import metamodels.Changes.ChangesFactory; -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.CompositionChange; -import metamodels.Changes.CompositionCollectionDeletion; -import metamodels.Changes.CompositionCollectionInsertion; -import metamodels.Changes.CompositionCollectionReset; -import metamodels.Changes.CompositionListDeletion; -import metamodels.Changes.CompositionListInsertion; -import metamodels.Changes.CompositionMoveIntoProperty; -import metamodels.Changes.CompositionMoveToCollection; -import metamodels.Changes.CompositionMoveToList; -import metamodels.Changes.CompositionPropertyChange; -import metamodels.Changes.ElementaryChange; -import metamodels.Changes.ModelChange; -import metamodels.Changes.ModelChangeSet; -import metamodels.Changes.OperationArgument; -import metamodels.Changes.OperationCall; -import metamodels.Changes.ReferenceArgument; -import metamodels.Changes.ValueArgument; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class ChangesPackageImpl extends EPackageImpl implements ChangesPackage { - /** - * - * - * @generated - */ - private EClass modelChangeSetEClass = null; - - /** - * - * - * @generated - */ - private EClass modelChangeEClass = null; - - /** - * - * - * @generated - */ - private EClass elementaryChangeEClass = null; - - /** - * - * - * @generated - */ - private EClass changeTransactionEClass = null; - - /** - * - * - * @generated - */ - private EClass compositionChangeEClass = null; - - /** - * - * - * @generated - */ - private EClass associationChangeEClass = null; - - /** - * - * - * @generated - */ - private EClass attributeChangeEClass = null; - - /** - * - * - * @generated - */ - private EClass associationCollectionDeletionEClass = null; - - /** - * - * - * @generated - */ - private EClass compositionCollectionDeletionEClass = null; - - /** - * - * - * @generated - */ - private EClass attributeCollectionDeletionEClass = null; - - /** - * - * - * @generated - */ - private EClass associationCollectionInsertionEClass = null; - - /** - * - * - * @generated - */ - private EClass compositionCollectionInsertionEClass = null; - - /** - * - * - * @generated - */ - private EClass attributeCollectionInsertionEClass = null; - - /** - * - * - * @generated - */ - private EClass associationCollectionResetEClass = null; - - /** - * - * - * @generated - */ - private EClass compositionCollectionResetEClass = null; - - /** - * - * - * @generated - */ - private EClass attributeCollectionResetEClass = null; - - /** - * - * - * @generated - */ - private EClass associationListDeletionEClass = null; - - /** - * - * - * @generated - */ - private EClass compositionListDeletionEClass = null; - - /** - * - * - * @generated - */ - private EClass attributeListDeletionEClass = null; - - /** - * - * - * @generated - */ - private EClass associationListInsertionEClass = null; - - /** - * - * - * @generated - */ - private EClass compositionListInsertionEClass = null; - - /** - * - * - * @generated - */ - private EClass attributeListInsertionEClass = null; - - /** - * - * - * @generated - */ - private EClass attributePropertyChangeEClass = null; - - /** - * - * - * @generated - */ - private EClass associationPropertyChangeEClass = null; - - /** - * - * - * @generated - */ - private EClass compositionPropertyChangeEClass = null; - - /** - * - * - * @generated - */ - private EClass compositionMoveIntoPropertyEClass = null; - - /** - * - * - * @generated - */ - private EClass compositionMoveToListEClass = null; - - /** - * - * - * @generated - */ - private EClass compositionMoveToCollectionEClass = null; - - /** - * - * - * @generated - */ - private EClass operationCallEClass = null; - - /** - * - * - * @generated - */ - private EClass operationArgumentEClass = null; - - /** - * - * - * @generated - */ - private EClass valueArgumentEClass = null; - - /** - * - * - * @generated - */ - private EClass referenceArgumentEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see metamodels.Changes.ChangesPackage#eNS_URI - * @see #init() - * @generated - */ - private ChangesPackageImpl() { - super(eNS_URI, ChangesFactory.eINSTANCE); - } - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link ChangesPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static ChangesPackage init() { - if (isInited) return (ChangesPackage)EPackage.Registry.INSTANCE.getEPackage(ChangesPackage.eNS_URI); - - // Obtain or create and register package - Object registeredChangesPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - ChangesPackageImpl theChangesPackage = registeredChangesPackage instanceof ChangesPackageImpl ? (ChangesPackageImpl)registeredChangesPackage : new ChangesPackageImpl(); - - isInited = true; - - // Create package meta-data objects - theChangesPackage.createPackageContents(); - - // Initialize created meta-data - theChangesPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theChangesPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(ChangesPackage.eNS_URI, theChangesPackage); - return theChangesPackage; - } - - /** - * - * - * @generated - */ - public EClass getModelChangeSet() { - return modelChangeSetEClass; - } - - /** - * - * - * @generated - */ - public EReference getModelChangeSet_Changes() { - return (EReference)modelChangeSetEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getModelChange() { - return modelChangeEClass; - } - - /** - * - * - * @generated - */ - public EClass getElementaryChange() { - return elementaryChangeEClass; - } - - /** - * - * - * @generated - */ - public EReference getElementaryChange_AffectedElement() { - return (EReference)elementaryChangeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getElementaryChange_Feature() { - return (EReference)elementaryChangeEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getChangeTransaction() { - return changeTransactionEClass; - } - - /** - * - * - * @generated - */ - public EReference getChangeTransaction_SourceChange() { - return (EReference)changeTransactionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getChangeTransaction_NestedChanges() { - return (EReference)changeTransactionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getCompositionChange() { - return compositionChangeEClass; - } - - /** - * - * - * @generated - */ - public EClass getAssociationChange() { - return associationChangeEClass; - } - - /** - * - * - * @generated - */ - public EClass getAttributeChange() { - return attributeChangeEClass; - } - - /** - * - * - * @generated - */ - public EClass getAssociationCollectionDeletion() { - return associationCollectionDeletionEClass; - } - - /** - * - * - * @generated - */ - public EReference getAssociationCollectionDeletion_DeletedElement() { - return (EReference)associationCollectionDeletionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getCompositionCollectionDeletion() { - return compositionCollectionDeletionEClass; - } - - /** - * - * - * @generated - */ - public EReference getCompositionCollectionDeletion_DeletedElement() { - return (EReference)compositionCollectionDeletionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getAttributeCollectionDeletion() { - return attributeCollectionDeletionEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getAttributeCollectionDeletion_DeletedValue() { - return (EAttribute)attributeCollectionDeletionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getAssociationCollectionInsertion() { - return associationCollectionInsertionEClass; - } - - /** - * - * - * @generated - */ - public EReference getAssociationCollectionInsertion_AddedElement() { - return (EReference)associationCollectionInsertionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getCompositionCollectionInsertion() { - return compositionCollectionInsertionEClass; - } - - /** - * - * - * @generated - */ - public EReference getCompositionCollectionInsertion_AddedElement() { - return (EReference)compositionCollectionInsertionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getAttributeCollectionInsertion() { - return attributeCollectionInsertionEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getAttributeCollectionInsertion_AddedValue() { - return (EAttribute)attributeCollectionInsertionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getAssociationCollectionReset() { - return associationCollectionResetEClass; - } - - /** - * - * - * @generated - */ - public EClass getCompositionCollectionReset() { - return compositionCollectionResetEClass; - } - - /** - * - * - * @generated - */ - public EClass getAttributeCollectionReset() { - return attributeCollectionResetEClass; - } - - /** - * - * - * @generated - */ - public EClass getAssociationListDeletion() { - return associationListDeletionEClass; - } - - /** - * - * - * @generated - */ - public EReference getAssociationListDeletion_DeletedElement() { - return (EReference)associationListDeletionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getAssociationListDeletion_Index() { - return (EAttribute)associationListDeletionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getCompositionListDeletion() { - return compositionListDeletionEClass; - } - - /** - * - * - * @generated - */ - public EReference getCompositionListDeletion_DeletedElement() { - return (EReference)compositionListDeletionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getCompositionListDeletion_Index() { - return (EAttribute)compositionListDeletionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getAttributeListDeletion() { - return attributeListDeletionEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getAttributeListDeletion_DeletedValue() { - return (EAttribute)attributeListDeletionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getAttributeListDeletion_Index() { - return (EAttribute)attributeListDeletionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getAssociationListInsertion() { - return associationListInsertionEClass; - } - - /** - * - * - * @generated - */ - public EReference getAssociationListInsertion_AddedElement() { - return (EReference)associationListInsertionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getAssociationListInsertion_Index() { - return (EAttribute)associationListInsertionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getCompositionListInsertion() { - return compositionListInsertionEClass; - } - - /** - * - * - * @generated - */ - public EReference getCompositionListInsertion_AddedElement() { - return (EReference)compositionListInsertionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getCompositionListInsertion_Index() { - return (EAttribute)compositionListInsertionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getAttributeListInsertion() { - return attributeListInsertionEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getAttributeListInsertion_AddedValue() { - return (EAttribute)attributeListInsertionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getAttributeListInsertion_Index() { - return (EAttribute)attributeListInsertionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getAttributePropertyChange() { - return attributePropertyChangeEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getAttributePropertyChange_NewValue() { - return (EAttribute)attributePropertyChangeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getAttributePropertyChange_OldValue() { - return (EAttribute)attributePropertyChangeEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getAssociationPropertyChange() { - return associationPropertyChangeEClass; - } - - /** - * - * - * @generated - */ - public EReference getAssociationPropertyChange_NewValue() { - return (EReference)associationPropertyChangeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getAssociationPropertyChange_OldValue() { - return (EReference)associationPropertyChangeEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getCompositionPropertyChange() { - return compositionPropertyChangeEClass; - } - - /** - * - * - * @generated - */ - public EReference getCompositionPropertyChange_NewValue() { - return (EReference)compositionPropertyChangeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getCompositionPropertyChange_OldValue() { - return (EReference)compositionPropertyChangeEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getCompositionMoveIntoProperty() { - return compositionMoveIntoPropertyEClass; - } - - /** - * - * - * @generated - */ - public EReference getCompositionMoveIntoProperty_NewValue() { - return (EReference)compositionMoveIntoPropertyEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getCompositionMoveIntoProperty_OldValue() { - return (EReference)compositionMoveIntoPropertyEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getCompositionMoveIntoProperty_Origin() { - return (EReference)compositionMoveIntoPropertyEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getCompositionMoveToList() { - return compositionMoveToListEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getCompositionMoveToList_Index() { - return (EAttribute)compositionMoveToListEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getCompositionMoveToList_MovedElement() { - return (EReference)compositionMoveToListEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getCompositionMoveToList_Origin() { - return (EReference)compositionMoveToListEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getCompositionMoveToCollection() { - return compositionMoveToCollectionEClass; - } - - /** - * - * - * @generated - */ - public EReference getCompositionMoveToCollection_MovedElement() { - return (EReference)compositionMoveToCollectionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getCompositionMoveToCollection_Origin() { - return (EReference)compositionMoveToCollectionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getOperationCall() { - return operationCallEClass; - } - - /** - * - * - * @generated - */ - public EReference getOperationCall_Operation() { - return (EReference)operationCallEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getOperationCall_TargetElement() { - return (EReference)operationCallEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getOperationCall_Arguments() { - return (EReference)operationCallEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getOperationArgument() { - return operationArgumentEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getOperationArgument_Name() { - return (EAttribute)operationArgumentEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getValueArgument() { - return valueArgumentEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getValueArgument_Value() { - return (EAttribute)valueArgumentEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getReferenceArgument() { - return referenceArgumentEClass; - } - - /** - * - * - * @generated - */ - public EReference getReferenceArgument_Value() { - return (EReference)referenceArgumentEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public ChangesFactory getChangesFactory() { - return (ChangesFactory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - modelChangeSetEClass = createEClass(MODEL_CHANGE_SET); - createEReference(modelChangeSetEClass, MODEL_CHANGE_SET__CHANGES); - - modelChangeEClass = createEClass(MODEL_CHANGE); - - elementaryChangeEClass = createEClass(ELEMENTARY_CHANGE); - createEReference(elementaryChangeEClass, ELEMENTARY_CHANGE__AFFECTED_ELEMENT); - createEReference(elementaryChangeEClass, ELEMENTARY_CHANGE__FEATURE); - - changeTransactionEClass = createEClass(CHANGE_TRANSACTION); - createEReference(changeTransactionEClass, CHANGE_TRANSACTION__SOURCE_CHANGE); - createEReference(changeTransactionEClass, CHANGE_TRANSACTION__NESTED_CHANGES); - - compositionChangeEClass = createEClass(COMPOSITION_CHANGE); - - associationChangeEClass = createEClass(ASSOCIATION_CHANGE); - - attributeChangeEClass = createEClass(ATTRIBUTE_CHANGE); - - associationCollectionDeletionEClass = createEClass(ASSOCIATION_COLLECTION_DELETION); - createEReference(associationCollectionDeletionEClass, ASSOCIATION_COLLECTION_DELETION__DELETED_ELEMENT); - - compositionCollectionDeletionEClass = createEClass(COMPOSITION_COLLECTION_DELETION); - createEReference(compositionCollectionDeletionEClass, COMPOSITION_COLLECTION_DELETION__DELETED_ELEMENT); - - attributeCollectionDeletionEClass = createEClass(ATTRIBUTE_COLLECTION_DELETION); - createEAttribute(attributeCollectionDeletionEClass, ATTRIBUTE_COLLECTION_DELETION__DELETED_VALUE); - - associationCollectionInsertionEClass = createEClass(ASSOCIATION_COLLECTION_INSERTION); - createEReference(associationCollectionInsertionEClass, ASSOCIATION_COLLECTION_INSERTION__ADDED_ELEMENT); - - compositionCollectionInsertionEClass = createEClass(COMPOSITION_COLLECTION_INSERTION); - createEReference(compositionCollectionInsertionEClass, COMPOSITION_COLLECTION_INSERTION__ADDED_ELEMENT); - - attributeCollectionInsertionEClass = createEClass(ATTRIBUTE_COLLECTION_INSERTION); - createEAttribute(attributeCollectionInsertionEClass, ATTRIBUTE_COLLECTION_INSERTION__ADDED_VALUE); - - associationCollectionResetEClass = createEClass(ASSOCIATION_COLLECTION_RESET); - - compositionCollectionResetEClass = createEClass(COMPOSITION_COLLECTION_RESET); - - attributeCollectionResetEClass = createEClass(ATTRIBUTE_COLLECTION_RESET); - - associationListDeletionEClass = createEClass(ASSOCIATION_LIST_DELETION); - createEReference(associationListDeletionEClass, ASSOCIATION_LIST_DELETION__DELETED_ELEMENT); - createEAttribute(associationListDeletionEClass, ASSOCIATION_LIST_DELETION__INDEX); - - compositionListDeletionEClass = createEClass(COMPOSITION_LIST_DELETION); - createEReference(compositionListDeletionEClass, COMPOSITION_LIST_DELETION__DELETED_ELEMENT); - createEAttribute(compositionListDeletionEClass, COMPOSITION_LIST_DELETION__INDEX); - - attributeListDeletionEClass = createEClass(ATTRIBUTE_LIST_DELETION); - createEAttribute(attributeListDeletionEClass, ATTRIBUTE_LIST_DELETION__DELETED_VALUE); - createEAttribute(attributeListDeletionEClass, ATTRIBUTE_LIST_DELETION__INDEX); - - associationListInsertionEClass = createEClass(ASSOCIATION_LIST_INSERTION); - createEReference(associationListInsertionEClass, ASSOCIATION_LIST_INSERTION__ADDED_ELEMENT); - createEAttribute(associationListInsertionEClass, ASSOCIATION_LIST_INSERTION__INDEX); - - compositionListInsertionEClass = createEClass(COMPOSITION_LIST_INSERTION); - createEReference(compositionListInsertionEClass, COMPOSITION_LIST_INSERTION__ADDED_ELEMENT); - createEAttribute(compositionListInsertionEClass, COMPOSITION_LIST_INSERTION__INDEX); - - attributeListInsertionEClass = createEClass(ATTRIBUTE_LIST_INSERTION); - createEAttribute(attributeListInsertionEClass, ATTRIBUTE_LIST_INSERTION__ADDED_VALUE); - createEAttribute(attributeListInsertionEClass, ATTRIBUTE_LIST_INSERTION__INDEX); - - attributePropertyChangeEClass = createEClass(ATTRIBUTE_PROPERTY_CHANGE); - createEAttribute(attributePropertyChangeEClass, ATTRIBUTE_PROPERTY_CHANGE__NEW_VALUE); - createEAttribute(attributePropertyChangeEClass, ATTRIBUTE_PROPERTY_CHANGE__OLD_VALUE); - - associationPropertyChangeEClass = createEClass(ASSOCIATION_PROPERTY_CHANGE); - createEReference(associationPropertyChangeEClass, ASSOCIATION_PROPERTY_CHANGE__NEW_VALUE); - createEReference(associationPropertyChangeEClass, ASSOCIATION_PROPERTY_CHANGE__OLD_VALUE); - - compositionPropertyChangeEClass = createEClass(COMPOSITION_PROPERTY_CHANGE); - createEReference(compositionPropertyChangeEClass, COMPOSITION_PROPERTY_CHANGE__NEW_VALUE); - createEReference(compositionPropertyChangeEClass, COMPOSITION_PROPERTY_CHANGE__OLD_VALUE); - - compositionMoveIntoPropertyEClass = createEClass(COMPOSITION_MOVE_INTO_PROPERTY); - createEReference(compositionMoveIntoPropertyEClass, COMPOSITION_MOVE_INTO_PROPERTY__NEW_VALUE); - createEReference(compositionMoveIntoPropertyEClass, COMPOSITION_MOVE_INTO_PROPERTY__OLD_VALUE); - createEReference(compositionMoveIntoPropertyEClass, COMPOSITION_MOVE_INTO_PROPERTY__ORIGIN); - - compositionMoveToListEClass = createEClass(COMPOSITION_MOVE_TO_LIST); - createEAttribute(compositionMoveToListEClass, COMPOSITION_MOVE_TO_LIST__INDEX); - createEReference(compositionMoveToListEClass, COMPOSITION_MOVE_TO_LIST__MOVED_ELEMENT); - createEReference(compositionMoveToListEClass, COMPOSITION_MOVE_TO_LIST__ORIGIN); - - compositionMoveToCollectionEClass = createEClass(COMPOSITION_MOVE_TO_COLLECTION); - createEReference(compositionMoveToCollectionEClass, COMPOSITION_MOVE_TO_COLLECTION__MOVED_ELEMENT); - createEReference(compositionMoveToCollectionEClass, COMPOSITION_MOVE_TO_COLLECTION__ORIGIN); - - operationCallEClass = createEClass(OPERATION_CALL); - createEReference(operationCallEClass, OPERATION_CALL__OPERATION); - createEReference(operationCallEClass, OPERATION_CALL__TARGET_ELEMENT); - createEReference(operationCallEClass, OPERATION_CALL__ARGUMENTS); - - operationArgumentEClass = createEClass(OPERATION_ARGUMENT); - createEAttribute(operationArgumentEClass, OPERATION_ARGUMENT__NAME); - - valueArgumentEClass = createEClass(VALUE_ARGUMENT); - createEAttribute(valueArgumentEClass, VALUE_ARGUMENT__VALUE); - - referenceArgumentEClass = createEClass(REFERENCE_ARGUMENT); - createEReference(referenceArgumentEClass, REFERENCE_ARGUMENT__VALUE); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - elementaryChangeEClass.getESuperTypes().add(this.getModelChange()); - changeTransactionEClass.getESuperTypes().add(this.getModelChange()); - compositionChangeEClass.getESuperTypes().add(this.getElementaryChange()); - associationChangeEClass.getESuperTypes().add(this.getElementaryChange()); - attributeChangeEClass.getESuperTypes().add(this.getElementaryChange()); - associationCollectionDeletionEClass.getESuperTypes().add(this.getAssociationChange()); - compositionCollectionDeletionEClass.getESuperTypes().add(this.getCompositionChange()); - attributeCollectionDeletionEClass.getESuperTypes().add(this.getAttributeChange()); - associationCollectionInsertionEClass.getESuperTypes().add(this.getAssociationChange()); - compositionCollectionInsertionEClass.getESuperTypes().add(this.getCompositionChange()); - attributeCollectionInsertionEClass.getESuperTypes().add(this.getAttributeChange()); - associationCollectionResetEClass.getESuperTypes().add(this.getAssociationChange()); - compositionCollectionResetEClass.getESuperTypes().add(this.getCompositionChange()); - attributeCollectionResetEClass.getESuperTypes().add(this.getAttributeChange()); - associationListDeletionEClass.getESuperTypes().add(this.getAssociationChange()); - compositionListDeletionEClass.getESuperTypes().add(this.getCompositionChange()); - attributeListDeletionEClass.getESuperTypes().add(this.getAttributeChange()); - associationListInsertionEClass.getESuperTypes().add(this.getAssociationChange()); - compositionListInsertionEClass.getESuperTypes().add(this.getCompositionChange()); - attributeListInsertionEClass.getESuperTypes().add(this.getAttributeChange()); - attributePropertyChangeEClass.getESuperTypes().add(this.getAttributeChange()); - associationPropertyChangeEClass.getESuperTypes().add(this.getAssociationChange()); - compositionPropertyChangeEClass.getESuperTypes().add(this.getCompositionChange()); - compositionMoveIntoPropertyEClass.getESuperTypes().add(this.getCompositionChange()); - compositionMoveToListEClass.getESuperTypes().add(this.getCompositionChange()); - operationCallEClass.getESuperTypes().add(this.getModelChange()); - valueArgumentEClass.getESuperTypes().add(this.getOperationArgument()); - referenceArgumentEClass.getESuperTypes().add(this.getOperationArgument()); - - // Initialize classes, features, and operations; add parameters - initEClass(modelChangeSetEClass, ModelChangeSet.class, "ModelChangeSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getModelChangeSet_Changes(), this.getModelChange(), null, "changes", null, 0, -1, ModelChangeSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(modelChangeEClass, ModelChange.class, "ModelChange", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(elementaryChangeEClass, ElementaryChange.class, "ElementaryChange", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getElementaryChange_AffectedElement(), ecorePackage.getEObject(), null, "affectedElement", null, 1, 1, ElementaryChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getElementaryChange_Feature(), ecorePackage.getEStructuralFeature(), null, "feature", null, 1, 1, ElementaryChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(changeTransactionEClass, ChangeTransaction.class, "ChangeTransaction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getChangeTransaction_SourceChange(), this.getModelChange(), null, "sourceChange", null, 1, 1, ChangeTransaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getChangeTransaction_NestedChanges(), this.getModelChange(), null, "nestedChanges", null, 0, -1, ChangeTransaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(compositionChangeEClass, CompositionChange.class, "CompositionChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(associationChangeEClass, AssociationChange.class, "AssociationChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(attributeChangeEClass, AttributeChange.class, "AttributeChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(associationCollectionDeletionEClass, AssociationCollectionDeletion.class, "AssociationCollectionDeletion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getAssociationCollectionDeletion_DeletedElement(), ecorePackage.getEObject(), null, "deletedElement", null, 1, 1, AssociationCollectionDeletion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(compositionCollectionDeletionEClass, CompositionCollectionDeletion.class, "CompositionCollectionDeletion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCompositionCollectionDeletion_DeletedElement(), ecorePackage.getEObject(), null, "deletedElement", null, 0, 1, CompositionCollectionDeletion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(attributeCollectionDeletionEClass, AttributeCollectionDeletion.class, "AttributeCollectionDeletion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAttributeCollectionDeletion_DeletedValue(), ecorePackage.getEString(), "deletedValue", null, 1, 1, AttributeCollectionDeletion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(associationCollectionInsertionEClass, AssociationCollectionInsertion.class, "AssociationCollectionInsertion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getAssociationCollectionInsertion_AddedElement(), ecorePackage.getEObject(), null, "addedElement", null, 1, 1, AssociationCollectionInsertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(compositionCollectionInsertionEClass, CompositionCollectionInsertion.class, "CompositionCollectionInsertion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCompositionCollectionInsertion_AddedElement(), ecorePackage.getEObject(), null, "addedElement", null, 1, 1, CompositionCollectionInsertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(attributeCollectionInsertionEClass, AttributeCollectionInsertion.class, "AttributeCollectionInsertion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAttributeCollectionInsertion_AddedValue(), ecorePackage.getEString(), "addedValue", null, 1, 1, AttributeCollectionInsertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(associationCollectionResetEClass, AssociationCollectionReset.class, "AssociationCollectionReset", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(compositionCollectionResetEClass, CompositionCollectionReset.class, "CompositionCollectionReset", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(attributeCollectionResetEClass, AttributeCollectionReset.class, "AttributeCollectionReset", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(associationListDeletionEClass, AssociationListDeletion.class, "AssociationListDeletion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getAssociationListDeletion_DeletedElement(), ecorePackage.getEObject(), null, "deletedElement", null, 0, 1, AssociationListDeletion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAssociationListDeletion_Index(), ecorePackage.getEInt(), "index", null, 1, 1, AssociationListDeletion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(compositionListDeletionEClass, CompositionListDeletion.class, "CompositionListDeletion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCompositionListDeletion_DeletedElement(), ecorePackage.getEObject(), null, "deletedElement", null, 0, 1, CompositionListDeletion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCompositionListDeletion_Index(), ecorePackage.getEInt(), "index", null, 1, 1, CompositionListDeletion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(attributeListDeletionEClass, AttributeListDeletion.class, "AttributeListDeletion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAttributeListDeletion_DeletedValue(), ecorePackage.getEString(), "deletedValue", null, 0, 1, AttributeListDeletion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAttributeListDeletion_Index(), ecorePackage.getEInt(), "index", null, 1, 1, AttributeListDeletion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(associationListInsertionEClass, AssociationListInsertion.class, "AssociationListInsertion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getAssociationListInsertion_AddedElement(), ecorePackage.getEObject(), null, "addedElement", null, 1, 1, AssociationListInsertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAssociationListInsertion_Index(), ecorePackage.getEInt(), "index", null, 1, 1, AssociationListInsertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(compositionListInsertionEClass, CompositionListInsertion.class, "CompositionListInsertion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCompositionListInsertion_AddedElement(), ecorePackage.getEObject(), null, "addedElement", null, 1, 1, CompositionListInsertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCompositionListInsertion_Index(), ecorePackage.getEInt(), "index", null, 1, 1, CompositionListInsertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(attributeListInsertionEClass, AttributeListInsertion.class, "AttributeListInsertion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAttributeListInsertion_AddedValue(), ecorePackage.getEString(), "addedValue", null, 1, 1, AttributeListInsertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAttributeListInsertion_Index(), ecorePackage.getEInt(), "index", null, 1, 1, AttributeListInsertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(attributePropertyChangeEClass, AttributePropertyChange.class, "AttributePropertyChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAttributePropertyChange_NewValue(), ecorePackage.getEString(), "newValue", null, 0, 1, AttributePropertyChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAttributePropertyChange_OldValue(), ecorePackage.getEString(), "oldValue", null, 0, 1, AttributePropertyChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(associationPropertyChangeEClass, AssociationPropertyChange.class, "AssociationPropertyChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getAssociationPropertyChange_NewValue(), ecorePackage.getEObject(), null, "newValue", null, 0, 1, AssociationPropertyChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getAssociationPropertyChange_OldValue(), ecorePackage.getEObject(), null, "oldValue", null, 0, 1, AssociationPropertyChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(compositionPropertyChangeEClass, CompositionPropertyChange.class, "CompositionPropertyChange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCompositionPropertyChange_NewValue(), ecorePackage.getEObject(), null, "newValue", null, 0, 1, CompositionPropertyChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getCompositionPropertyChange_OldValue(), ecorePackage.getEObject(), null, "oldValue", null, 0, 1, CompositionPropertyChange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(compositionMoveIntoPropertyEClass, CompositionMoveIntoProperty.class, "CompositionMoveIntoProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCompositionMoveIntoProperty_NewValue(), ecorePackage.getEObject(), null, "newValue", null, 1, 1, CompositionMoveIntoProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getCompositionMoveIntoProperty_OldValue(), ecorePackage.getEObject(), null, "oldValue", null, 0, 1, CompositionMoveIntoProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getCompositionMoveIntoProperty_Origin(), this.getElementaryChange(), null, "origin", null, 0, 1, CompositionMoveIntoProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(compositionMoveToListEClass, CompositionMoveToList.class, "CompositionMoveToList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getCompositionMoveToList_Index(), ecorePackage.getEInt(), "index", null, 1, 1, CompositionMoveToList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getCompositionMoveToList_MovedElement(), ecorePackage.getEObject(), null, "movedElement", null, 1, 1, CompositionMoveToList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getCompositionMoveToList_Origin(), this.getElementaryChange(), null, "origin", null, 1, 1, CompositionMoveToList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(compositionMoveToCollectionEClass, CompositionMoveToCollection.class, "CompositionMoveToCollection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCompositionMoveToCollection_MovedElement(), ecorePackage.getEObject(), null, "movedElement", null, 1, 1, CompositionMoveToCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getCompositionMoveToCollection_Origin(), this.getElementaryChange(), null, "origin", null, 1, 1, CompositionMoveToCollection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(operationCallEClass, OperationCall.class, "OperationCall", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getOperationCall_Operation(), ecorePackage.getEOperation(), null, "operation", null, 1, 1, OperationCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getOperationCall_TargetElement(), ecorePackage.getEObject(), null, "targetElement", null, 0, 1, OperationCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getOperationCall_Arguments(), this.getOperationArgument(), null, "arguments", null, 0, -1, OperationCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(operationArgumentEClass, OperationArgument.class, "OperationArgument", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getOperationArgument_Name(), ecorePackage.getEString(), "name", null, 1, 1, OperationArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(valueArgumentEClass, ValueArgument.class, "ValueArgument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getValueArgument_Value(), ecorePackage.getEString(), "value", null, 1, 1, ValueArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(referenceArgumentEClass, ReferenceArgument.class, "ReferenceArgument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getReferenceArgument_Value(), ecorePackage.getEObject(), null, "value", null, 1, 1, ReferenceArgument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} //ChangesPackageImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionChangeImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionChangeImpl.java deleted file mode 100644 index 6196970..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionChangeImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.CompositionChange; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Composition Change'. - * - * - * @generated - */ -public class CompositionChangeImpl extends ElementaryChangeImpl implements CompositionChange { - /** - * - * - * @generated - */ - protected CompositionChangeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.COMPOSITION_CHANGE; - } - -} //CompositionChangeImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionCollectionDeletionImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionCollectionDeletionImpl.java deleted file mode 100644 index 8485aa6..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionCollectionDeletionImpl.java +++ /dev/null @@ -1,156 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.CompositionCollectionDeletion; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Composition Collection Deletion'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.CompositionCollectionDeletionImpl#getDeletedElement Deleted Element}
  • - *
- * - * @generated - */ -public class CompositionCollectionDeletionImpl extends CompositionChangeImpl implements CompositionCollectionDeletion { - /** - * The cached value of the '{@link #getDeletedElement() Deleted Element}' reference. - * - * - * @see #getDeletedElement() - * @generated - * @ordered - */ - protected EObject deletedElement; - - /** - * - * - * @generated - */ - protected CompositionCollectionDeletionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.COMPOSITION_COLLECTION_DELETION; - } - - /** - * - * - * @generated - */ - public EObject getDeletedElement() { - if (deletedElement != null && deletedElement.eIsProxy()) { - InternalEObject oldDeletedElement = (InternalEObject)deletedElement; - deletedElement = eResolveProxy(oldDeletedElement); - if (deletedElement != oldDeletedElement) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.COMPOSITION_COLLECTION_DELETION__DELETED_ELEMENT, oldDeletedElement, deletedElement)); - } - } - return deletedElement; - } - - /** - * - * - * @generated - */ - public EObject basicGetDeletedElement() { - return deletedElement; - } - - /** - * - * - * @generated - */ - public void setDeletedElement(EObject newDeletedElement) { - EObject oldDeletedElement = deletedElement; - deletedElement = newDeletedElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_COLLECTION_DELETION__DELETED_ELEMENT, oldDeletedElement, deletedElement)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.COMPOSITION_COLLECTION_DELETION__DELETED_ELEMENT: - if (resolve) return getDeletedElement(); - return basicGetDeletedElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.COMPOSITION_COLLECTION_DELETION__DELETED_ELEMENT: - setDeletedElement((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_COLLECTION_DELETION__DELETED_ELEMENT: - setDeletedElement((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_COLLECTION_DELETION__DELETED_ELEMENT: - return deletedElement != null; - } - return super.eIsSet(featureID); - } - -} //CompositionCollectionDeletionImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionCollectionInsertionImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionCollectionInsertionImpl.java deleted file mode 100644 index bfc98bc..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionCollectionInsertionImpl.java +++ /dev/null @@ -1,175 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.CompositionCollectionInsertion; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Composition Collection Insertion'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.CompositionCollectionInsertionImpl#getAddedElement Added Element}
  • - *
- * - * @generated - */ -public class CompositionCollectionInsertionImpl extends CompositionChangeImpl implements CompositionCollectionInsertion { - /** - * The cached value of the '{@link #getAddedElement() Added Element}' containment reference. - * - * - * @see #getAddedElement() - * @generated - * @ordered - */ - protected EObject addedElement; - - /** - * - * - * @generated - */ - protected CompositionCollectionInsertionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.COMPOSITION_COLLECTION_INSERTION; - } - - /** - * - * - * @generated - */ - public EObject getAddedElement() { - return addedElement; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetAddedElement(EObject newAddedElement, NotificationChain msgs) { - EObject oldAddedElement = addedElement; - addedElement = newAddedElement; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_COLLECTION_INSERTION__ADDED_ELEMENT, oldAddedElement, newAddedElement); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setAddedElement(EObject newAddedElement) { - if (newAddedElement != addedElement) { - NotificationChain msgs = null; - if (addedElement != null) - msgs = ((InternalEObject)addedElement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ChangesPackage.COMPOSITION_COLLECTION_INSERTION__ADDED_ELEMENT, null, msgs); - if (newAddedElement != null) - msgs = ((InternalEObject)newAddedElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ChangesPackage.COMPOSITION_COLLECTION_INSERTION__ADDED_ELEMENT, null, msgs); - msgs = basicSetAddedElement(newAddedElement, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_COLLECTION_INSERTION__ADDED_ELEMENT, newAddedElement, newAddedElement)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ChangesPackage.COMPOSITION_COLLECTION_INSERTION__ADDED_ELEMENT: - return basicSetAddedElement(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.COMPOSITION_COLLECTION_INSERTION__ADDED_ELEMENT: - return getAddedElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.COMPOSITION_COLLECTION_INSERTION__ADDED_ELEMENT: - setAddedElement((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_COLLECTION_INSERTION__ADDED_ELEMENT: - setAddedElement((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_COLLECTION_INSERTION__ADDED_ELEMENT: - return addedElement != null; - } - return super.eIsSet(featureID); - } - -} //CompositionCollectionInsertionImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionCollectionResetImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionCollectionResetImpl.java deleted file mode 100644 index f7cff93..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionCollectionResetImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.CompositionCollectionReset; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Composition Collection Reset'. - * - * - * @generated - */ -public class CompositionCollectionResetImpl extends CompositionChangeImpl implements CompositionCollectionReset { - /** - * - * - * @generated - */ - protected CompositionCollectionResetImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.COMPOSITION_COLLECTION_RESET; - } - -} //CompositionCollectionResetImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionListDeletionImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionListDeletionImpl.java deleted file mode 100644 index 3d4b206..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionListDeletionImpl.java +++ /dev/null @@ -1,224 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.CompositionListDeletion; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Composition List Deletion'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.CompositionListDeletionImpl#getDeletedElement Deleted Element}
  • - *
  • {@link metamodels.Changes.impl.CompositionListDeletionImpl#getIndex Index}
  • - *
- * - * @generated - */ -public class CompositionListDeletionImpl extends CompositionChangeImpl implements CompositionListDeletion { - /** - * The cached value of the '{@link #getDeletedElement() Deleted Element}' reference. - * - * - * @see #getDeletedElement() - * @generated - * @ordered - */ - protected EObject deletedElement; - - /** - * The default value of the '{@link #getIndex() Index}' attribute. - * - * - * @see #getIndex() - * @generated - * @ordered - */ - protected static final int INDEX_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getIndex() Index}' attribute. - * - * - * @see #getIndex() - * @generated - * @ordered - */ - protected int index = INDEX_EDEFAULT; - - /** - * - * - * @generated - */ - protected CompositionListDeletionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.COMPOSITION_LIST_DELETION; - } - - /** - * - * - * @generated - */ - public EObject getDeletedElement() { - if (deletedElement != null && deletedElement.eIsProxy()) { - InternalEObject oldDeletedElement = (InternalEObject)deletedElement; - deletedElement = eResolveProxy(oldDeletedElement); - if (deletedElement != oldDeletedElement) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.COMPOSITION_LIST_DELETION__DELETED_ELEMENT, oldDeletedElement, deletedElement)); - } - } - return deletedElement; - } - - /** - * - * - * @generated - */ - public EObject basicGetDeletedElement() { - return deletedElement; - } - - /** - * - * - * @generated - */ - public void setDeletedElement(EObject newDeletedElement) { - EObject oldDeletedElement = deletedElement; - deletedElement = newDeletedElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_LIST_DELETION__DELETED_ELEMENT, oldDeletedElement, deletedElement)); - } - - /** - * - * - * @generated - */ - public int getIndex() { - return index; - } - - /** - * - * - * @generated - */ - public void setIndex(int newIndex) { - int oldIndex = index; - index = newIndex; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_LIST_DELETION__INDEX, oldIndex, index)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.COMPOSITION_LIST_DELETION__DELETED_ELEMENT: - if (resolve) return getDeletedElement(); - return basicGetDeletedElement(); - case ChangesPackage.COMPOSITION_LIST_DELETION__INDEX: - return getIndex(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.COMPOSITION_LIST_DELETION__DELETED_ELEMENT: - setDeletedElement((EObject)newValue); - return; - case ChangesPackage.COMPOSITION_LIST_DELETION__INDEX: - setIndex((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_LIST_DELETION__DELETED_ELEMENT: - setDeletedElement((EObject)null); - return; - case ChangesPackage.COMPOSITION_LIST_DELETION__INDEX: - setIndex(INDEX_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_LIST_DELETION__DELETED_ELEMENT: - return deletedElement != null; - case ChangesPackage.COMPOSITION_LIST_DELETION__INDEX: - return index != INDEX_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (index: "); - result.append(index); - result.append(')'); - return result.toString(); - } - -} //CompositionListDeletionImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionListInsertionImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionListInsertionImpl.java deleted file mode 100644 index a59bdc2..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionListInsertionImpl.java +++ /dev/null @@ -1,243 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.CompositionListInsertion; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Composition List Insertion'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.CompositionListInsertionImpl#getAddedElement Added Element}
  • - *
  • {@link metamodels.Changes.impl.CompositionListInsertionImpl#getIndex Index}
  • - *
- * - * @generated - */ -public class CompositionListInsertionImpl extends CompositionChangeImpl implements CompositionListInsertion { - /** - * The cached value of the '{@link #getAddedElement() Added Element}' containment reference. - * - * - * @see #getAddedElement() - * @generated - * @ordered - */ - protected EObject addedElement; - - /** - * The default value of the '{@link #getIndex() Index}' attribute. - * - * - * @see #getIndex() - * @generated - * @ordered - */ - protected static final int INDEX_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getIndex() Index}' attribute. - * - * - * @see #getIndex() - * @generated - * @ordered - */ - protected int index = INDEX_EDEFAULT; - - /** - * - * - * @generated - */ - protected CompositionListInsertionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.COMPOSITION_LIST_INSERTION; - } - - /** - * - * - * @generated - */ - public EObject getAddedElement() { - return addedElement; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetAddedElement(EObject newAddedElement, NotificationChain msgs) { - EObject oldAddedElement = addedElement; - addedElement = newAddedElement; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_LIST_INSERTION__ADDED_ELEMENT, oldAddedElement, newAddedElement); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setAddedElement(EObject newAddedElement) { - if (newAddedElement != addedElement) { - NotificationChain msgs = null; - if (addedElement != null) - msgs = ((InternalEObject)addedElement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ChangesPackage.COMPOSITION_LIST_INSERTION__ADDED_ELEMENT, null, msgs); - if (newAddedElement != null) - msgs = ((InternalEObject)newAddedElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ChangesPackage.COMPOSITION_LIST_INSERTION__ADDED_ELEMENT, null, msgs); - msgs = basicSetAddedElement(newAddedElement, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_LIST_INSERTION__ADDED_ELEMENT, newAddedElement, newAddedElement)); - } - - /** - * - * - * @generated - */ - public int getIndex() { - return index; - } - - /** - * - * - * @generated - */ - public void setIndex(int newIndex) { - int oldIndex = index; - index = newIndex; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_LIST_INSERTION__INDEX, oldIndex, index)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ChangesPackage.COMPOSITION_LIST_INSERTION__ADDED_ELEMENT: - return basicSetAddedElement(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.COMPOSITION_LIST_INSERTION__ADDED_ELEMENT: - return getAddedElement(); - case ChangesPackage.COMPOSITION_LIST_INSERTION__INDEX: - return getIndex(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.COMPOSITION_LIST_INSERTION__ADDED_ELEMENT: - setAddedElement((EObject)newValue); - return; - case ChangesPackage.COMPOSITION_LIST_INSERTION__INDEX: - setIndex((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_LIST_INSERTION__ADDED_ELEMENT: - setAddedElement((EObject)null); - return; - case ChangesPackage.COMPOSITION_LIST_INSERTION__INDEX: - setIndex(INDEX_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_LIST_INSERTION__ADDED_ELEMENT: - return addedElement != null; - case ChangesPackage.COMPOSITION_LIST_INSERTION__INDEX: - return index != INDEX_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (index: "); - result.append(index); - result.append(')'); - return result.toString(); - } - -} //CompositionListInsertionImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionMoveIntoPropertyImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionMoveIntoPropertyImpl.java deleted file mode 100644 index c96152b..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionMoveIntoPropertyImpl.java +++ /dev/null @@ -1,296 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.CompositionMoveIntoProperty; -import metamodels.Changes.ElementaryChange; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Composition Move Into Property'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.CompositionMoveIntoPropertyImpl#getNewValue New Value}
  • - *
  • {@link metamodels.Changes.impl.CompositionMoveIntoPropertyImpl#getOldValue Old Value}
  • - *
  • {@link metamodels.Changes.impl.CompositionMoveIntoPropertyImpl#getOrigin Origin}
  • - *
- * - * @generated - */ -public class CompositionMoveIntoPropertyImpl extends CompositionChangeImpl implements CompositionMoveIntoProperty { - /** - * The cached value of the '{@link #getNewValue() New Value}' reference. - * - * - * @see #getNewValue() - * @generated - * @ordered - */ - protected EObject newValue; - - /** - * The cached value of the '{@link #getOldValue() Old Value}' reference. - * - * - * @see #getOldValue() - * @generated - * @ordered - */ - protected EObject oldValue; - - /** - * The cached value of the '{@link #getOrigin() Origin}' containment reference. - * - * - * @see #getOrigin() - * @generated - * @ordered - */ - protected ElementaryChange origin; - - /** - * - * - * @generated - */ - protected CompositionMoveIntoPropertyImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.COMPOSITION_MOVE_INTO_PROPERTY; - } - - /** - * - * - * @generated - */ - public EObject getNewValue() { - if (newValue != null && newValue.eIsProxy()) { - InternalEObject oldNewValue = (InternalEObject)newValue; - newValue = eResolveProxy(oldNewValue); - if (newValue != oldNewValue) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__NEW_VALUE, oldNewValue, newValue)); - } - } - return newValue; - } - - /** - * - * - * @generated - */ - public EObject basicGetNewValue() { - return newValue; - } - - /** - * - * - * @generated - */ - public void setNewValue(EObject newNewValue) { - EObject oldNewValue = newValue; - newValue = newNewValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__NEW_VALUE, oldNewValue, newValue)); - } - - /** - * - * - * @generated - */ - public EObject getOldValue() { - if (oldValue != null && oldValue.eIsProxy()) { - InternalEObject oldOldValue = (InternalEObject)oldValue; - oldValue = eResolveProxy(oldOldValue); - if (oldValue != oldOldValue) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__OLD_VALUE, oldOldValue, oldValue)); - } - } - return oldValue; - } - - /** - * - * - * @generated - */ - public EObject basicGetOldValue() { - return oldValue; - } - - /** - * - * - * @generated - */ - public void setOldValue(EObject newOldValue) { - EObject oldOldValue = oldValue; - oldValue = newOldValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__OLD_VALUE, oldOldValue, oldValue)); - } - - /** - * - * - * @generated - */ - public ElementaryChange getOrigin() { - return origin; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetOrigin(ElementaryChange newOrigin, NotificationChain msgs) { - ElementaryChange oldOrigin = origin; - origin = newOrigin; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__ORIGIN, oldOrigin, newOrigin); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setOrigin(ElementaryChange newOrigin) { - if (newOrigin != origin) { - NotificationChain msgs = null; - if (origin != null) - msgs = ((InternalEObject)origin).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__ORIGIN, null, msgs); - if (newOrigin != null) - msgs = ((InternalEObject)newOrigin).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__ORIGIN, null, msgs); - msgs = basicSetOrigin(newOrigin, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__ORIGIN, newOrigin, newOrigin)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__ORIGIN: - return basicSetOrigin(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__NEW_VALUE: - if (resolve) return getNewValue(); - return basicGetNewValue(); - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__OLD_VALUE: - if (resolve) return getOldValue(); - return basicGetOldValue(); - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__ORIGIN: - return getOrigin(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__NEW_VALUE: - setNewValue((EObject)newValue); - return; - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__OLD_VALUE: - setOldValue((EObject)newValue); - return; - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__ORIGIN: - setOrigin((ElementaryChange)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__NEW_VALUE: - setNewValue((EObject)null); - return; - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__OLD_VALUE: - setOldValue((EObject)null); - return; - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__ORIGIN: - setOrigin((ElementaryChange)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__NEW_VALUE: - return newValue != null; - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__OLD_VALUE: - return oldValue != null; - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY__ORIGIN: - return origin != null; - } - return super.eIsSet(featureID); - } - -} //CompositionMoveIntoPropertyImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionMoveToCollectionImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionMoveToCollectionImpl.java deleted file mode 100644 index fd08abe..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionMoveToCollectionImpl.java +++ /dev/null @@ -1,237 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.CompositionMoveToCollection; -import metamodels.Changes.ElementaryChange; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Composition Move To Collection'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.CompositionMoveToCollectionImpl#getMovedElement Moved Element}
  • - *
  • {@link metamodels.Changes.impl.CompositionMoveToCollectionImpl#getOrigin Origin}
  • - *
- * - * @generated - */ -public class CompositionMoveToCollectionImpl extends MinimalEObjectImpl.Container implements CompositionMoveToCollection { - /** - * The cached value of the '{@link #getMovedElement() Moved Element}' reference. - * - * - * @see #getMovedElement() - * @generated - * @ordered - */ - protected EObject movedElement; - - /** - * The cached value of the '{@link #getOrigin() Origin}' containment reference. - * - * - * @see #getOrigin() - * @generated - * @ordered - */ - protected ElementaryChange origin; - - /** - * - * - * @generated - */ - protected CompositionMoveToCollectionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.COMPOSITION_MOVE_TO_COLLECTION; - } - - /** - * - * - * @generated - */ - public EObject getMovedElement() { - if (movedElement != null && movedElement.eIsProxy()) { - InternalEObject oldMovedElement = (InternalEObject)movedElement; - movedElement = eResolveProxy(oldMovedElement); - if (movedElement != oldMovedElement) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__MOVED_ELEMENT, oldMovedElement, movedElement)); - } - } - return movedElement; - } - - /** - * - * - * @generated - */ - public EObject basicGetMovedElement() { - return movedElement; - } - - /** - * - * - * @generated - */ - public void setMovedElement(EObject newMovedElement) { - EObject oldMovedElement = movedElement; - movedElement = newMovedElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__MOVED_ELEMENT, oldMovedElement, movedElement)); - } - - /** - * - * - * @generated - */ - public ElementaryChange getOrigin() { - return origin; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetOrigin(ElementaryChange newOrigin, NotificationChain msgs) { - ElementaryChange oldOrigin = origin; - origin = newOrigin; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__ORIGIN, oldOrigin, newOrigin); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setOrigin(ElementaryChange newOrigin) { - if (newOrigin != origin) { - NotificationChain msgs = null; - if (origin != null) - msgs = ((InternalEObject)origin).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__ORIGIN, null, msgs); - if (newOrigin != null) - msgs = ((InternalEObject)newOrigin).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__ORIGIN, null, msgs); - msgs = basicSetOrigin(newOrigin, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__ORIGIN, newOrigin, newOrigin)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__ORIGIN: - return basicSetOrigin(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__MOVED_ELEMENT: - if (resolve) return getMovedElement(); - return basicGetMovedElement(); - case ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__ORIGIN: - return getOrigin(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__MOVED_ELEMENT: - setMovedElement((EObject)newValue); - return; - case ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__ORIGIN: - setOrigin((ElementaryChange)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__MOVED_ELEMENT: - setMovedElement((EObject)null); - return; - case ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__ORIGIN: - setOrigin((ElementaryChange)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__MOVED_ELEMENT: - return movedElement != null; - case ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION__ORIGIN: - return origin != null; - } - return super.eIsSet(featureID); - } - -} //CompositionMoveToCollectionImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionMoveToListImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionMoveToListImpl.java deleted file mode 100644 index 4369121..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionMoveToListImpl.java +++ /dev/null @@ -1,304 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.CompositionMoveToList; -import metamodels.Changes.ElementaryChange; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Composition Move To List'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.CompositionMoveToListImpl#getIndex Index}
  • - *
  • {@link metamodels.Changes.impl.CompositionMoveToListImpl#getMovedElement Moved Element}
  • - *
  • {@link metamodels.Changes.impl.CompositionMoveToListImpl#getOrigin Origin}
  • - *
- * - * @generated - */ -public class CompositionMoveToListImpl extends CompositionChangeImpl implements CompositionMoveToList { - /** - * The default value of the '{@link #getIndex() Index}' attribute. - * - * - * @see #getIndex() - * @generated - * @ordered - */ - protected static final int INDEX_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getIndex() Index}' attribute. - * - * - * @see #getIndex() - * @generated - * @ordered - */ - protected int index = INDEX_EDEFAULT; - - /** - * The cached value of the '{@link #getMovedElement() Moved Element}' reference. - * - * - * @see #getMovedElement() - * @generated - * @ordered - */ - protected EObject movedElement; - - /** - * The cached value of the '{@link #getOrigin() Origin}' containment reference. - * - * - * @see #getOrigin() - * @generated - * @ordered - */ - protected ElementaryChange origin; - - /** - * - * - * @generated - */ - protected CompositionMoveToListImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.COMPOSITION_MOVE_TO_LIST; - } - - /** - * - * - * @generated - */ - public int getIndex() { - return index; - } - - /** - * - * - * @generated - */ - public void setIndex(int newIndex) { - int oldIndex = index; - index = newIndex; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_MOVE_TO_LIST__INDEX, oldIndex, index)); - } - - /** - * - * - * @generated - */ - public EObject getMovedElement() { - if (movedElement != null && movedElement.eIsProxy()) { - InternalEObject oldMovedElement = (InternalEObject)movedElement; - movedElement = eResolveProxy(oldMovedElement); - if (movedElement != oldMovedElement) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.COMPOSITION_MOVE_TO_LIST__MOVED_ELEMENT, oldMovedElement, movedElement)); - } - } - return movedElement; - } - - /** - * - * - * @generated - */ - public EObject basicGetMovedElement() { - return movedElement; - } - - /** - * - * - * @generated - */ - public void setMovedElement(EObject newMovedElement) { - EObject oldMovedElement = movedElement; - movedElement = newMovedElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_MOVE_TO_LIST__MOVED_ELEMENT, oldMovedElement, movedElement)); - } - - /** - * - * - * @generated - */ - public ElementaryChange getOrigin() { - return origin; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetOrigin(ElementaryChange newOrigin, NotificationChain msgs) { - ElementaryChange oldOrigin = origin; - origin = newOrigin; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_MOVE_TO_LIST__ORIGIN, oldOrigin, newOrigin); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setOrigin(ElementaryChange newOrigin) { - if (newOrigin != origin) { - NotificationChain msgs = null; - if (origin != null) - msgs = ((InternalEObject)origin).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ChangesPackage.COMPOSITION_MOVE_TO_LIST__ORIGIN, null, msgs); - if (newOrigin != null) - msgs = ((InternalEObject)newOrigin).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ChangesPackage.COMPOSITION_MOVE_TO_LIST__ORIGIN, null, msgs); - msgs = basicSetOrigin(newOrigin, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_MOVE_TO_LIST__ORIGIN, newOrigin, newOrigin)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_TO_LIST__ORIGIN: - return basicSetOrigin(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_TO_LIST__INDEX: - return getIndex(); - case ChangesPackage.COMPOSITION_MOVE_TO_LIST__MOVED_ELEMENT: - if (resolve) return getMovedElement(); - return basicGetMovedElement(); - case ChangesPackage.COMPOSITION_MOVE_TO_LIST__ORIGIN: - return getOrigin(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_TO_LIST__INDEX: - setIndex((Integer)newValue); - return; - case ChangesPackage.COMPOSITION_MOVE_TO_LIST__MOVED_ELEMENT: - setMovedElement((EObject)newValue); - return; - case ChangesPackage.COMPOSITION_MOVE_TO_LIST__ORIGIN: - setOrigin((ElementaryChange)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_TO_LIST__INDEX: - setIndex(INDEX_EDEFAULT); - return; - case ChangesPackage.COMPOSITION_MOVE_TO_LIST__MOVED_ELEMENT: - setMovedElement((EObject)null); - return; - case ChangesPackage.COMPOSITION_MOVE_TO_LIST__ORIGIN: - setOrigin((ElementaryChange)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_MOVE_TO_LIST__INDEX: - return index != INDEX_EDEFAULT; - case ChangesPackage.COMPOSITION_MOVE_TO_LIST__MOVED_ELEMENT: - return movedElement != null; - case ChangesPackage.COMPOSITION_MOVE_TO_LIST__ORIGIN: - return origin != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (index: "); - result.append(index); - result.append(')'); - return result.toString(); - } - -} //CompositionMoveToListImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionPropertyChangeImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionPropertyChangeImpl.java deleted file mode 100644 index dda6e74..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/CompositionPropertyChangeImpl.java +++ /dev/null @@ -1,235 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.CompositionPropertyChange; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Composition Property Change'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.CompositionPropertyChangeImpl#getNewValue New Value}
  • - *
  • {@link metamodels.Changes.impl.CompositionPropertyChangeImpl#getOldValue Old Value}
  • - *
- * - * @generated - */ -public class CompositionPropertyChangeImpl extends CompositionChangeImpl implements CompositionPropertyChange { - /** - * The cached value of the '{@link #getNewValue() New Value}' containment reference. - * - * - * @see #getNewValue() - * @generated - * @ordered - */ - protected EObject newValue; - - /** - * The cached value of the '{@link #getOldValue() Old Value}' reference. - * - * - * @see #getOldValue() - * @generated - * @ordered - */ - protected EObject oldValue; - - /** - * - * - * @generated - */ - protected CompositionPropertyChangeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.COMPOSITION_PROPERTY_CHANGE; - } - - /** - * - * - * @generated - */ - public EObject getNewValue() { - return newValue; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetNewValue(EObject newNewValue, NotificationChain msgs) { - EObject oldNewValue = newValue; - newValue = newNewValue; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_PROPERTY_CHANGE__NEW_VALUE, oldNewValue, newNewValue); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setNewValue(EObject newNewValue) { - if (newNewValue != newValue) { - NotificationChain msgs = null; - if (newValue != null) - msgs = ((InternalEObject)newValue).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ChangesPackage.COMPOSITION_PROPERTY_CHANGE__NEW_VALUE, null, msgs); - if (newNewValue != null) - msgs = ((InternalEObject)newNewValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ChangesPackage.COMPOSITION_PROPERTY_CHANGE__NEW_VALUE, null, msgs); - msgs = basicSetNewValue(newNewValue, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_PROPERTY_CHANGE__NEW_VALUE, newNewValue, newNewValue)); - } - - /** - * - * - * @generated - */ - public EObject getOldValue() { - if (oldValue != null && oldValue.eIsProxy()) { - InternalEObject oldOldValue = (InternalEObject)oldValue; - oldValue = eResolveProxy(oldOldValue); - if (oldValue != oldOldValue) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.COMPOSITION_PROPERTY_CHANGE__OLD_VALUE, oldOldValue, oldValue)); - } - } - return oldValue; - } - - /** - * - * - * @generated - */ - public EObject basicGetOldValue() { - return oldValue; - } - - /** - * - * - * @generated - */ - public void setOldValue(EObject newOldValue) { - EObject oldOldValue = oldValue; - oldValue = newOldValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.COMPOSITION_PROPERTY_CHANGE__OLD_VALUE, oldOldValue, oldValue)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ChangesPackage.COMPOSITION_PROPERTY_CHANGE__NEW_VALUE: - return basicSetNewValue(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.COMPOSITION_PROPERTY_CHANGE__NEW_VALUE: - return getNewValue(); - case ChangesPackage.COMPOSITION_PROPERTY_CHANGE__OLD_VALUE: - if (resolve) return getOldValue(); - return basicGetOldValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.COMPOSITION_PROPERTY_CHANGE__NEW_VALUE: - setNewValue((EObject)newValue); - return; - case ChangesPackage.COMPOSITION_PROPERTY_CHANGE__OLD_VALUE: - setOldValue((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_PROPERTY_CHANGE__NEW_VALUE: - setNewValue((EObject)null); - return; - case ChangesPackage.COMPOSITION_PROPERTY_CHANGE__OLD_VALUE: - setOldValue((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.COMPOSITION_PROPERTY_CHANGE__NEW_VALUE: - return newValue != null; - case ChangesPackage.COMPOSITION_PROPERTY_CHANGE__OLD_VALUE: - return oldValue != null; - } - return super.eIsSet(featureID); - } - -} //CompositionPropertyChangeImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/ElementaryChangeImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/ElementaryChangeImpl.java deleted file mode 100644 index 99dd5f0..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/ElementaryChangeImpl.java +++ /dev/null @@ -1,217 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.ElementaryChange; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Elementary Change'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.ElementaryChangeImpl#getAffectedElement Affected Element}
  • - *
  • {@link metamodels.Changes.impl.ElementaryChangeImpl#getFeature Feature}
  • - *
- * - * @generated - */ -public abstract class ElementaryChangeImpl extends ModelChangeImpl implements ElementaryChange { - /** - * The cached value of the '{@link #getAffectedElement() Affected Element}' reference. - * - * - * @see #getAffectedElement() - * @generated - * @ordered - */ - protected EObject affectedElement; - - /** - * The cached value of the '{@link #getFeature() Feature}' reference. - * - * - * @see #getFeature() - * @generated - * @ordered - */ - protected EStructuralFeature feature; - - /** - * - * - * @generated - */ - protected ElementaryChangeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.ELEMENTARY_CHANGE; - } - - /** - * - * - * @generated - */ - public EObject getAffectedElement() { - if (affectedElement != null && affectedElement.eIsProxy()) { - InternalEObject oldAffectedElement = (InternalEObject)affectedElement; - affectedElement = eResolveProxy(oldAffectedElement); - if (affectedElement != oldAffectedElement) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.ELEMENTARY_CHANGE__AFFECTED_ELEMENT, oldAffectedElement, affectedElement)); - } - } - return affectedElement; - } - - /** - * - * - * @generated - */ - public EObject basicGetAffectedElement() { - return affectedElement; - } - - /** - * - * - * @generated - */ - public void setAffectedElement(EObject newAffectedElement) { - EObject oldAffectedElement = affectedElement; - affectedElement = newAffectedElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ELEMENTARY_CHANGE__AFFECTED_ELEMENT, oldAffectedElement, affectedElement)); - } - - /** - * - * - * @generated - */ - public EStructuralFeature getFeature() { - if (feature != null && feature.eIsProxy()) { - InternalEObject oldFeature = (InternalEObject)feature; - feature = (EStructuralFeature)eResolveProxy(oldFeature); - if (feature != oldFeature) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.ELEMENTARY_CHANGE__FEATURE, oldFeature, feature)); - } - } - return feature; - } - - /** - * - * - * @generated - */ - public EStructuralFeature basicGetFeature() { - return feature; - } - - /** - * - * - * @generated - */ - public void setFeature(EStructuralFeature newFeature) { - EStructuralFeature oldFeature = feature; - feature = newFeature; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.ELEMENTARY_CHANGE__FEATURE, oldFeature, feature)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.ELEMENTARY_CHANGE__AFFECTED_ELEMENT: - if (resolve) return getAffectedElement(); - return basicGetAffectedElement(); - case ChangesPackage.ELEMENTARY_CHANGE__FEATURE: - if (resolve) return getFeature(); - return basicGetFeature(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.ELEMENTARY_CHANGE__AFFECTED_ELEMENT: - setAffectedElement((EObject)newValue); - return; - case ChangesPackage.ELEMENTARY_CHANGE__FEATURE: - setFeature((EStructuralFeature)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.ELEMENTARY_CHANGE__AFFECTED_ELEMENT: - setAffectedElement((EObject)null); - return; - case ChangesPackage.ELEMENTARY_CHANGE__FEATURE: - setFeature((EStructuralFeature)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.ELEMENTARY_CHANGE__AFFECTED_ELEMENT: - return affectedElement != null; - case ChangesPackage.ELEMENTARY_CHANGE__FEATURE: - return feature != null; - } - return super.eIsSet(featureID); - } - -} //ElementaryChangeImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/ModelChangeImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/ModelChangeImpl.java deleted file mode 100644 index 02ab84e..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/ModelChangeImpl.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.ModelChange; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Model Change'. - * - * - * @generated - */ -public abstract class ModelChangeImpl extends MinimalEObjectImpl.Container implements ModelChange { - /** - * - * - * @generated - */ - protected ModelChangeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.MODEL_CHANGE; - } - -} //ModelChangeImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/ModelChangeSetImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/ModelChangeSetImpl.java deleted file mode 100644 index 0acf7e0..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/ModelChangeSetImpl.java +++ /dev/null @@ -1,152 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import java.util.Collection; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.ModelChange; -import metamodels.Changes.ModelChangeSet; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Model Change Set'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.ModelChangeSetImpl#getChanges Changes}
  • - *
- * - * @generated - */ -public class ModelChangeSetImpl extends MinimalEObjectImpl.Container implements ModelChangeSet { - /** - * The cached value of the '{@link #getChanges() Changes}' containment reference list. - * - * - * @see #getChanges() - * @generated - * @ordered - */ - protected EList changes; - - /** - * - * - * @generated - */ - protected ModelChangeSetImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.MODEL_CHANGE_SET; - } - - /** - * - * - * @generated - */ - public EList getChanges() { - if (changes == null) { - changes = new EObjectContainmentEList(ModelChange.class, this, ChangesPackage.MODEL_CHANGE_SET__CHANGES); - } - return changes; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ChangesPackage.MODEL_CHANGE_SET__CHANGES: - return ((InternalEList)getChanges()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.MODEL_CHANGE_SET__CHANGES: - return getChanges(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.MODEL_CHANGE_SET__CHANGES: - getChanges().clear(); - getChanges().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.MODEL_CHANGE_SET__CHANGES: - getChanges().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.MODEL_CHANGE_SET__CHANGES: - return changes != null && !changes.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //ModelChangeSetImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/OperationArgumentImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/OperationArgumentImpl.java deleted file mode 100644 index bffe42e..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/OperationArgumentImpl.java +++ /dev/null @@ -1,163 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.OperationArgument; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Operation Argument'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.OperationArgumentImpl#getName Name}
  • - *
- * - * @generated - */ -public abstract class OperationArgumentImpl extends MinimalEObjectImpl.Container implements OperationArgument { - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected OperationArgumentImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.OPERATION_ARGUMENT; - } - - /** - * - * - * @generated - */ - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.OPERATION_ARGUMENT__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.OPERATION_ARGUMENT__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.OPERATION_ARGUMENT__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.OPERATION_ARGUMENT__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.OPERATION_ARGUMENT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} //OperationArgumentImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/OperationCallImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/OperationCallImpl.java deleted file mode 100644 index ba242fc..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/OperationCallImpl.java +++ /dev/null @@ -1,275 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import java.util.Collection; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.OperationArgument; -import metamodels.Changes.OperationCall; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EOperation; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Operation Call'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.OperationCallImpl#getOperation Operation}
  • - *
  • {@link metamodels.Changes.impl.OperationCallImpl#getTargetElement Target Element}
  • - *
  • {@link metamodels.Changes.impl.OperationCallImpl#getArguments Arguments}
  • - *
- * - * @generated - */ -public class OperationCallImpl extends ModelChangeImpl implements OperationCall { - /** - * The cached value of the '{@link #getOperation() Operation}' reference. - * - * - * @see #getOperation() - * @generated - * @ordered - */ - protected EOperation operation; - - /** - * The cached value of the '{@link #getTargetElement() Target Element}' reference. - * - * - * @see #getTargetElement() - * @generated - * @ordered - */ - protected EObject targetElement; - - /** - * The cached value of the '{@link #getArguments() Arguments}' containment reference list. - * - * - * @see #getArguments() - * @generated - * @ordered - */ - protected EList arguments; - - /** - * - * - * @generated - */ - protected OperationCallImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.OPERATION_CALL; - } - - /** - * - * - * @generated - */ - public EOperation getOperation() { - if (operation != null && operation.eIsProxy()) { - InternalEObject oldOperation = (InternalEObject)operation; - operation = (EOperation)eResolveProxy(oldOperation); - if (operation != oldOperation) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.OPERATION_CALL__OPERATION, oldOperation, operation)); - } - } - return operation; - } - - /** - * - * - * @generated - */ - public EOperation basicGetOperation() { - return operation; - } - - /** - * - * - * @generated - */ - public void setOperation(EOperation newOperation) { - EOperation oldOperation = operation; - operation = newOperation; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.OPERATION_CALL__OPERATION, oldOperation, operation)); - } - - /** - * - * - * @generated - */ - public EObject getTargetElement() { - if (targetElement != null && targetElement.eIsProxy()) { - InternalEObject oldTargetElement = (InternalEObject)targetElement; - targetElement = eResolveProxy(oldTargetElement); - if (targetElement != oldTargetElement) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.OPERATION_CALL__TARGET_ELEMENT, oldTargetElement, targetElement)); - } - } - return targetElement; - } - - /** - * - * - * @generated - */ - public EObject basicGetTargetElement() { - return targetElement; - } - - /** - * - * - * @generated - */ - public void setTargetElement(EObject newTargetElement) { - EObject oldTargetElement = targetElement; - targetElement = newTargetElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.OPERATION_CALL__TARGET_ELEMENT, oldTargetElement, targetElement)); - } - - /** - * - * - * @generated - */ - public EList getArguments() { - if (arguments == null) { - arguments = new EObjectContainmentEList(OperationArgument.class, this, ChangesPackage.OPERATION_CALL__ARGUMENTS); - } - return arguments; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ChangesPackage.OPERATION_CALL__ARGUMENTS: - return ((InternalEList)getArguments()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.OPERATION_CALL__OPERATION: - if (resolve) return getOperation(); - return basicGetOperation(); - case ChangesPackage.OPERATION_CALL__TARGET_ELEMENT: - if (resolve) return getTargetElement(); - return basicGetTargetElement(); - case ChangesPackage.OPERATION_CALL__ARGUMENTS: - return getArguments(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.OPERATION_CALL__OPERATION: - setOperation((EOperation)newValue); - return; - case ChangesPackage.OPERATION_CALL__TARGET_ELEMENT: - setTargetElement((EObject)newValue); - return; - case ChangesPackage.OPERATION_CALL__ARGUMENTS: - getArguments().clear(); - getArguments().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.OPERATION_CALL__OPERATION: - setOperation((EOperation)null); - return; - case ChangesPackage.OPERATION_CALL__TARGET_ELEMENT: - setTargetElement((EObject)null); - return; - case ChangesPackage.OPERATION_CALL__ARGUMENTS: - getArguments().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.OPERATION_CALL__OPERATION: - return operation != null; - case ChangesPackage.OPERATION_CALL__TARGET_ELEMENT: - return targetElement != null; - case ChangesPackage.OPERATION_CALL__ARGUMENTS: - return arguments != null && !arguments.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //OperationCallImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/ReferenceArgumentImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/ReferenceArgumentImpl.java deleted file mode 100644 index 64fa673..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/ReferenceArgumentImpl.java +++ /dev/null @@ -1,156 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.ReferenceArgument; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Reference Argument'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.ReferenceArgumentImpl#getValue Value}
  • - *
- * - * @generated - */ -public class ReferenceArgumentImpl extends OperationArgumentImpl implements ReferenceArgument { - /** - * The cached value of the '{@link #getValue() Value}' reference. - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected EObject value; - - /** - * - * - * @generated - */ - protected ReferenceArgumentImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.REFERENCE_ARGUMENT; - } - - /** - * - * - * @generated - */ - public EObject getValue() { - if (value != null && value.eIsProxy()) { - InternalEObject oldValue = (InternalEObject)value; - value = eResolveProxy(oldValue); - if (value != oldValue) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ChangesPackage.REFERENCE_ARGUMENT__VALUE, oldValue, value)); - } - } - return value; - } - - /** - * - * - * @generated - */ - public EObject basicGetValue() { - return value; - } - - /** - * - * - * @generated - */ - public void setValue(EObject newValue) { - EObject oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.REFERENCE_ARGUMENT__VALUE, oldValue, value)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.REFERENCE_ARGUMENT__VALUE: - if (resolve) return getValue(); - return basicGetValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.REFERENCE_ARGUMENT__VALUE: - setValue((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.REFERENCE_ARGUMENT__VALUE: - setValue((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.REFERENCE_ARGUMENT__VALUE: - return value != null; - } - return super.eIsSet(featureID); - } - -} //ReferenceArgumentImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/impl/ValueArgumentImpl.java b/solutions/java/app/src/main/java/metamodels/Changes/impl/ValueArgumentImpl.java deleted file mode 100644 index f581428..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/impl/ValueArgumentImpl.java +++ /dev/null @@ -1,162 +0,0 @@ -/** - */ -package metamodels.Changes.impl; - -import metamodels.Changes.ChangesPackage; -import metamodels.Changes.ValueArgument; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Value Argument'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Changes.impl.ValueArgumentImpl#getValue Value}
  • - *
- * - * @generated - */ -public class ValueArgumentImpl extends OperationArgumentImpl implements ValueArgument { - /** - * The default value of the '{@link #getValue() Value}' attribute. - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getValue() Value}' attribute. - * - * - * @see #getValue() - * @generated - * @ordered - */ - protected String value = VALUE_EDEFAULT; - - /** - * - * - * @generated - */ - protected ValueArgumentImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ChangesPackage.Literals.VALUE_ARGUMENT; - } - - /** - * - * - * @generated - */ - public String getValue() { - return value; - } - - /** - * - * - * @generated - */ - public void setValue(String newValue) { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ChangesPackage.VALUE_ARGUMENT__VALUE, oldValue, value)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ChangesPackage.VALUE_ARGUMENT__VALUE: - return getValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ChangesPackage.VALUE_ARGUMENT__VALUE: - setValue((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ChangesPackage.VALUE_ARGUMENT__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ChangesPackage.VALUE_ARGUMENT__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (value: "); - result.append(value); - result.append(')'); - return result.toString(); - } - -} //ValueArgumentImpl diff --git a/solutions/java/app/src/main/java/metamodels/Changes/util/ChangesAdapterFactory.java b/solutions/java/app/src/main/java/metamodels/Changes/util/ChangesAdapterFactory.java deleted file mode 100644 index bb8c5c7..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/util/ChangesAdapterFactory.java +++ /dev/null @@ -1,678 +0,0 @@ -/** - */ -package metamodels.Changes.util; - -import metamodels.Changes.*; - -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.ecore.EObject; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see metamodels.Changes.ChangesPackage - * @generated - */ -public class ChangesAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static ChangesPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public ChangesAdapterFactory() { - if (modelPackage == null) { - modelPackage = ChangesPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * @generated - */ - protected ChangesSwitch modelSwitch = - new ChangesSwitch() { - @Override - public Adapter caseModelChangeSet(ModelChangeSet object) { - return createModelChangeSetAdapter(); - } - @Override - public Adapter caseModelChange(ModelChange object) { - return createModelChangeAdapter(); - } - @Override - public Adapter caseElementaryChange(ElementaryChange object) { - return createElementaryChangeAdapter(); - } - @Override - public Adapter caseChangeTransaction(ChangeTransaction object) { - return createChangeTransactionAdapter(); - } - @Override - public Adapter caseCompositionChange(CompositionChange object) { - return createCompositionChangeAdapter(); - } - @Override - public Adapter caseAssociationChange(AssociationChange object) { - return createAssociationChangeAdapter(); - } - @Override - public Adapter caseAttributeChange(AttributeChange object) { - return createAttributeChangeAdapter(); - } - @Override - public Adapter caseAssociationCollectionDeletion(AssociationCollectionDeletion object) { - return createAssociationCollectionDeletionAdapter(); - } - @Override - public Adapter caseCompositionCollectionDeletion(CompositionCollectionDeletion object) { - return createCompositionCollectionDeletionAdapter(); - } - @Override - public Adapter caseAttributeCollectionDeletion(AttributeCollectionDeletion object) { - return createAttributeCollectionDeletionAdapter(); - } - @Override - public Adapter caseAssociationCollectionInsertion(AssociationCollectionInsertion object) { - return createAssociationCollectionInsertionAdapter(); - } - @Override - public Adapter caseCompositionCollectionInsertion(CompositionCollectionInsertion object) { - return createCompositionCollectionInsertionAdapter(); - } - @Override - public Adapter caseAttributeCollectionInsertion(AttributeCollectionInsertion object) { - return createAttributeCollectionInsertionAdapter(); - } - @Override - public Adapter caseAssociationCollectionReset(AssociationCollectionReset object) { - return createAssociationCollectionResetAdapter(); - } - @Override - public Adapter caseCompositionCollectionReset(CompositionCollectionReset object) { - return createCompositionCollectionResetAdapter(); - } - @Override - public Adapter caseAttributeCollectionReset(AttributeCollectionReset object) { - return createAttributeCollectionResetAdapter(); - } - @Override - public Adapter caseAssociationListDeletion(AssociationListDeletion object) { - return createAssociationListDeletionAdapter(); - } - @Override - public Adapter caseCompositionListDeletion(CompositionListDeletion object) { - return createCompositionListDeletionAdapter(); - } - @Override - public Adapter caseAttributeListDeletion(AttributeListDeletion object) { - return createAttributeListDeletionAdapter(); - } - @Override - public Adapter caseAssociationListInsertion(AssociationListInsertion object) { - return createAssociationListInsertionAdapter(); - } - @Override - public Adapter caseCompositionListInsertion(CompositionListInsertion object) { - return createCompositionListInsertionAdapter(); - } - @Override - public Adapter caseAttributeListInsertion(AttributeListInsertion object) { - return createAttributeListInsertionAdapter(); - } - @Override - public Adapter caseAttributePropertyChange(AttributePropertyChange object) { - return createAttributePropertyChangeAdapter(); - } - @Override - public Adapter caseAssociationPropertyChange(AssociationPropertyChange object) { - return createAssociationPropertyChangeAdapter(); - } - @Override - public Adapter caseCompositionPropertyChange(CompositionPropertyChange object) { - return createCompositionPropertyChangeAdapter(); - } - @Override - public Adapter caseCompositionMoveIntoProperty(CompositionMoveIntoProperty object) { - return createCompositionMoveIntoPropertyAdapter(); - } - @Override - public Adapter caseCompositionMoveToList(CompositionMoveToList object) { - return createCompositionMoveToListAdapter(); - } - @Override - public Adapter caseCompositionMoveToCollection(CompositionMoveToCollection object) { - return createCompositionMoveToCollectionAdapter(); - } - @Override - public Adapter caseOperationCall(OperationCall object) { - return createOperationCallAdapter(); - } - @Override - public Adapter caseOperationArgument(OperationArgument object) { - return createOperationArgumentAdapter(); - } - @Override - public Adapter caseValueArgument(ValueArgument object) { - return createValueArgumentAdapter(); - } - @Override - public Adapter caseReferenceArgument(ReferenceArgument object) { - return createReferenceArgumentAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.ModelChangeSet Model Change Set}'. - * - * 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 metamodels.Changes.ModelChangeSet - * @generated - */ - public Adapter createModelChangeSetAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.ModelChange Model Change}'. - * - * 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 metamodels.Changes.ModelChange - * @generated - */ - public Adapter createModelChangeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.ElementaryChange Elementary Change}'. - * - * 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 metamodels.Changes.ElementaryChange - * @generated - */ - public Adapter createElementaryChangeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.ChangeTransaction Change Transaction}'. - * - * 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 metamodels.Changes.ChangeTransaction - * @generated - */ - public Adapter createChangeTransactionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.CompositionChange Composition Change}'. - * - * 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 metamodels.Changes.CompositionChange - * @generated - */ - public Adapter createCompositionChangeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.AssociationChange Association Change}'. - * - * 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 metamodels.Changes.AssociationChange - * @generated - */ - public Adapter createAssociationChangeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.AttributeChange Attribute Change}'. - * - * 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 metamodels.Changes.AttributeChange - * @generated - */ - public Adapter createAttributeChangeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.AssociationCollectionDeletion Association Collection Deletion}'. - * - * 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 metamodels.Changes.AssociationCollectionDeletion - * @generated - */ - public Adapter createAssociationCollectionDeletionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.CompositionCollectionDeletion Composition Collection Deletion}'. - * - * 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 metamodels.Changes.CompositionCollectionDeletion - * @generated - */ - public Adapter createCompositionCollectionDeletionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.AttributeCollectionDeletion Attribute Collection Deletion}'. - * - * 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 metamodels.Changes.AttributeCollectionDeletion - * @generated - */ - public Adapter createAttributeCollectionDeletionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.AssociationCollectionInsertion Association Collection Insertion}'. - * - * 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 metamodels.Changes.AssociationCollectionInsertion - * @generated - */ - public Adapter createAssociationCollectionInsertionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.CompositionCollectionInsertion Composition Collection Insertion}'. - * - * 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 metamodels.Changes.CompositionCollectionInsertion - * @generated - */ - public Adapter createCompositionCollectionInsertionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.AttributeCollectionInsertion Attribute Collection Insertion}'. - * - * 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 metamodels.Changes.AttributeCollectionInsertion - * @generated - */ - public Adapter createAttributeCollectionInsertionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.AssociationCollectionReset Association Collection Reset}'. - * - * 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 metamodels.Changes.AssociationCollectionReset - * @generated - */ - public Adapter createAssociationCollectionResetAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.CompositionCollectionReset Composition Collection Reset}'. - * - * 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 metamodels.Changes.CompositionCollectionReset - * @generated - */ - public Adapter createCompositionCollectionResetAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.AttributeCollectionReset Attribute Collection Reset}'. - * - * 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 metamodels.Changes.AttributeCollectionReset - * @generated - */ - public Adapter createAttributeCollectionResetAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.AssociationListDeletion Association List Deletion}'. - * - * 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 metamodels.Changes.AssociationListDeletion - * @generated - */ - public Adapter createAssociationListDeletionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.CompositionListDeletion Composition List Deletion}'. - * - * 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 metamodels.Changes.CompositionListDeletion - * @generated - */ - public Adapter createCompositionListDeletionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.AttributeListDeletion Attribute List Deletion}'. - * - * 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 metamodels.Changes.AttributeListDeletion - * @generated - */ - public Adapter createAttributeListDeletionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.AssociationListInsertion Association List Insertion}'. - * - * 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 metamodels.Changes.AssociationListInsertion - * @generated - */ - public Adapter createAssociationListInsertionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.CompositionListInsertion Composition List Insertion}'. - * - * 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 metamodels.Changes.CompositionListInsertion - * @generated - */ - public Adapter createCompositionListInsertionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.AttributeListInsertion Attribute List Insertion}'. - * - * 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 metamodels.Changes.AttributeListInsertion - * @generated - */ - public Adapter createAttributeListInsertionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.AttributePropertyChange Attribute Property Change}'. - * - * 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 metamodels.Changes.AttributePropertyChange - * @generated - */ - public Adapter createAttributePropertyChangeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.AssociationPropertyChange Association Property Change}'. - * - * 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 metamodels.Changes.AssociationPropertyChange - * @generated - */ - public Adapter createAssociationPropertyChangeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.CompositionPropertyChange Composition Property Change}'. - * - * 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 metamodels.Changes.CompositionPropertyChange - * @generated - */ - public Adapter createCompositionPropertyChangeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.CompositionMoveIntoProperty Composition Move Into Property}'. - * - * 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 metamodels.Changes.CompositionMoveIntoProperty - * @generated - */ - public Adapter createCompositionMoveIntoPropertyAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.CompositionMoveToList Composition Move To List}'. - * - * 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 metamodels.Changes.CompositionMoveToList - * @generated - */ - public Adapter createCompositionMoveToListAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.CompositionMoveToCollection Composition Move To Collection}'. - * - * 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 metamodels.Changes.CompositionMoveToCollection - * @generated - */ - public Adapter createCompositionMoveToCollectionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.OperationCall Operation Call}'. - * - * 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 metamodels.Changes.OperationCall - * @generated - */ - public Adapter createOperationCallAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.OperationArgument Operation Argument}'. - * - * 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 metamodels.Changes.OperationArgument - * @generated - */ - public Adapter createOperationArgumentAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.ValueArgument Value Argument}'. - * - * 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 metamodels.Changes.ValueArgument - * @generated - */ - public Adapter createValueArgumentAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Changes.ReferenceArgument Reference Argument}'. - * - * 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 metamodels.Changes.ReferenceArgument - * @generated - */ - public Adapter createReferenceArgumentAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //ChangesAdapterFactory diff --git a/solutions/java/app/src/main/java/metamodels/Changes/util/ChangesSwitch.java b/solutions/java/app/src/main/java/metamodels/Changes/util/ChangesSwitch.java deleted file mode 100644 index f447e6d..0000000 --- a/solutions/java/app/src/main/java/metamodels/Changes/util/ChangesSwitch.java +++ /dev/null @@ -1,832 +0,0 @@ -/** - */ -package metamodels.Changes.util; - -import metamodels.Changes.*; - -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 metamodels.Changes.ChangesPackage - * @generated - */ -public class ChangesSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static ChangesPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public ChangesSwitch() { - if (modelPackage == null) { - modelPackage = ChangesPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * 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 ChangesPackage.MODEL_CHANGE_SET: { - ModelChangeSet modelChangeSet = (ModelChangeSet)theEObject; - T result = caseModelChangeSet(modelChangeSet); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.MODEL_CHANGE: { - ModelChange modelChange = (ModelChange)theEObject; - T result = caseModelChange(modelChange); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ELEMENTARY_CHANGE: { - ElementaryChange elementaryChange = (ElementaryChange)theEObject; - T result = caseElementaryChange(elementaryChange); - if (result == null) result = caseModelChange(elementaryChange); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.CHANGE_TRANSACTION: { - ChangeTransaction changeTransaction = (ChangeTransaction)theEObject; - T result = caseChangeTransaction(changeTransaction); - if (result == null) result = caseModelChange(changeTransaction); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.COMPOSITION_CHANGE: { - CompositionChange compositionChange = (CompositionChange)theEObject; - T result = caseCompositionChange(compositionChange); - if (result == null) result = caseElementaryChange(compositionChange); - if (result == null) result = caseModelChange(compositionChange); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ASSOCIATION_CHANGE: { - AssociationChange associationChange = (AssociationChange)theEObject; - T result = caseAssociationChange(associationChange); - if (result == null) result = caseElementaryChange(associationChange); - if (result == null) result = caseModelChange(associationChange); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ATTRIBUTE_CHANGE: { - AttributeChange attributeChange = (AttributeChange)theEObject; - T result = caseAttributeChange(attributeChange); - if (result == null) result = caseElementaryChange(attributeChange); - if (result == null) result = caseModelChange(attributeChange); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ASSOCIATION_COLLECTION_DELETION: { - AssociationCollectionDeletion associationCollectionDeletion = (AssociationCollectionDeletion)theEObject; - T result = caseAssociationCollectionDeletion(associationCollectionDeletion); - if (result == null) result = caseAssociationChange(associationCollectionDeletion); - if (result == null) result = caseElementaryChange(associationCollectionDeletion); - if (result == null) result = caseModelChange(associationCollectionDeletion); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.COMPOSITION_COLLECTION_DELETION: { - CompositionCollectionDeletion compositionCollectionDeletion = (CompositionCollectionDeletion)theEObject; - T result = caseCompositionCollectionDeletion(compositionCollectionDeletion); - if (result == null) result = caseCompositionChange(compositionCollectionDeletion); - if (result == null) result = caseElementaryChange(compositionCollectionDeletion); - if (result == null) result = caseModelChange(compositionCollectionDeletion); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ATTRIBUTE_COLLECTION_DELETION: { - AttributeCollectionDeletion attributeCollectionDeletion = (AttributeCollectionDeletion)theEObject; - T result = caseAttributeCollectionDeletion(attributeCollectionDeletion); - if (result == null) result = caseAttributeChange(attributeCollectionDeletion); - if (result == null) result = caseElementaryChange(attributeCollectionDeletion); - if (result == null) result = caseModelChange(attributeCollectionDeletion); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ASSOCIATION_COLLECTION_INSERTION: { - AssociationCollectionInsertion associationCollectionInsertion = (AssociationCollectionInsertion)theEObject; - T result = caseAssociationCollectionInsertion(associationCollectionInsertion); - if (result == null) result = caseAssociationChange(associationCollectionInsertion); - if (result == null) result = caseElementaryChange(associationCollectionInsertion); - if (result == null) result = caseModelChange(associationCollectionInsertion); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.COMPOSITION_COLLECTION_INSERTION: { - CompositionCollectionInsertion compositionCollectionInsertion = (CompositionCollectionInsertion)theEObject; - T result = caseCompositionCollectionInsertion(compositionCollectionInsertion); - if (result == null) result = caseCompositionChange(compositionCollectionInsertion); - if (result == null) result = caseElementaryChange(compositionCollectionInsertion); - if (result == null) result = caseModelChange(compositionCollectionInsertion); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ATTRIBUTE_COLLECTION_INSERTION: { - AttributeCollectionInsertion attributeCollectionInsertion = (AttributeCollectionInsertion)theEObject; - T result = caseAttributeCollectionInsertion(attributeCollectionInsertion); - if (result == null) result = caseAttributeChange(attributeCollectionInsertion); - if (result == null) result = caseElementaryChange(attributeCollectionInsertion); - if (result == null) result = caseModelChange(attributeCollectionInsertion); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ASSOCIATION_COLLECTION_RESET: { - AssociationCollectionReset associationCollectionReset = (AssociationCollectionReset)theEObject; - T result = caseAssociationCollectionReset(associationCollectionReset); - if (result == null) result = caseAssociationChange(associationCollectionReset); - if (result == null) result = caseElementaryChange(associationCollectionReset); - if (result == null) result = caseModelChange(associationCollectionReset); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.COMPOSITION_COLLECTION_RESET: { - CompositionCollectionReset compositionCollectionReset = (CompositionCollectionReset)theEObject; - T result = caseCompositionCollectionReset(compositionCollectionReset); - if (result == null) result = caseCompositionChange(compositionCollectionReset); - if (result == null) result = caseElementaryChange(compositionCollectionReset); - if (result == null) result = caseModelChange(compositionCollectionReset); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ATTRIBUTE_COLLECTION_RESET: { - AttributeCollectionReset attributeCollectionReset = (AttributeCollectionReset)theEObject; - T result = caseAttributeCollectionReset(attributeCollectionReset); - if (result == null) result = caseAttributeChange(attributeCollectionReset); - if (result == null) result = caseElementaryChange(attributeCollectionReset); - if (result == null) result = caseModelChange(attributeCollectionReset); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ASSOCIATION_LIST_DELETION: { - AssociationListDeletion associationListDeletion = (AssociationListDeletion)theEObject; - T result = caseAssociationListDeletion(associationListDeletion); - if (result == null) result = caseAssociationChange(associationListDeletion); - if (result == null) result = caseElementaryChange(associationListDeletion); - if (result == null) result = caseModelChange(associationListDeletion); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.COMPOSITION_LIST_DELETION: { - CompositionListDeletion compositionListDeletion = (CompositionListDeletion)theEObject; - T result = caseCompositionListDeletion(compositionListDeletion); - if (result == null) result = caseCompositionChange(compositionListDeletion); - if (result == null) result = caseElementaryChange(compositionListDeletion); - if (result == null) result = caseModelChange(compositionListDeletion); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ATTRIBUTE_LIST_DELETION: { - AttributeListDeletion attributeListDeletion = (AttributeListDeletion)theEObject; - T result = caseAttributeListDeletion(attributeListDeletion); - if (result == null) result = caseAttributeChange(attributeListDeletion); - if (result == null) result = caseElementaryChange(attributeListDeletion); - if (result == null) result = caseModelChange(attributeListDeletion); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ASSOCIATION_LIST_INSERTION: { - AssociationListInsertion associationListInsertion = (AssociationListInsertion)theEObject; - T result = caseAssociationListInsertion(associationListInsertion); - if (result == null) result = caseAssociationChange(associationListInsertion); - if (result == null) result = caseElementaryChange(associationListInsertion); - if (result == null) result = caseModelChange(associationListInsertion); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.COMPOSITION_LIST_INSERTION: { - CompositionListInsertion compositionListInsertion = (CompositionListInsertion)theEObject; - T result = caseCompositionListInsertion(compositionListInsertion); - if (result == null) result = caseCompositionChange(compositionListInsertion); - if (result == null) result = caseElementaryChange(compositionListInsertion); - if (result == null) result = caseModelChange(compositionListInsertion); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ATTRIBUTE_LIST_INSERTION: { - AttributeListInsertion attributeListInsertion = (AttributeListInsertion)theEObject; - T result = caseAttributeListInsertion(attributeListInsertion); - if (result == null) result = caseAttributeChange(attributeListInsertion); - if (result == null) result = caseElementaryChange(attributeListInsertion); - if (result == null) result = caseModelChange(attributeListInsertion); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ATTRIBUTE_PROPERTY_CHANGE: { - AttributePropertyChange attributePropertyChange = (AttributePropertyChange)theEObject; - T result = caseAttributePropertyChange(attributePropertyChange); - if (result == null) result = caseAttributeChange(attributePropertyChange); - if (result == null) result = caseElementaryChange(attributePropertyChange); - if (result == null) result = caseModelChange(attributePropertyChange); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.ASSOCIATION_PROPERTY_CHANGE: { - AssociationPropertyChange associationPropertyChange = (AssociationPropertyChange)theEObject; - T result = caseAssociationPropertyChange(associationPropertyChange); - if (result == null) result = caseAssociationChange(associationPropertyChange); - if (result == null) result = caseElementaryChange(associationPropertyChange); - if (result == null) result = caseModelChange(associationPropertyChange); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.COMPOSITION_PROPERTY_CHANGE: { - CompositionPropertyChange compositionPropertyChange = (CompositionPropertyChange)theEObject; - T result = caseCompositionPropertyChange(compositionPropertyChange); - if (result == null) result = caseCompositionChange(compositionPropertyChange); - if (result == null) result = caseElementaryChange(compositionPropertyChange); - if (result == null) result = caseModelChange(compositionPropertyChange); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.COMPOSITION_MOVE_INTO_PROPERTY: { - CompositionMoveIntoProperty compositionMoveIntoProperty = (CompositionMoveIntoProperty)theEObject; - T result = caseCompositionMoveIntoProperty(compositionMoveIntoProperty); - if (result == null) result = caseCompositionChange(compositionMoveIntoProperty); - if (result == null) result = caseElementaryChange(compositionMoveIntoProperty); - if (result == null) result = caseModelChange(compositionMoveIntoProperty); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.COMPOSITION_MOVE_TO_LIST: { - CompositionMoveToList compositionMoveToList = (CompositionMoveToList)theEObject; - T result = caseCompositionMoveToList(compositionMoveToList); - if (result == null) result = caseCompositionChange(compositionMoveToList); - if (result == null) result = caseElementaryChange(compositionMoveToList); - if (result == null) result = caseModelChange(compositionMoveToList); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.COMPOSITION_MOVE_TO_COLLECTION: { - CompositionMoveToCollection compositionMoveToCollection = (CompositionMoveToCollection)theEObject; - T result = caseCompositionMoveToCollection(compositionMoveToCollection); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.OPERATION_CALL: { - OperationCall operationCall = (OperationCall)theEObject; - T result = caseOperationCall(operationCall); - if (result == null) result = caseModelChange(operationCall); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.OPERATION_ARGUMENT: { - OperationArgument operationArgument = (OperationArgument)theEObject; - T result = caseOperationArgument(operationArgument); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.VALUE_ARGUMENT: { - ValueArgument valueArgument = (ValueArgument)theEObject; - T result = caseValueArgument(valueArgument); - if (result == null) result = caseOperationArgument(valueArgument); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ChangesPackage.REFERENCE_ARGUMENT: { - ReferenceArgument referenceArgument = (ReferenceArgument)theEObject; - T result = caseReferenceArgument(referenceArgument); - if (result == null) result = caseOperationArgument(referenceArgument); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Model Change Set'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Model Change Set'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseModelChangeSet(ModelChangeSet object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Model Change'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Model Change'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseModelChange(ModelChange object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Elementary Change'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Elementary Change'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseElementaryChange(ElementaryChange object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Change Transaction'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Change Transaction'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseChangeTransaction(ChangeTransaction object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Composition Change'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Composition Change'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCompositionChange(CompositionChange object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Association Change'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Association Change'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAssociationChange(AssociationChange object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Attribute Change'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Attribute Change'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAttributeChange(AttributeChange object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Association Collection Deletion'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Association Collection Deletion'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAssociationCollectionDeletion(AssociationCollectionDeletion object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Composition Collection Deletion'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Composition Collection Deletion'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCompositionCollectionDeletion(CompositionCollectionDeletion object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Attribute Collection Deletion'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Attribute Collection Deletion'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAttributeCollectionDeletion(AttributeCollectionDeletion object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Association Collection Insertion'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Association Collection Insertion'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAssociationCollectionInsertion(AssociationCollectionInsertion object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Composition Collection Insertion'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Composition Collection Insertion'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCompositionCollectionInsertion(CompositionCollectionInsertion object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Attribute Collection Insertion'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Attribute Collection Insertion'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAttributeCollectionInsertion(AttributeCollectionInsertion object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Association Collection Reset'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Association Collection Reset'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAssociationCollectionReset(AssociationCollectionReset object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Composition Collection Reset'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Composition Collection Reset'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCompositionCollectionReset(CompositionCollectionReset object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Attribute Collection Reset'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Attribute Collection Reset'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAttributeCollectionReset(AttributeCollectionReset object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Association List Deletion'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Association List Deletion'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAssociationListDeletion(AssociationListDeletion object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Composition List Deletion'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Composition List Deletion'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCompositionListDeletion(CompositionListDeletion object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Attribute List Deletion'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Attribute List Deletion'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAttributeListDeletion(AttributeListDeletion object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Association List Insertion'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Association List Insertion'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAssociationListInsertion(AssociationListInsertion object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Composition List Insertion'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Composition List Insertion'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCompositionListInsertion(CompositionListInsertion object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Attribute List Insertion'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Attribute List Insertion'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAttributeListInsertion(AttributeListInsertion object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Attribute Property Change'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Attribute Property Change'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAttributePropertyChange(AttributePropertyChange object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Association Property Change'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Association Property Change'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAssociationPropertyChange(AssociationPropertyChange object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Composition Property Change'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Composition Property Change'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCompositionPropertyChange(CompositionPropertyChange object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Composition Move Into Property'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Composition Move Into Property'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCompositionMoveIntoProperty(CompositionMoveIntoProperty object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Composition Move To List'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Composition Move To List'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCompositionMoveToList(CompositionMoveToList object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Composition Move To Collection'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Composition Move To Collection'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCompositionMoveToCollection(CompositionMoveToCollection object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Operation Call'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Operation Call'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseOperationCall(OperationCall object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Operation Argument'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Operation Argument'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseOperationArgument(OperationArgument object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Value Argument'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Value Argument'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseValueArgument(ValueArgument object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Reference Argument'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Reference Argument'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseReferenceArgument(ReferenceArgument object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} //ChangesSwitch diff --git a/solutions/java/app/src/main/java/metamodels/PrimitiveTypes/PrimitiveTypesFactory.java b/solutions/java/app/src/main/java/metamodels/PrimitiveTypes/PrimitiveTypesFactory.java deleted file mode 100644 index 8d69871..0000000 --- a/solutions/java/app/src/main/java/metamodels/PrimitiveTypes/PrimitiveTypesFactory.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - */ -package metamodels.PrimitiveTypes; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see metamodels.PrimitiveTypes.PrimitiveTypesPackage - * @generated - */ -public interface PrimitiveTypesFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - PrimitiveTypesFactory eINSTANCE = metamodels.PrimitiveTypes.impl.PrimitiveTypesFactoryImpl.init(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - PrimitiveTypesPackage getPrimitiveTypesPackage(); - -} //PrimitiveTypesFactory diff --git a/solutions/java/app/src/main/java/metamodels/PrimitiveTypes/PrimitiveTypesPackage.java b/solutions/java/app/src/main/java/metamodels/PrimitiveTypes/PrimitiveTypesPackage.java deleted file mode 100644 index 4953256..0000000 --- a/solutions/java/app/src/main/java/metamodels/PrimitiveTypes/PrimitiveTypesPackage.java +++ /dev/null @@ -1,176 +0,0 @@ -/** - */ -package metamodels.PrimitiveTypes; - -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EPackage; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see metamodels.PrimitiveTypes.PrimitiveTypesFactory - * @model kind="package" - * @generated - */ -public interface PrimitiveTypesPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "PrimitiveTypes"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.example.org/PrimitiveTypes"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "PrimitiveTypes"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - PrimitiveTypesPackage eINSTANCE = metamodels.PrimitiveTypes.impl.PrimitiveTypesPackageImpl.init(); - - /** - * The meta object id for the 'Boolean' data type. - * - * - * @see java.lang.Object - * @see metamodels.PrimitiveTypes.impl.PrimitiveTypesPackageImpl#getBoolean() - * @generated - */ - int BOOLEAN = 0; - - /** - * The meta object id for the 'Integer' data type. - * - * - * @see java.lang.Object - * @see metamodels.PrimitiveTypes.impl.PrimitiveTypesPackageImpl#getInteger() - * @generated - */ - int INTEGER = 1; - - /** - * The meta object id for the 'String' data type. - * - * - * @see java.lang.Object - * @see metamodels.PrimitiveTypes.impl.PrimitiveTypesPackageImpl#getString() - * @generated - */ - int STRING = 2; - - - /** - * Returns the meta object for data type '{@link java.lang.Object Boolean}'. - * - * - * @return the meta object for data type 'Boolean'. - * @see java.lang.Object - * @model instanceClass="java.lang.Object" - * @generated - */ - EDataType getBoolean(); - - /** - * Returns the meta object for data type '{@link java.lang.Object Integer}'. - * - * - * @return the meta object for data type 'Integer'. - * @see java.lang.Object - * @model instanceClass="java.lang.Object" - * @generated - */ - EDataType getInteger(); - - /** - * Returns the meta object for data type '{@link java.lang.Object String}'. - * - * - * @return the meta object for data type 'String'. - * @see java.lang.Object - * @model instanceClass="java.lang.Object" - * @generated - */ - EDataType getString(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - PrimitiveTypesFactory getPrimitiveTypesFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the 'Boolean' data type. - * - * - * @see java.lang.Object - * @see metamodels.PrimitiveTypes.impl.PrimitiveTypesPackageImpl#getBoolean() - * @generated - */ - EDataType BOOLEAN = eINSTANCE.getBoolean(); - - /** - * The meta object literal for the 'Integer' data type. - * - * - * @see java.lang.Object - * @see metamodels.PrimitiveTypes.impl.PrimitiveTypesPackageImpl#getInteger() - * @generated - */ - EDataType INTEGER = eINSTANCE.getInteger(); - - /** - * The meta object literal for the 'String' data type. - * - * - * @see java.lang.Object - * @see metamodels.PrimitiveTypes.impl.PrimitiveTypesPackageImpl#getString() - * @generated - */ - EDataType STRING = eINSTANCE.getString(); - - } - -} //PrimitiveTypesPackage diff --git a/solutions/java/app/src/main/java/metamodels/PrimitiveTypes/impl/PrimitiveTypesFactoryImpl.java b/solutions/java/app/src/main/java/metamodels/PrimitiveTypes/impl/PrimitiveTypesFactoryImpl.java deleted file mode 100644 index c3b8ddc..0000000 --- a/solutions/java/app/src/main/java/metamodels/PrimitiveTypes/impl/PrimitiveTypesFactoryImpl.java +++ /dev/null @@ -1,177 +0,0 @@ -/** - */ -package metamodels.PrimitiveTypes.impl; - -import metamodels.PrimitiveTypes.*; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.impl.EFactoryImpl; - -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class PrimitiveTypesFactoryImpl extends EFactoryImpl implements PrimitiveTypesFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static PrimitiveTypesFactory init() { - try { - PrimitiveTypesFactory thePrimitiveTypesFactory = (PrimitiveTypesFactory)EPackage.Registry.INSTANCE.getEFactory(PrimitiveTypesPackage.eNS_URI); - if (thePrimitiveTypesFactory != null) { - return thePrimitiveTypesFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new PrimitiveTypesFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public PrimitiveTypesFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) { - case PrimitiveTypesPackage.BOOLEAN: - return createBooleanFromString(eDataType, initialValue); - case PrimitiveTypesPackage.INTEGER: - return createIntegerFromString(eDataType, initialValue); - case PrimitiveTypesPackage.STRING: - return createStringFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) { - case PrimitiveTypesPackage.BOOLEAN: - return convertBooleanToString(eDataType, instanceValue); - case PrimitiveTypesPackage.INTEGER: - return convertIntegerToString(eDataType, instanceValue); - case PrimitiveTypesPackage.STRING: - return convertStringToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public Object createBooleanFromString(EDataType eDataType, String initialValue) { - return super.createFromString(eDataType, initialValue); - } - - /** - * - * - * @generated - */ - public String convertBooleanToString(EDataType eDataType, Object instanceValue) { - return super.convertToString(eDataType, instanceValue); - } - - /** - * - * - * @generated - */ - public Object createIntegerFromString(EDataType eDataType, String initialValue) { - return super.createFromString(eDataType, initialValue); - } - - /** - * - * - * @generated - */ - public String convertIntegerToString(EDataType eDataType, Object instanceValue) { - return super.convertToString(eDataType, instanceValue); - } - - /** - * - * - * @generated - */ - public Object createStringFromString(EDataType eDataType, String initialValue) { - return super.createFromString(eDataType, initialValue); - } - - /** - * - * - * @generated - */ - public String convertStringToString(EDataType eDataType, Object instanceValue) { - return super.convertToString(eDataType, instanceValue); - } - - /** - * - * - * @generated - */ - public PrimitiveTypesPackage getPrimitiveTypesPackage() { - return (PrimitiveTypesPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static PrimitiveTypesPackage getPackage() { - return PrimitiveTypesPackage.eINSTANCE; - } - -} //PrimitiveTypesFactoryImpl diff --git a/solutions/java/app/src/main/java/metamodels/PrimitiveTypes/impl/PrimitiveTypesPackageImpl.java b/solutions/java/app/src/main/java/metamodels/PrimitiveTypes/impl/PrimitiveTypesPackageImpl.java deleted file mode 100644 index f7eda1f..0000000 --- a/solutions/java/app/src/main/java/metamodels/PrimitiveTypes/impl/PrimitiveTypesPackageImpl.java +++ /dev/null @@ -1,200 +0,0 @@ -/** - */ -package metamodels.PrimitiveTypes.impl; - -import metamodels.PrimitiveTypes.PrimitiveTypesFactory; -import metamodels.PrimitiveTypes.PrimitiveTypesPackage; -import metamodels.Relational.RelationalPackage; -import metamodels.Relational.impl.RelationalPackageImpl; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class PrimitiveTypesPackageImpl extends EPackageImpl implements PrimitiveTypesPackage { - /** - * - * - * @generated - */ - private EDataType booleanEDataType = null; - - /** - * - * - * @generated - */ - private EDataType integerEDataType = null; - - /** - * - * - * @generated - */ - private EDataType stringEDataType = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see metamodels.PrimitiveTypes.PrimitiveTypesPackage#eNS_URI - * @see #init() - * @generated - */ - private PrimitiveTypesPackageImpl() { - super(eNS_URI, PrimitiveTypesFactory.eINSTANCE); - } - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link PrimitiveTypesPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static PrimitiveTypesPackage init() { - if (isInited) return (PrimitiveTypesPackage)EPackage.Registry.INSTANCE.getEPackage(PrimitiveTypesPackage.eNS_URI); - - // Obtain or create and register package - Object registeredPrimitiveTypesPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - PrimitiveTypesPackageImpl thePrimitiveTypesPackage = registeredPrimitiveTypesPackage instanceof PrimitiveTypesPackageImpl ? (PrimitiveTypesPackageImpl)registeredPrimitiveTypesPackage : new PrimitiveTypesPackageImpl(); - - isInited = true; - - // Obtain or create and register interdependencies - Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(RelationalPackage.eNS_URI); - RelationalPackageImpl theRelationalPackage = (RelationalPackageImpl)(registeredPackage instanceof RelationalPackageImpl ? registeredPackage : RelationalPackage.eINSTANCE); - - // Create package meta-data objects - thePrimitiveTypesPackage.createPackageContents(); - theRelationalPackage.createPackageContents(); - - // Initialize created meta-data - thePrimitiveTypesPackage.initializePackageContents(); - theRelationalPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - thePrimitiveTypesPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(PrimitiveTypesPackage.eNS_URI, thePrimitiveTypesPackage); - return thePrimitiveTypesPackage; - } - - /** - * - * - * @generated - */ - public EDataType getBoolean() { - return booleanEDataType; - } - - /** - * - * - * @generated - */ - public EDataType getInteger() { - return integerEDataType; - } - - /** - * - * - * @generated - */ - public EDataType getString() { - return stringEDataType; - } - - /** - * - * - * @generated - */ - public PrimitiveTypesFactory getPrimitiveTypesFactory() { - return (PrimitiveTypesFactory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create data types - booleanEDataType = createEDataType(BOOLEAN); - integerEDataType = createEDataType(INTEGER); - stringEDataType = createEDataType(STRING); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Initialize data types - initEDataType(booleanEDataType, Object.class, "Boolean", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); - initEDataType(integerEDataType, Object.class, "Integer", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); - initEDataType(stringEDataType, Object.class, "String", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); - - // Create resource - createResource(eNS_URI); - } - -} //PrimitiveTypesPackageImpl diff --git a/solutions/java/app/src/main/java/metamodels/Relational/Column.java b/solutions/java/app/src/main/java/metamodels/Relational/Column.java deleted file mode 100644 index 7c1acb4..0000000 --- a/solutions/java/app/src/main/java/metamodels/Relational/Column.java +++ /dev/null @@ -1,95 +0,0 @@ -/** - */ -package metamodels.Relational; - - -/** - * - * A representation of the model object 'Column'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Relational.Column#getOwner Owner}
  • - *
  • {@link metamodels.Relational.Column#getKeyOf Key Of}
  • - *
  • {@link metamodels.Relational.Column#getType Type}
  • - *
- * - * @see metamodels.Relational.RelationalPackage#getColumn() - * @model - * @generated - */ -public interface Column extends Named { - /** - * Returns the value of the 'Owner' container reference. - * It is bidirectional and its opposite is '{@link metamodels.Relational.Table#getCol Col}'. - * - * - * @return the value of the 'Owner' container reference. - * @see #setOwner(Table) - * @see metamodels.Relational.RelationalPackage#getColumn_Owner() - * @see metamodels.Relational.Table#getCol - * @model opposite="col" required="true" transient="false" ordered="false" - * @generated - */ - Table getOwner(); - - /** - * Sets the value of the '{@link metamodels.Relational.Column#getOwner Owner}' container reference. - * - * - * @param value the new value of the 'Owner' container reference. - * @see #getOwner() - * @generated - */ - void setOwner(Table value); - - /** - * Returns the value of the 'Key Of' reference. - * It is bidirectional and its opposite is '{@link metamodels.Relational.Table#getKey Key}'. - * - * - * @return the value of the 'Key Of' reference. - * @see #setKeyOf(Table) - * @see metamodels.Relational.RelationalPackage#getColumn_KeyOf() - * @see metamodels.Relational.Table#getKey - * @model opposite="key" ordered="false" - * @generated - */ - Table getKeyOf(); - - /** - * Sets the value of the '{@link metamodels.Relational.Column#getKeyOf Key Of}' reference. - * - * - * @param value the new value of the 'Key Of' reference. - * @see #getKeyOf() - * @generated - */ - void setKeyOf(Table value); - - /** - * Returns the value of the 'Type' reference. - * - * - * @return the value of the 'Type' reference. - * @see #setType(Type) - * @see metamodels.Relational.RelationalPackage#getColumn_Type() - * @model required="true" ordered="false" - * @generated - */ - Type getType(); - - /** - * Sets the value of the '{@link metamodels.Relational.Column#getType Type}' reference. - * - * - * @param value the new value of the 'Type' reference. - * @see #getType() - * @generated - */ - void setType(Type value); - -} // Column diff --git a/solutions/java/app/src/main/java/metamodels/Relational/Named.java b/solutions/java/app/src/main/java/metamodels/Relational/Named.java deleted file mode 100644 index 39379d5..0000000 --- a/solutions/java/app/src/main/java/metamodels/Relational/Named.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package metamodels.Relational; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Named'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Relational.Named#getName Name}
  • - *
- * - * @see metamodels.Relational.RelationalPackage#getNamed() - * @model abstract="true" - * @generated - */ -public interface Named extends EObject { - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see metamodels.Relational.RelationalPackage#getNamed_Name() - * @model required="true" ordered="false" - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link metamodels.Relational.Named#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // Named diff --git a/solutions/java/app/src/main/java/metamodels/Relational/RelationalFactory.java b/solutions/java/app/src/main/java/metamodels/Relational/RelationalFactory.java deleted file mode 100644 index fb08ac9..0000000 --- a/solutions/java/app/src/main/java/metamodels/Relational/RelationalFactory.java +++ /dev/null @@ -1,60 +0,0 @@ -/** - */ -package metamodels.Relational; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see metamodels.Relational.RelationalPackage - * @generated - */ -public interface RelationalFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - RelationalFactory eINSTANCE = metamodels.Relational.impl.RelationalFactoryImpl.init(); - - /** - * Returns a new object of class 'Table'. - * - * - * @return a new object of class 'Table'. - * @generated - */ - Table createTable(); - - /** - * Returns a new object of class 'Column'. - * - * - * @return a new object of class 'Column'. - * @generated - */ - Column createColumn(); - - /** - * Returns a new object of class 'Type'. - * - * - * @return a new object of class 'Type'. - * @generated - */ - Type createType(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - RelationalPackage getRelationalPackage(); - -} //RelationalFactory diff --git a/solutions/java/app/src/main/java/metamodels/Relational/RelationalPackage.java b/solutions/java/app/src/main/java/metamodels/Relational/RelationalPackage.java deleted file mode 100644 index ae8b93a..0000000 --- a/solutions/java/app/src/main/java/metamodels/Relational/RelationalPackage.java +++ /dev/null @@ -1,472 +0,0 @@ -/** - */ -package metamodels.Relational; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see metamodels.Relational.RelationalFactory - * @model kind="package" - * @generated - */ -public interface RelationalPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "Relational"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.example.org/Relational"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "Relational"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - RelationalPackage eINSTANCE = metamodels.Relational.impl.RelationalPackageImpl.init(); - - /** - * The meta object id for the '{@link metamodels.Relational.impl.NamedImpl Named}' class. - * - * - * @see metamodels.Relational.impl.NamedImpl - * @see metamodels.Relational.impl.RelationalPackageImpl#getNamed() - * @generated - */ - int NAMED = 0; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int NAMED__NAME = 0; - - /** - * The number of structural features of the 'Named' class. - * - * - * @generated - * @ordered - */ - int NAMED_FEATURE_COUNT = 1; - - /** - * The number of operations of the 'Named' class. - * - * - * @generated - * @ordered - */ - int NAMED_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link metamodels.Relational.impl.TableImpl Table}' class. - * - * - * @see metamodels.Relational.impl.TableImpl - * @see metamodels.Relational.impl.RelationalPackageImpl#getTable() - * @generated - */ - int TABLE = 1; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int TABLE__NAME = NAMED__NAME; - - /** - * The feature id for the 'Col' containment reference list. - * - * - * @generated - * @ordered - */ - int TABLE__COL = NAMED_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Key' reference list. - * - * - * @generated - * @ordered - */ - int TABLE__KEY = NAMED_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Table' class. - * - * - * @generated - * @ordered - */ - int TABLE_FEATURE_COUNT = NAMED_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'Table' class. - * - * - * @generated - * @ordered - */ - int TABLE_OPERATION_COUNT = NAMED_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Relational.impl.ColumnImpl Column}' class. - * - * - * @see metamodels.Relational.impl.ColumnImpl - * @see metamodels.Relational.impl.RelationalPackageImpl#getColumn() - * @generated - */ - int COLUMN = 2; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int COLUMN__NAME = NAMED__NAME; - - /** - * The feature id for the 'Owner' container reference. - * - * - * @generated - * @ordered - */ - int COLUMN__OWNER = NAMED_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Key Of' reference. - * - * - * @generated - * @ordered - */ - int COLUMN__KEY_OF = NAMED_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Type' reference. - * - * - * @generated - * @ordered - */ - int COLUMN__TYPE = NAMED_FEATURE_COUNT + 2; - - /** - * The number of structural features of the 'Column' class. - * - * - * @generated - * @ordered - */ - int COLUMN_FEATURE_COUNT = NAMED_FEATURE_COUNT + 3; - - /** - * The number of operations of the 'Column' class. - * - * - * @generated - * @ordered - */ - int COLUMN_OPERATION_COUNT = NAMED_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.Relational.impl.TypeImpl Type}' class. - * - * - * @see metamodels.Relational.impl.TypeImpl - * @see metamodels.Relational.impl.RelationalPackageImpl#getType() - * @generated - */ - int TYPE = 3; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int TYPE__NAME = NAMED__NAME; - - /** - * The number of structural features of the 'Type' class. - * - * - * @generated - * @ordered - */ - int TYPE_FEATURE_COUNT = NAMED_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Type' class. - * - * - * @generated - * @ordered - */ - int TYPE_OPERATION_COUNT = NAMED_OPERATION_COUNT + 0; - - - /** - * Returns the meta object for class '{@link metamodels.Relational.Named Named}'. - * - * - * @return the meta object for class 'Named'. - * @see metamodels.Relational.Named - * @generated - */ - EClass getNamed(); - - /** - * Returns the meta object for the attribute '{@link metamodels.Relational.Named#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see metamodels.Relational.Named#getName() - * @see #getNamed() - * @generated - */ - EAttribute getNamed_Name(); - - /** - * Returns the meta object for class '{@link metamodels.Relational.Table Table}'. - * - * - * @return the meta object for class 'Table'. - * @see metamodels.Relational.Table - * @generated - */ - EClass getTable(); - - /** - * Returns the meta object for the containment reference list '{@link metamodels.Relational.Table#getCol Col}'. - * - * - * @return the meta object for the containment reference list 'Col'. - * @see metamodels.Relational.Table#getCol() - * @see #getTable() - * @generated - */ - EReference getTable_Col(); - - /** - * Returns the meta object for the reference list '{@link metamodels.Relational.Table#getKey Key}'. - * - * - * @return the meta object for the reference list 'Key'. - * @see metamodels.Relational.Table#getKey() - * @see #getTable() - * @generated - */ - EReference getTable_Key(); - - /** - * Returns the meta object for class '{@link metamodels.Relational.Column Column}'. - * - * - * @return the meta object for class 'Column'. - * @see metamodels.Relational.Column - * @generated - */ - EClass getColumn(); - - /** - * Returns the meta object for the container reference '{@link metamodels.Relational.Column#getOwner Owner}'. - * - * - * @return the meta object for the container reference 'Owner'. - * @see metamodels.Relational.Column#getOwner() - * @see #getColumn() - * @generated - */ - EReference getColumn_Owner(); - - /** - * Returns the meta object for the reference '{@link metamodels.Relational.Column#getKeyOf Key Of}'. - * - * - * @return the meta object for the reference 'Key Of'. - * @see metamodels.Relational.Column#getKeyOf() - * @see #getColumn() - * @generated - */ - EReference getColumn_KeyOf(); - - /** - * Returns the meta object for the reference '{@link metamodels.Relational.Column#getType Type}'. - * - * - * @return the meta object for the reference 'Type'. - * @see metamodels.Relational.Column#getType() - * @see #getColumn() - * @generated - */ - EReference getColumn_Type(); - - /** - * Returns the meta object for class '{@link metamodels.Relational.Type Type}'. - * - * - * @return the meta object for class 'Type'. - * @see metamodels.Relational.Type - * @generated - */ - EClass getType(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - RelationalFactory getRelationalFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link metamodels.Relational.impl.NamedImpl Named}' class. - * - * - * @see metamodels.Relational.impl.NamedImpl - * @see metamodels.Relational.impl.RelationalPackageImpl#getNamed() - * @generated - */ - EClass NAMED = eINSTANCE.getNamed(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * - * @generated - */ - EAttribute NAMED__NAME = eINSTANCE.getNamed_Name(); - - /** - * The meta object literal for the '{@link metamodels.Relational.impl.TableImpl Table}' class. - * - * - * @see metamodels.Relational.impl.TableImpl - * @see metamodels.Relational.impl.RelationalPackageImpl#getTable() - * @generated - */ - EClass TABLE = eINSTANCE.getTable(); - - /** - * The meta object literal for the 'Col' containment reference list feature. - * - * - * @generated - */ - EReference TABLE__COL = eINSTANCE.getTable_Col(); - - /** - * The meta object literal for the 'Key' reference list feature. - * - * - * @generated - */ - EReference TABLE__KEY = eINSTANCE.getTable_Key(); - - /** - * The meta object literal for the '{@link metamodels.Relational.impl.ColumnImpl Column}' class. - * - * - * @see metamodels.Relational.impl.ColumnImpl - * @see metamodels.Relational.impl.RelationalPackageImpl#getColumn() - * @generated - */ - EClass COLUMN = eINSTANCE.getColumn(); - - /** - * The meta object literal for the 'Owner' container reference feature. - * - * - * @generated - */ - EReference COLUMN__OWNER = eINSTANCE.getColumn_Owner(); - - /** - * The meta object literal for the 'Key Of' reference feature. - * - * - * @generated - */ - EReference COLUMN__KEY_OF = eINSTANCE.getColumn_KeyOf(); - - /** - * The meta object literal for the 'Type' reference feature. - * - * - * @generated - */ - EReference COLUMN__TYPE = eINSTANCE.getColumn_Type(); - - /** - * The meta object literal for the '{@link metamodels.Relational.impl.TypeImpl Type}' class. - * - * - * @see metamodels.Relational.impl.TypeImpl - * @see metamodels.Relational.impl.RelationalPackageImpl#getType() - * @generated - */ - EClass TYPE = eINSTANCE.getType(); - - } - -} //RelationalPackage diff --git a/solutions/java/app/src/main/java/metamodels/Relational/Table.java b/solutions/java/app/src/main/java/metamodels/Relational/Table.java deleted file mode 100644 index 4625568..0000000 --- a/solutions/java/app/src/main/java/metamodels/Relational/Table.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - */ -package metamodels.Relational; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'Table'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.Relational.Table#getCol Col}
  • - *
  • {@link metamodels.Relational.Table#getKey Key}
  • - *
- * - * @see metamodels.Relational.RelationalPackage#getTable() - * @model - * @generated - */ -public interface Table extends Named { - /** - * Returns the value of the 'Col' containment reference list. - * The list contents are of type {@link metamodels.Relational.Column}. - * It is bidirectional and its opposite is '{@link metamodels.Relational.Column#getOwner Owner}'. - * - * - * @return the value of the 'Col' containment reference list. - * @see metamodels.Relational.RelationalPackage#getTable_Col() - * @see metamodels.Relational.Column#getOwner - * @model opposite="owner" containment="true" - * @generated - */ - EList getCol(); - - /** - * Returns the value of the 'Key' reference list. - * The list contents are of type {@link metamodels.Relational.Column}. - * It is bidirectional and its opposite is '{@link metamodels.Relational.Column#getKeyOf Key Of}'. - * - * - * @return the value of the 'Key' reference list. - * @see metamodels.Relational.RelationalPackage#getTable_Key() - * @see metamodels.Relational.Column#getKeyOf - * @model opposite="keyOf" ordered="false" - * @generated - */ - EList getKey(); - -} // Table diff --git a/solutions/java/app/src/main/java/metamodels/Relational/Type.java b/solutions/java/app/src/main/java/metamodels/Relational/Type.java deleted file mode 100644 index 292424a..0000000 --- a/solutions/java/app/src/main/java/metamodels/Relational/Type.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - */ -package metamodels.Relational; - - -/** - * - * A representation of the model object 'Type'. - * - * - * - * @see metamodels.Relational.RelationalPackage#getType() - * @model - * @generated - */ -public interface Type extends Named { -} // Type diff --git a/solutions/java/app/src/main/java/metamodels/Relational/impl/ColumnImpl.java b/solutions/java/app/src/main/java/metamodels/Relational/impl/ColumnImpl.java deleted file mode 100644 index 5dba8a2..0000000 --- a/solutions/java/app/src/main/java/metamodels/Relational/impl/ColumnImpl.java +++ /dev/null @@ -1,344 +0,0 @@ -/** - */ -package metamodels.Relational.impl; - -import metamodels.Relational.Column; -import metamodels.Relational.RelationalPackage; -import metamodels.Relational.Table; -import metamodels.Relational.Type; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.emf.ecore.util.EcoreUtil; - -/** - * - * An implementation of the model object 'Column'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Relational.impl.ColumnImpl#getOwner Owner}
  • - *
  • {@link metamodels.Relational.impl.ColumnImpl#getKeyOf Key Of}
  • - *
  • {@link metamodels.Relational.impl.ColumnImpl#getType Type}
  • - *
- * - * @generated - */ -public class ColumnImpl extends NamedImpl implements Column { - /** - * The cached value of the '{@link #getKeyOf() Key Of}' reference. - * - * - * @see #getKeyOf() - * @generated - * @ordered - */ - protected Table keyOf; - - /** - * The cached value of the '{@link #getType() Type}' reference. - * - * - * @see #getType() - * @generated - * @ordered - */ - protected Type type; - - /** - * - * - * @generated - */ - protected ColumnImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return RelationalPackage.Literals.COLUMN; - } - - /** - * - * - * @generated - */ - public Table getOwner() { - if (eContainerFeatureID() != RelationalPackage.COLUMN__OWNER) return null; - return (Table)eInternalContainer(); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetOwner(Table newOwner, NotificationChain msgs) { - msgs = eBasicSetContainer((InternalEObject)newOwner, RelationalPackage.COLUMN__OWNER, msgs); - return msgs; - } - - /** - * - * - * @generated - */ - public void setOwner(Table newOwner) { - if (newOwner != eInternalContainer() || (eContainerFeatureID() != RelationalPackage.COLUMN__OWNER && newOwner != null)) { - if (EcoreUtil.isAncestor(this, newOwner)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newOwner != null) - msgs = ((InternalEObject)newOwner).eInverseAdd(this, RelationalPackage.TABLE__COL, Table.class, msgs); - msgs = basicSetOwner(newOwner, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, RelationalPackage.COLUMN__OWNER, newOwner, newOwner)); - } - - /** - * - * - * @generated - */ - public Table getKeyOf() { - if (keyOf != null && keyOf.eIsProxy()) { - InternalEObject oldKeyOf = (InternalEObject)keyOf; - keyOf = (Table)eResolveProxy(oldKeyOf); - if (keyOf != oldKeyOf) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, RelationalPackage.COLUMN__KEY_OF, oldKeyOf, keyOf)); - } - } - return keyOf; - } - - /** - * - * - * @generated - */ - public Table basicGetKeyOf() { - return keyOf; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetKeyOf(Table newKeyOf, NotificationChain msgs) { - Table oldKeyOf = keyOf; - keyOf = newKeyOf; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RelationalPackage.COLUMN__KEY_OF, oldKeyOf, newKeyOf); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setKeyOf(Table newKeyOf) { - if (newKeyOf != keyOf) { - NotificationChain msgs = null; - if (keyOf != null) - msgs = ((InternalEObject)keyOf).eInverseRemove(this, RelationalPackage.TABLE__KEY, Table.class, msgs); - if (newKeyOf != null) - msgs = ((InternalEObject)newKeyOf).eInverseAdd(this, RelationalPackage.TABLE__KEY, Table.class, msgs); - msgs = basicSetKeyOf(newKeyOf, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, RelationalPackage.COLUMN__KEY_OF, newKeyOf, newKeyOf)); - } - - /** - * - * - * @generated - */ - public Type getType() { - if (type != null && type.eIsProxy()) { - InternalEObject oldType = (InternalEObject)type; - type = (Type)eResolveProxy(oldType); - if (type != oldType) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, RelationalPackage.COLUMN__TYPE, oldType, type)); - } - } - return type; - } - - /** - * - * - * @generated - */ - public Type basicGetType() { - return type; - } - - /** - * - * - * @generated - */ - public void setType(Type newType) { - Type oldType = type; - type = newType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, RelationalPackage.COLUMN__TYPE, oldType, type)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case RelationalPackage.COLUMN__OWNER: - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - return basicSetOwner((Table)otherEnd, msgs); - case RelationalPackage.COLUMN__KEY_OF: - if (keyOf != null) - msgs = ((InternalEObject)keyOf).eInverseRemove(this, RelationalPackage.TABLE__KEY, Table.class, msgs); - return basicSetKeyOf((Table)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case RelationalPackage.COLUMN__OWNER: - return basicSetOwner(null, msgs); - case RelationalPackage.COLUMN__KEY_OF: - return basicSetKeyOf(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { - switch (eContainerFeatureID()) { - case RelationalPackage.COLUMN__OWNER: - return eInternalContainer().eInverseRemove(this, RelationalPackage.TABLE__COL, Table.class, msgs); - } - return super.eBasicRemoveFromContainerFeature(msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case RelationalPackage.COLUMN__OWNER: - return getOwner(); - case RelationalPackage.COLUMN__KEY_OF: - if (resolve) return getKeyOf(); - return basicGetKeyOf(); - case RelationalPackage.COLUMN__TYPE: - if (resolve) return getType(); - return basicGetType(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case RelationalPackage.COLUMN__OWNER: - setOwner((Table)newValue); - return; - case RelationalPackage.COLUMN__KEY_OF: - setKeyOf((Table)newValue); - return; - case RelationalPackage.COLUMN__TYPE: - setType((Type)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case RelationalPackage.COLUMN__OWNER: - setOwner((Table)null); - return; - case RelationalPackage.COLUMN__KEY_OF: - setKeyOf((Table)null); - return; - case RelationalPackage.COLUMN__TYPE: - setType((Type)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case RelationalPackage.COLUMN__OWNER: - return getOwner() != null; - case RelationalPackage.COLUMN__KEY_OF: - return keyOf != null; - case RelationalPackage.COLUMN__TYPE: - return type != null; - } - return super.eIsSet(featureID); - } - -} //ColumnImpl diff --git a/solutions/java/app/src/main/java/metamodels/Relational/impl/NamedImpl.java b/solutions/java/app/src/main/java/metamodels/Relational/impl/NamedImpl.java deleted file mode 100644 index e450bc7..0000000 --- a/solutions/java/app/src/main/java/metamodels/Relational/impl/NamedImpl.java +++ /dev/null @@ -1,162 +0,0 @@ -/** - */ -package metamodels.Relational.impl; - -import metamodels.Relational.Named; -import metamodels.Relational.RelationalPackage; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Named'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Relational.impl.NamedImpl#getName Name}
  • - *
- * - * @generated - */ -public abstract class NamedImpl extends MinimalEObjectImpl.Container implements Named { - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected NamedImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return RelationalPackage.Literals.NAMED; - } - - /** - * - * - * @generated - */ - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, RelationalPackage.NAMED__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case RelationalPackage.NAMED__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case RelationalPackage.NAMED__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case RelationalPackage.NAMED__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case RelationalPackage.NAMED__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} //NamedImpl diff --git a/solutions/java/app/src/main/java/metamodels/Relational/impl/RelationalFactoryImpl.java b/solutions/java/app/src/main/java/metamodels/Relational/impl/RelationalFactoryImpl.java deleted file mode 100644 index eee844e..0000000 --- a/solutions/java/app/src/main/java/metamodels/Relational/impl/RelationalFactoryImpl.java +++ /dev/null @@ -1,117 +0,0 @@ -/** - */ -package metamodels.Relational.impl; - -import metamodels.Relational.*; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.impl.EFactoryImpl; - -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class RelationalFactoryImpl extends EFactoryImpl implements RelationalFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static RelationalFactory init() { - try { - RelationalFactory theRelationalFactory = (RelationalFactory)EPackage.Registry.INSTANCE.getEFactory(RelationalPackage.eNS_URI); - if (theRelationalFactory != null) { - return theRelationalFactory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new RelationalFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public RelationalFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case RelationalPackage.TABLE: return createTable(); - case RelationalPackage.COLUMN: return createColumn(); - case RelationalPackage.TYPE: return createType(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public Table createTable() { - TableImpl table = new TableImpl(); - return table; - } - - /** - * - * - * @generated - */ - public Column createColumn() { - ColumnImpl column = new ColumnImpl(); - return column; - } - - /** - * - * - * @generated - */ - public Type createType() { - TypeImpl type = new TypeImpl(); - return type; - } - - /** - * - * - * @generated - */ - public RelationalPackage getRelationalPackage() { - return (RelationalPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static RelationalPackage getPackage() { - return RelationalPackage.eINSTANCE; - } - -} //RelationalFactoryImpl diff --git a/solutions/java/app/src/main/java/metamodels/Relational/impl/RelationalPackageImpl.java b/solutions/java/app/src/main/java/metamodels/Relational/impl/RelationalPackageImpl.java deleted file mode 100644 index 1c18a51..0000000 --- a/solutions/java/app/src/main/java/metamodels/Relational/impl/RelationalPackageImpl.java +++ /dev/null @@ -1,308 +0,0 @@ -/** - */ -package metamodels.Relational.impl; - -import metamodels.PrimitiveTypes.PrimitiveTypesPackage; - -import metamodels.PrimitiveTypes.impl.PrimitiveTypesPackageImpl; - -import metamodels.Relational.Column; -import metamodels.Relational.Named; -import metamodels.Relational.RelationalFactory; -import metamodels.Relational.RelationalPackage; -import metamodels.Relational.Table; -import metamodels.Relational.Type; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class RelationalPackageImpl extends EPackageImpl implements RelationalPackage { - /** - * - * - * @generated - */ - private EClass namedEClass = null; - - /** - * - * - * @generated - */ - private EClass tableEClass = null; - - /** - * - * - * @generated - */ - private EClass columnEClass = null; - - /** - * - * - * @generated - */ - private EClass typeEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see metamodels.Relational.RelationalPackage#eNS_URI - * @see #init() - * @generated - */ - private RelationalPackageImpl() { - super(eNS_URI, RelationalFactory.eINSTANCE); - } - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link RelationalPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static RelationalPackage init() { - if (isInited) return (RelationalPackage)EPackage.Registry.INSTANCE.getEPackage(RelationalPackage.eNS_URI); - - // Obtain or create and register package - Object registeredRelationalPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - RelationalPackageImpl theRelationalPackage = registeredRelationalPackage instanceof RelationalPackageImpl ? (RelationalPackageImpl)registeredRelationalPackage : new RelationalPackageImpl(); - - isInited = true; - - // Obtain or create and register interdependencies - Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(PrimitiveTypesPackage.eNS_URI); - PrimitiveTypesPackageImpl thePrimitiveTypesPackage = (PrimitiveTypesPackageImpl)(registeredPackage instanceof PrimitiveTypesPackageImpl ? registeredPackage : PrimitiveTypesPackage.eINSTANCE); - - // Create package meta-data objects - theRelationalPackage.createPackageContents(); - thePrimitiveTypesPackage.createPackageContents(); - - // Initialize created meta-data - theRelationalPackage.initializePackageContents(); - thePrimitiveTypesPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theRelationalPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(RelationalPackage.eNS_URI, theRelationalPackage); - return theRelationalPackage; - } - - /** - * - * - * @generated - */ - public EClass getNamed() { - return namedEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getNamed_Name() { - return (EAttribute)namedEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getTable() { - return tableEClass; - } - - /** - * - * - * @generated - */ - public EReference getTable_Col() { - return (EReference)tableEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getTable_Key() { - return (EReference)tableEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getColumn() { - return columnEClass; - } - - /** - * - * - * @generated - */ - public EReference getColumn_Owner() { - return (EReference)columnEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getColumn_KeyOf() { - return (EReference)columnEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getColumn_Type() { - return (EReference)columnEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getType() { - return typeEClass; - } - - /** - * - * - * @generated - */ - public RelationalFactory getRelationalFactory() { - return (RelationalFactory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - namedEClass = createEClass(NAMED); - createEAttribute(namedEClass, NAMED__NAME); - - tableEClass = createEClass(TABLE); - createEReference(tableEClass, TABLE__COL); - createEReference(tableEClass, TABLE__KEY); - - columnEClass = createEClass(COLUMN); - createEReference(columnEClass, COLUMN__OWNER); - createEReference(columnEClass, COLUMN__KEY_OF); - createEReference(columnEClass, COLUMN__TYPE); - - typeEClass = createEClass(TYPE); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - tableEClass.getESuperTypes().add(this.getNamed()); - columnEClass.getESuperTypes().add(this.getNamed()); - typeEClass.getESuperTypes().add(this.getNamed()); - - // Initialize classes, features, and operations; add parameters - initEClass(namedEClass, Named.class, "Named", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getNamed_Name(), ecorePackage.getEString(), "name", null, 1, 1, Named.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - initEClass(tableEClass, Table.class, "Table", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getTable_Col(), this.getColumn(), this.getColumn_Owner(), "col", null, 0, -1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTable_Key(), this.getColumn(), this.getColumn_KeyOf(), "key", null, 0, -1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - initEClass(columnEClass, Column.class, "Column", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getColumn_Owner(), this.getTable(), this.getTable_Col(), "owner", null, 1, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEReference(getColumn_KeyOf(), this.getTable(), this.getTable_Key(), "keyOf", null, 0, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEReference(getColumn_Type(), this.getType(), null, "type", null, 1, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - initEClass(typeEClass, Type.class, "Type", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - // Create resource - createResource(eNS_URI); - } - -} //RelationalPackageImpl diff --git a/solutions/java/app/src/main/java/metamodels/Relational/impl/TableImpl.java b/solutions/java/app/src/main/java/metamodels/Relational/impl/TableImpl.java deleted file mode 100644 index 22fc0ec..0000000 --- a/solutions/java/app/src/main/java/metamodels/Relational/impl/TableImpl.java +++ /dev/null @@ -1,204 +0,0 @@ -/** - */ -package metamodels.Relational.impl; - -import java.util.Collection; - -import metamodels.Relational.Column; -import metamodels.Relational.RelationalPackage; -import metamodels.Relational.Table; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Table'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.Relational.impl.TableImpl#getCol Col}
  • - *
  • {@link metamodels.Relational.impl.TableImpl#getKey Key}
  • - *
- * - * @generated - */ -public class TableImpl extends NamedImpl implements Table { - /** - * The cached value of the '{@link #getCol() Col}' containment reference list. - * - * - * @see #getCol() - * @generated - * @ordered - */ - protected EList col; - - /** - * The cached value of the '{@link #getKey() Key}' reference list. - * - * - * @see #getKey() - * @generated - * @ordered - */ - protected EList key; - - /** - * - * - * @generated - */ - protected TableImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return RelationalPackage.Literals.TABLE; - } - - /** - * - * - * @generated - */ - public EList getCol() { - if (col == null) { - col = new EObjectContainmentWithInverseEList(Column.class, this, RelationalPackage.TABLE__COL, RelationalPackage.COLUMN__OWNER); - } - return col; - } - - /** - * - * - * @generated - */ - public EList getKey() { - if (key == null) { - key = new EObjectWithInverseResolvingEList(Column.class, this, RelationalPackage.TABLE__KEY, RelationalPackage.COLUMN__KEY_OF); - } - return key; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case RelationalPackage.TABLE__COL: - return ((InternalEList)(InternalEList)getCol()).basicAdd(otherEnd, msgs); - case RelationalPackage.TABLE__KEY: - return ((InternalEList)(InternalEList)getKey()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case RelationalPackage.TABLE__COL: - return ((InternalEList)getCol()).basicRemove(otherEnd, msgs); - case RelationalPackage.TABLE__KEY: - return ((InternalEList)getKey()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case RelationalPackage.TABLE__COL: - return getCol(); - case RelationalPackage.TABLE__KEY: - return getKey(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case RelationalPackage.TABLE__COL: - getCol().clear(); - getCol().addAll((Collection)newValue); - return; - case RelationalPackage.TABLE__KEY: - getKey().clear(); - getKey().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case RelationalPackage.TABLE__COL: - getCol().clear(); - return; - case RelationalPackage.TABLE__KEY: - getKey().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case RelationalPackage.TABLE__COL: - return col != null && !col.isEmpty(); - case RelationalPackage.TABLE__KEY: - return key != null && !key.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //TableImpl diff --git a/solutions/java/app/src/main/java/metamodels/Relational/impl/TypeImpl.java b/solutions/java/app/src/main/java/metamodels/Relational/impl/TypeImpl.java deleted file mode 100644 index 96172a4..0000000 --- a/solutions/java/app/src/main/java/metamodels/Relational/impl/TypeImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package metamodels.Relational.impl; - -import metamodels.Relational.RelationalPackage; -import metamodels.Relational.Type; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Type'. - * - * - * @generated - */ -public class TypeImpl extends NamedImpl implements Type { - /** - * - * - * @generated - */ - protected TypeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return RelationalPackage.Literals.TYPE; - } - -} //TypeImpl diff --git a/solutions/java/app/src/main/java/metamodels/Relational/util/RelationalAdapterFactory.java b/solutions/java/app/src/main/java/metamodels/Relational/util/RelationalAdapterFactory.java deleted file mode 100644 index afaa3b2..0000000 --- a/solutions/java/app/src/main/java/metamodels/Relational/util/RelationalAdapterFactory.java +++ /dev/null @@ -1,174 +0,0 @@ -/** - */ -package metamodels.Relational.util; - -import metamodels.Relational.*; - -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.ecore.EObject; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see metamodels.Relational.RelationalPackage - * @generated - */ -public class RelationalAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static RelationalPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public RelationalAdapterFactory() { - if (modelPackage == null) { - modelPackage = RelationalPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * @generated - */ - protected RelationalSwitch modelSwitch = - new RelationalSwitch() { - @Override - public Adapter caseNamed(Named object) { - return createNamedAdapter(); - } - @Override - public Adapter caseTable(Table object) { - return createTableAdapter(); - } - @Override - public Adapter caseColumn(Column object) { - return createColumnAdapter(); - } - @Override - public Adapter caseType(Type object) { - return createTypeAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link metamodels.Relational.Named Named}'. - * - * 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 metamodels.Relational.Named - * @generated - */ - public Adapter createNamedAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Relational.Table Table}'. - * - * 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 metamodels.Relational.Table - * @generated - */ - public Adapter createTableAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Relational.Column Column}'. - * - * 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 metamodels.Relational.Column - * @generated - */ - public Adapter createColumnAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.Relational.Type Type}'. - * - * 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 metamodels.Relational.Type - * @generated - */ - public Adapter createTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //RelationalAdapterFactory diff --git a/solutions/java/app/src/main/java/metamodels/Relational/util/RelationalSwitch.java b/solutions/java/app/src/main/java/metamodels/Relational/util/RelationalSwitch.java deleted file mode 100644 index f258a3a..0000000 --- a/solutions/java/app/src/main/java/metamodels/Relational/util/RelationalSwitch.java +++ /dev/null @@ -1,176 +0,0 @@ -/** - */ -package metamodels.Relational.util; - -import metamodels.Relational.*; - -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 metamodels.Relational.RelationalPackage - * @generated - */ -public class RelationalSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static RelationalPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public RelationalSwitch() { - if (modelPackage == null) { - modelPackage = RelationalPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * 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 RelationalPackage.NAMED: { - Named named = (Named)theEObject; - T result = caseNamed(named); - if (result == null) result = defaultCase(theEObject); - return result; - } - case RelationalPackage.TABLE: { - Table table = (Table)theEObject; - T result = caseTable(table); - if (result == null) result = caseNamed(table); - if (result == null) result = defaultCase(theEObject); - return result; - } - case RelationalPackage.COLUMN: { - Column column = (Column)theEObject; - T result = caseColumn(column); - if (result == null) result = caseNamed(column); - if (result == null) result = defaultCase(theEObject); - return result; - } - case RelationalPackage.TYPE: { - Type type = (Type)theEObject; - T result = caseType(type); - if (result == null) result = caseNamed(type); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Named'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Named'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseNamed(Named object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Table'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Table'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseTable(Table object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Column'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Column'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseColumn(Column object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseType(Type object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} //RelationalSwitch diff --git a/solutions/java/app/src/main/java/metamodels/class_/Attribute.java b/solutions/java/app/src/main/java/metamodels/class_/Attribute.java deleted file mode 100644 index d415f4f..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/Attribute.java +++ /dev/null @@ -1,93 +0,0 @@ -/** - */ -package metamodels.class_; - - -/** - * - * A representation of the model object 'Attribute'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.class_.Attribute#isMultiValued Multi Valued}
  • - *
  • {@link metamodels.class_.Attribute#getType Type}
  • - *
  • {@link metamodels.class_.Attribute#getOwner Owner}
  • - *
- * - * @see metamodels.class_.Class_Package#getAttribute() - * @model - * @generated - */ -public interface Attribute extends NamedElt { - /** - * Returns the value of the 'Multi Valued' attribute. - * - * - * @return the value of the 'Multi Valued' attribute. - * @see #setMultiValued(boolean) - * @see metamodels.class_.Class_Package#getAttribute_MultiValued() - * @model required="true" ordered="false" - * @generated - */ - boolean isMultiValued(); - - /** - * Sets the value of the '{@link metamodels.class_.Attribute#isMultiValued Multi Valued}' attribute. - * - * - * @param value the new value of the 'Multi Valued' attribute. - * @see #isMultiValued() - * @generated - */ - void setMultiValued(boolean value); - - /** - * Returns the value of the 'Type' reference. - * - * - * @return the value of the 'Type' reference. - * @see #setType(Classifier) - * @see metamodels.class_.Class_Package#getAttribute_Type() - * @model required="true" ordered="false" - * @generated - */ - Classifier getType(); - - /** - * Sets the value of the '{@link metamodels.class_.Attribute#getType Type}' reference. - * - * - * @param value the new value of the 'Type' reference. - * @see #getType() - * @generated - */ - void setType(Classifier value); - - /** - * Returns the value of the 'Owner' container reference. - * It is bidirectional and its opposite is '{@link metamodels.class_.Class#getAttr Attr}'. - * - * - * @return the value of the 'Owner' container reference. - * @see #setOwner(metamodels.class_.Class) - * @see metamodels.class_.Class_Package#getAttribute_Owner() - * @see metamodels.class_.Class#getAttr - * @model opposite="attr" required="true" transient="false" ordered="false" - * @generated - */ - metamodels.class_.Class getOwner(); - - /** - * Sets the value of the '{@link metamodels.class_.Attribute#getOwner Owner}' container reference. - * - * - * @param value the new value of the 'Owner' container reference. - * @see #getOwner() - * @generated - */ - void setOwner(metamodels.class_.Class value); - -} // Attribute diff --git a/solutions/java/app/src/main/java/metamodels/class_/Class.java b/solutions/java/app/src/main/java/metamodels/class_/Class.java deleted file mode 100644 index b894aac..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/Class.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - */ -package metamodels.class_; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'Class'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.class_.Class#getAttr Attr}
  • - *
- * - * @see metamodels.class_.Class_Package#getClass_() - * @model - * @generated - */ -public interface Class extends Classifier { - /** - * Returns the value of the 'Attr' containment reference list. - * The list contents are of type {@link metamodels.class_.Attribute}. - * It is bidirectional and its opposite is '{@link metamodels.class_.Attribute#getOwner Owner}'. - * - * - * @return the value of the 'Attr' containment reference list. - * @see metamodels.class_.Class_Package#getClass_Attr() - * @see metamodels.class_.Attribute#getOwner - * @model opposite="owner" containment="true" - * @generated - */ - EList getAttr(); - -} // Class diff --git a/solutions/java/app/src/main/java/metamodels/class_/Class_Factory.java b/solutions/java/app/src/main/java/metamodels/class_/Class_Factory.java deleted file mode 100644 index 8d13b71..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/Class_Factory.java +++ /dev/null @@ -1,60 +0,0 @@ -/** - */ -package metamodels.class_; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see metamodels.class_.Class_Package - * @generated - */ -public interface Class_Factory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - Class_Factory eINSTANCE = metamodels.class_.impl.Class_FactoryImpl.init(); - - /** - * Returns a new object of class 'Data Type'. - * - * - * @return a new object of class 'Data Type'. - * @generated - */ - DataType createDataType(); - - /** - * Returns a new object of class 'Class'. - * - * - * @return a new object of class 'Class'. - * @generated - */ - Class createClass(); - - /** - * Returns a new object of class 'Attribute'. - * - * - * @return a new object of class 'Attribute'. - * @generated - */ - Attribute createAttribute(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - Class_Package getClass_Package(); - -} //Class_Factory diff --git a/solutions/java/app/src/main/java/metamodels/class_/Class_Package.java b/solutions/java/app/src/main/java/metamodels/class_/Class_Package.java deleted file mode 100644 index 17cab5b..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/Class_Package.java +++ /dev/null @@ -1,501 +0,0 @@ -/** - */ -package metamodels.class_; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see metamodels.class_.Class_Factory - * @model kind="package" - * @generated - */ -public interface Class_Package extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "class_"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "Class"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "class_"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - Class_Package eINSTANCE = metamodels.class_.impl.Class_PackageImpl.init(); - - /** - * The meta object id for the '{@link metamodels.class_.impl.NamedEltImpl Named Elt}' class. - * - * - * @see metamodels.class_.impl.NamedEltImpl - * @see metamodels.class_.impl.Class_PackageImpl#getNamedElt() - * @generated - */ - int NAMED_ELT = 0; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int NAMED_ELT__NAME = 0; - - /** - * The number of structural features of the 'Named Elt' class. - * - * - * @generated - * @ordered - */ - int NAMED_ELT_FEATURE_COUNT = 1; - - /** - * The number of operations of the 'Named Elt' class. - * - * - * @generated - * @ordered - */ - int NAMED_ELT_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link metamodels.class_.impl.ClassifierImpl Classifier}' class. - * - * - * @see metamodels.class_.impl.ClassifierImpl - * @see metamodels.class_.impl.Class_PackageImpl#getClassifier() - * @generated - */ - int CLASSIFIER = 1; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int CLASSIFIER__NAME = NAMED_ELT__NAME; - - /** - * The number of structural features of the 'Classifier' class. - * - * - * @generated - * @ordered - */ - int CLASSIFIER_FEATURE_COUNT = NAMED_ELT_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Classifier' class. - * - * - * @generated - * @ordered - */ - int CLASSIFIER_OPERATION_COUNT = NAMED_ELT_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.class_.impl.DataTypeImpl Data Type}' class. - * - * - * @see metamodels.class_.impl.DataTypeImpl - * @see metamodels.class_.impl.Class_PackageImpl#getDataType() - * @generated - */ - int DATA_TYPE = 2; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int DATA_TYPE__NAME = CLASSIFIER__NAME; - - /** - * The number of structural features of the 'Data Type' class. - * - * - * @generated - * @ordered - */ - int DATA_TYPE_FEATURE_COUNT = CLASSIFIER_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Data Type' class. - * - * - * @generated - * @ordered - */ - int DATA_TYPE_OPERATION_COUNT = CLASSIFIER_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.class_.impl.ClassImpl Class}' class. - * - * - * @see metamodels.class_.impl.ClassImpl - * @see metamodels.class_.impl.Class_PackageImpl#getClass_() - * @generated - */ - int CLASS = 3; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int CLASS__NAME = CLASSIFIER__NAME; - - /** - * The feature id for the 'Attr' containment reference list. - * - * - * @generated - * @ordered - */ - int CLASS__ATTR = CLASSIFIER_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Class' class. - * - * - * @generated - * @ordered - */ - int CLASS_FEATURE_COUNT = CLASSIFIER_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Class' class. - * - * - * @generated - * @ordered - */ - int CLASS_OPERATION_COUNT = CLASSIFIER_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link metamodels.class_.impl.AttributeImpl Attribute}' class. - * - * - * @see metamodels.class_.impl.AttributeImpl - * @see metamodels.class_.impl.Class_PackageImpl#getAttribute() - * @generated - */ - int ATTRIBUTE = 4; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE__NAME = NAMED_ELT__NAME; - - /** - * The feature id for the 'Multi Valued' attribute. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE__MULTI_VALUED = NAMED_ELT_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Type' reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE__TYPE = NAMED_ELT_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Owner' container reference. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE__OWNER = NAMED_ELT_FEATURE_COUNT + 2; - - /** - * The number of structural features of the 'Attribute' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_FEATURE_COUNT = NAMED_ELT_FEATURE_COUNT + 3; - - /** - * The number of operations of the 'Attribute' class. - * - * - * @generated - * @ordered - */ - int ATTRIBUTE_OPERATION_COUNT = NAMED_ELT_OPERATION_COUNT + 0; - - - /** - * Returns the meta object for class '{@link metamodels.class_.NamedElt Named Elt}'. - * - * - * @return the meta object for class 'Named Elt'. - * @see metamodels.class_.NamedElt - * @generated - */ - EClass getNamedElt(); - - /** - * Returns the meta object for the attribute '{@link metamodels.class_.NamedElt#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see metamodels.class_.NamedElt#getName() - * @see #getNamedElt() - * @generated - */ - EAttribute getNamedElt_Name(); - - /** - * Returns the meta object for class '{@link metamodels.class_.Classifier Classifier}'. - * - * - * @return the meta object for class 'Classifier'. - * @see metamodels.class_.Classifier - * @generated - */ - EClass getClassifier(); - - /** - * Returns the meta object for class '{@link metamodels.class_.DataType Data Type}'. - * - * - * @return the meta object for class 'Data Type'. - * @see metamodels.class_.DataType - * @generated - */ - EClass getDataType(); - - /** - * Returns the meta object for class '{@link metamodels.class_.Class Class}'. - * - * - * @return the meta object for class 'Class'. - * @see metamodels.class_.Class - * @generated - */ - EClass getClass_(); - - /** - * Returns the meta object for the containment reference list '{@link metamodels.class_.Class#getAttr Attr}'. - * - * - * @return the meta object for the containment reference list 'Attr'. - * @see metamodels.class_.Class#getAttr() - * @see #getClass_() - * @generated - */ - EReference getClass_Attr(); - - /** - * Returns the meta object for class '{@link metamodels.class_.Attribute Attribute}'. - * - * - * @return the meta object for class 'Attribute'. - * @see metamodels.class_.Attribute - * @generated - */ - EClass getAttribute(); - - /** - * Returns the meta object for the attribute '{@link metamodels.class_.Attribute#isMultiValued Multi Valued}'. - * - * - * @return the meta object for the attribute 'Multi Valued'. - * @see metamodels.class_.Attribute#isMultiValued() - * @see #getAttribute() - * @generated - */ - EAttribute getAttribute_MultiValued(); - - /** - * Returns the meta object for the reference '{@link metamodels.class_.Attribute#getType Type}'. - * - * - * @return the meta object for the reference 'Type'. - * @see metamodels.class_.Attribute#getType() - * @see #getAttribute() - * @generated - */ - EReference getAttribute_Type(); - - /** - * Returns the meta object for the container reference '{@link metamodels.class_.Attribute#getOwner Owner}'. - * - * - * @return the meta object for the container reference 'Owner'. - * @see metamodels.class_.Attribute#getOwner() - * @see #getAttribute() - * @generated - */ - EReference getAttribute_Owner(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - Class_Factory getClass_Factory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals { - /** - * The meta object literal for the '{@link metamodels.class_.impl.NamedEltImpl Named Elt}' class. - * - * - * @see metamodels.class_.impl.NamedEltImpl - * @see metamodels.class_.impl.Class_PackageImpl#getNamedElt() - * @generated - */ - EClass NAMED_ELT = eINSTANCE.getNamedElt(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * - * @generated - */ - EAttribute NAMED_ELT__NAME = eINSTANCE.getNamedElt_Name(); - - /** - * The meta object literal for the '{@link metamodels.class_.impl.ClassifierImpl Classifier}' class. - * - * - * @see metamodels.class_.impl.ClassifierImpl - * @see metamodels.class_.impl.Class_PackageImpl#getClassifier() - * @generated - */ - EClass CLASSIFIER = eINSTANCE.getClassifier(); - - /** - * The meta object literal for the '{@link metamodels.class_.impl.DataTypeImpl Data Type}' class. - * - * - * @see metamodels.class_.impl.DataTypeImpl - * @see metamodels.class_.impl.Class_PackageImpl#getDataType() - * @generated - */ - EClass DATA_TYPE = eINSTANCE.getDataType(); - - /** - * The meta object literal for the '{@link metamodels.class_.impl.ClassImpl Class}' class. - * - * - * @see metamodels.class_.impl.ClassImpl - * @see metamodels.class_.impl.Class_PackageImpl#getClass_() - * @generated - */ - EClass CLASS = eINSTANCE.getClass_(); - - /** - * The meta object literal for the 'Attr' containment reference list feature. - * - * - * @generated - */ - EReference CLASS__ATTR = eINSTANCE.getClass_Attr(); - - /** - * The meta object literal for the '{@link metamodels.class_.impl.AttributeImpl Attribute}' class. - * - * - * @see metamodels.class_.impl.AttributeImpl - * @see metamodels.class_.impl.Class_PackageImpl#getAttribute() - * @generated - */ - EClass ATTRIBUTE = eINSTANCE.getAttribute(); - - /** - * The meta object literal for the 'Multi Valued' attribute feature. - * - * - * @generated - */ - EAttribute ATTRIBUTE__MULTI_VALUED = eINSTANCE.getAttribute_MultiValued(); - - /** - * The meta object literal for the 'Type' reference feature. - * - * - * @generated - */ - EReference ATTRIBUTE__TYPE = eINSTANCE.getAttribute_Type(); - - /** - * The meta object literal for the 'Owner' container reference feature. - * - * - * @generated - */ - EReference ATTRIBUTE__OWNER = eINSTANCE.getAttribute_Owner(); - - } - -} //Class_Package diff --git a/solutions/java/app/src/main/java/metamodels/class_/Classifier.java b/solutions/java/app/src/main/java/metamodels/class_/Classifier.java deleted file mode 100644 index c11a505..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/Classifier.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - */ -package metamodels.class_; - - -/** - * - * A representation of the model object 'Classifier'. - * - * - * - * @see metamodels.class_.Class_Package#getClassifier() - * @model abstract="true" - * @generated - */ -public interface Classifier extends NamedElt { -} // Classifier diff --git a/solutions/java/app/src/main/java/metamodels/class_/DataType.java b/solutions/java/app/src/main/java/metamodels/class_/DataType.java deleted file mode 100644 index 000bda0..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/DataType.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - */ -package metamodels.class_; - - -/** - * - * A representation of the model object 'Data Type'. - * - * - * - * @see metamodels.class_.Class_Package#getDataType() - * @model - * @generated - */ -public interface DataType extends Classifier { -} // DataType diff --git a/solutions/java/app/src/main/java/metamodels/class_/NamedElt.java b/solutions/java/app/src/main/java/metamodels/class_/NamedElt.java deleted file mode 100644 index db79aa8..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/NamedElt.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package metamodels.class_; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Named Elt'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link metamodels.class_.NamedElt#getName Name}
  • - *
- * - * @see metamodels.class_.Class_Package#getNamedElt() - * @model abstract="true" - * @generated - */ -public interface NamedElt extends EObject { - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see metamodels.class_.Class_Package#getNamedElt_Name() - * @model required="true" ordered="false" - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link metamodels.class_.NamedElt#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // NamedElt diff --git a/solutions/java/app/src/main/java/metamodels/class_/impl/AttributeImpl.java b/solutions/java/app/src/main/java/metamodels/class_/impl/AttributeImpl.java deleted file mode 100644 index dd3efd4..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/impl/AttributeImpl.java +++ /dev/null @@ -1,323 +0,0 @@ -/** - */ -package metamodels.class_.impl; - -import metamodels.class_.Attribute; -import metamodels.class_.Class_Package; -import metamodels.class_.Classifier; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.emf.ecore.util.EcoreUtil; - -/** - * - * An implementation of the model object 'Attribute'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.class_.impl.AttributeImpl#isMultiValued Multi Valued}
  • - *
  • {@link metamodels.class_.impl.AttributeImpl#getType Type}
  • - *
  • {@link metamodels.class_.impl.AttributeImpl#getOwner Owner}
  • - *
- * - * @generated - */ -public class AttributeImpl extends NamedEltImpl implements Attribute { - /** - * The default value of the '{@link #isMultiValued() Multi Valued}' attribute. - * - * - * @see #isMultiValued() - * @generated - * @ordered - */ - protected static final boolean MULTI_VALUED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isMultiValued() Multi Valued}' attribute. - * - * - * @see #isMultiValued() - * @generated - * @ordered - */ - protected boolean multiValued = MULTI_VALUED_EDEFAULT; - - /** - * The cached value of the '{@link #getType() Type}' reference. - * - * - * @see #getType() - * @generated - * @ordered - */ - protected Classifier type; - - /** - * - * - * @generated - */ - protected AttributeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return Class_Package.Literals.ATTRIBUTE; - } - - /** - * - * - * @generated - */ - public boolean isMultiValued() { - return multiValued; - } - - /** - * - * - * @generated - */ - public void setMultiValued(boolean newMultiValued) { - boolean oldMultiValued = multiValued; - multiValued = newMultiValued; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Class_Package.ATTRIBUTE__MULTI_VALUED, oldMultiValued, multiValued)); - } - - /** - * - * - * @generated - */ - public Classifier getType() { - if (type != null && type.eIsProxy()) { - InternalEObject oldType = (InternalEObject)type; - type = (Classifier)eResolveProxy(oldType); - if (type != oldType) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Class_Package.ATTRIBUTE__TYPE, oldType, type)); - } - } - return type; - } - - /** - * - * - * @generated - */ - public Classifier basicGetType() { - return type; - } - - /** - * - * - * @generated - */ - public void setType(Classifier newType) { - Classifier oldType = type; - type = newType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Class_Package.ATTRIBUTE__TYPE, oldType, type)); - } - - /** - * - * - * @generated - */ - public metamodels.class_.Class getOwner() { - if (eContainerFeatureID() != Class_Package.ATTRIBUTE__OWNER) return null; - return (metamodels.class_.Class)eInternalContainer(); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetOwner(metamodels.class_.Class newOwner, NotificationChain msgs) { - msgs = eBasicSetContainer((InternalEObject)newOwner, Class_Package.ATTRIBUTE__OWNER, msgs); - return msgs; - } - - /** - * - * - * @generated - */ - public void setOwner(metamodels.class_.Class newOwner) { - if (newOwner != eInternalContainer() || (eContainerFeatureID() != Class_Package.ATTRIBUTE__OWNER && newOwner != null)) { - if (EcoreUtil.isAncestor(this, newOwner)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newOwner != null) - msgs = ((InternalEObject)newOwner).eInverseAdd(this, Class_Package.CLASS__ATTR, metamodels.class_.Class.class, msgs); - msgs = basicSetOwner(newOwner, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Class_Package.ATTRIBUTE__OWNER, newOwner, newOwner)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case Class_Package.ATTRIBUTE__OWNER: - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - return basicSetOwner((metamodels.class_.Class)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case Class_Package.ATTRIBUTE__OWNER: - return basicSetOwner(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { - switch (eContainerFeatureID()) { - case Class_Package.ATTRIBUTE__OWNER: - return eInternalContainer().eInverseRemove(this, Class_Package.CLASS__ATTR, metamodels.class_.Class.class, msgs); - } - return super.eBasicRemoveFromContainerFeature(msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case Class_Package.ATTRIBUTE__MULTI_VALUED: - return isMultiValued(); - case Class_Package.ATTRIBUTE__TYPE: - if (resolve) return getType(); - return basicGetType(); - case Class_Package.ATTRIBUTE__OWNER: - return getOwner(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case Class_Package.ATTRIBUTE__MULTI_VALUED: - setMultiValued((Boolean)newValue); - return; - case Class_Package.ATTRIBUTE__TYPE: - setType((Classifier)newValue); - return; - case Class_Package.ATTRIBUTE__OWNER: - setOwner((metamodels.class_.Class)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case Class_Package.ATTRIBUTE__MULTI_VALUED: - setMultiValued(MULTI_VALUED_EDEFAULT); - return; - case Class_Package.ATTRIBUTE__TYPE: - setType((Classifier)null); - return; - case Class_Package.ATTRIBUTE__OWNER: - setOwner((metamodels.class_.Class)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case Class_Package.ATTRIBUTE__MULTI_VALUED: - return multiValued != MULTI_VALUED_EDEFAULT; - case Class_Package.ATTRIBUTE__TYPE: - return type != null; - case Class_Package.ATTRIBUTE__OWNER: - return getOwner() != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (multiValued: "); - result.append(multiValued); - result.append(')'); - return result.toString(); - } - -} //AttributeImpl diff --git a/solutions/java/app/src/main/java/metamodels/class_/impl/ClassImpl.java b/solutions/java/app/src/main/java/metamodels/class_/impl/ClassImpl.java deleted file mode 100644 index 9420b85..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/impl/ClassImpl.java +++ /dev/null @@ -1,164 +0,0 @@ -/** - */ -package metamodels.class_.impl; - -import java.util.Collection; - -import metamodels.class_.Attribute; -import metamodels.class_.Class_Package; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Class'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.class_.impl.ClassImpl#getAttr Attr}
  • - *
- * - * @generated - */ -public class ClassImpl extends ClassifierImpl implements metamodels.class_.Class { - /** - * The cached value of the '{@link #getAttr() Attr}' containment reference list. - * - * - * @see #getAttr() - * @generated - * @ordered - */ - protected EList attr; - - /** - * - * - * @generated - */ - protected ClassImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return Class_Package.Literals.CLASS; - } - - /** - * - * - * @generated - */ - public EList getAttr() { - if (attr == null) { - attr = new EObjectContainmentWithInverseEList(Attribute.class, this, Class_Package.CLASS__ATTR, Class_Package.ATTRIBUTE__OWNER); - } - return attr; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case Class_Package.CLASS__ATTR: - return ((InternalEList)(InternalEList)getAttr()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case Class_Package.CLASS__ATTR: - return ((InternalEList)getAttr()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case Class_Package.CLASS__ATTR: - return getAttr(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case Class_Package.CLASS__ATTR: - getAttr().clear(); - getAttr().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case Class_Package.CLASS__ATTR: - getAttr().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case Class_Package.CLASS__ATTR: - return attr != null && !attr.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //ClassImpl diff --git a/solutions/java/app/src/main/java/metamodels/class_/impl/Class_FactoryImpl.java b/solutions/java/app/src/main/java/metamodels/class_/impl/Class_FactoryImpl.java deleted file mode 100644 index 6077c5c..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/impl/Class_FactoryImpl.java +++ /dev/null @@ -1,120 +0,0 @@ -/** - */ -package metamodels.class_.impl; - -import metamodels.class_.Attribute; -import metamodels.class_.Class_Factory; -import metamodels.class_.Class_Package; -import metamodels.class_.DataType; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.impl.EFactoryImpl; - -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class Class_FactoryImpl extends EFactoryImpl implements Class_Factory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static Class_Factory init() { - try { - Class_Factory theClass_Factory = (Class_Factory)EPackage.Registry.INSTANCE.getEFactory(Class_Package.eNS_URI); - if (theClass_Factory != null) { - return theClass_Factory; - } - } - catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new Class_FactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public Class_FactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case Class_Package.DATA_TYPE: return createDataType(); - case Class_Package.CLASS: return createClass(); - case Class_Package.ATTRIBUTE: return createAttribute(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public DataType createDataType() { - DataTypeImpl dataType = new DataTypeImpl(); - return dataType; - } - - /** - * - * - * @generated - */ - public metamodels.class_.Class createClass() { - ClassImpl class_ = new ClassImpl(); - return class_; - } - - /** - * - * - * @generated - */ - public Attribute createAttribute() { - AttributeImpl attribute = new AttributeImpl(); - return attribute; - } - - /** - * - * - * @generated - */ - public Class_Package getClass_Package() { - return (Class_Package)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static Class_Package getPackage() { - return Class_Package.eINSTANCE; - } - -} //Class_FactoryImpl diff --git a/solutions/java/app/src/main/java/metamodels/class_/impl/Class_PackageImpl.java b/solutions/java/app/src/main/java/metamodels/class_/impl/Class_PackageImpl.java deleted file mode 100644 index fbdfd81..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/impl/Class_PackageImpl.java +++ /dev/null @@ -1,308 +0,0 @@ -/** - */ -package metamodels.class_.impl; - -import metamodels.class_.Attribute; -import metamodels.class_.Class_Factory; -import metamodels.class_.Class_Package; -import metamodels.class_.Classifier; -import metamodels.class_.DataType; -import metamodels.class_.NamedElt; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class Class_PackageImpl extends EPackageImpl implements Class_Package { - /** - * - * - * @generated - */ - private EClass namedEltEClass = null; - - /** - * - * - * @generated - */ - private EClass classifierEClass = null; - - /** - * - * - * @generated - */ - private EClass dataTypeEClass = null; - - /** - * - * - * @generated - */ - private EClass classEClass = null; - - /** - * - * - * @generated - */ - private EClass attributeEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see metamodels.class_.Class_Package#eNS_URI - * @see #init() - * @generated - */ - private Class_PackageImpl() { - super(eNS_URI, Class_Factory.eINSTANCE); - } - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link Class_Package#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static Class_Package init() { - if (isInited) return (Class_Package)EPackage.Registry.INSTANCE.getEPackage(Class_Package.eNS_URI); - - // Obtain or create and register package - Object registeredClass_Package = EPackage.Registry.INSTANCE.get(eNS_URI); - Class_PackageImpl theClass_Package = registeredClass_Package instanceof Class_PackageImpl ? (Class_PackageImpl)registeredClass_Package : new Class_PackageImpl(); - - isInited = true; - - // Create package meta-data objects - theClass_Package.createPackageContents(); - - // Initialize created meta-data - theClass_Package.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theClass_Package.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(Class_Package.eNS_URI, theClass_Package); - return theClass_Package; - } - - /** - * - * - * @generated - */ - public EClass getNamedElt() { - return namedEltEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getNamedElt_Name() { - return (EAttribute)namedEltEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getClassifier() { - return classifierEClass; - } - - /** - * - * - * @generated - */ - public EClass getDataType() { - return dataTypeEClass; - } - - /** - * - * - * @generated - */ - public EClass getClass_() { - return classEClass; - } - - /** - * - * - * @generated - */ - public EReference getClass_Attr() { - return (EReference)classEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getAttribute() { - return attributeEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getAttribute_MultiValued() { - return (EAttribute)attributeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getAttribute_Type() { - return (EReference)attributeEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getAttribute_Owner() { - return (EReference)attributeEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public Class_Factory getClass_Factory() { - return (Class_Factory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - namedEltEClass = createEClass(NAMED_ELT); - createEAttribute(namedEltEClass, NAMED_ELT__NAME); - - classifierEClass = createEClass(CLASSIFIER); - - dataTypeEClass = createEClass(DATA_TYPE); - - classEClass = createEClass(CLASS); - createEReference(classEClass, CLASS__ATTR); - - attributeEClass = createEClass(ATTRIBUTE); - createEAttribute(attributeEClass, ATTRIBUTE__MULTI_VALUED); - createEReference(attributeEClass, ATTRIBUTE__TYPE); - createEReference(attributeEClass, ATTRIBUTE__OWNER); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - classifierEClass.getESuperTypes().add(this.getNamedElt()); - dataTypeEClass.getESuperTypes().add(this.getClassifier()); - classEClass.getESuperTypes().add(this.getClassifier()); - attributeEClass.getESuperTypes().add(this.getNamedElt()); - - // Initialize classes, features, and operations; add parameters - initEClass(namedEltEClass, NamedElt.class, "NamedElt", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getNamedElt_Name(), ecorePackage.getEString(), "name", null, 1, 1, NamedElt.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - initEClass(classifierEClass, Classifier.class, "Classifier", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(dataTypeEClass, DataType.class, "DataType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(classEClass, metamodels.class_.Class.class, "Class", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getClass_Attr(), this.getAttribute(), this.getAttribute_Owner(), "attr", null, 0, -1, metamodels.class_.Class.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(attributeEClass, Attribute.class, "Attribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAttribute_MultiValued(), ecorePackage.getEBoolean(), "multiValued", null, 1, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEReference(getAttribute_Type(), this.getClassifier(), null, "type", null, 1, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEReference(getAttribute_Owner(), this.getClass_(), this.getClass_Attr(), "owner", null, 1, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} //Class_PackageImpl diff --git a/solutions/java/app/src/main/java/metamodels/class_/impl/ClassifierImpl.java b/solutions/java/app/src/main/java/metamodels/class_/impl/ClassifierImpl.java deleted file mode 100644 index bad93e0..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/impl/ClassifierImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package metamodels.class_.impl; - -import metamodels.class_.Class_Package; -import metamodels.class_.Classifier; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Classifier'. - * - * - * @generated - */ -public abstract class ClassifierImpl extends NamedEltImpl implements Classifier { - /** - * - * - * @generated - */ - protected ClassifierImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return Class_Package.Literals.CLASSIFIER; - } - -} //ClassifierImpl diff --git a/solutions/java/app/src/main/java/metamodels/class_/impl/DataTypeImpl.java b/solutions/java/app/src/main/java/metamodels/class_/impl/DataTypeImpl.java deleted file mode 100644 index 0d187e3..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/impl/DataTypeImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package metamodels.class_.impl; - -import metamodels.class_.Class_Package; -import metamodels.class_.DataType; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Data Type'. - * - * - * @generated - */ -public class DataTypeImpl extends ClassifierImpl implements DataType { - /** - * - * - * @generated - */ - protected DataTypeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return Class_Package.Literals.DATA_TYPE; - } - -} //DataTypeImpl diff --git a/solutions/java/app/src/main/java/metamodels/class_/impl/NamedEltImpl.java b/solutions/java/app/src/main/java/metamodels/class_/impl/NamedEltImpl.java deleted file mode 100644 index ee983ea..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/impl/NamedEltImpl.java +++ /dev/null @@ -1,163 +0,0 @@ -/** - */ -package metamodels.class_.impl; - -import metamodels.class_.Class_Package; -import metamodels.class_.NamedElt; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Named Elt'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link metamodels.class_.impl.NamedEltImpl#getName Name}
  • - *
- * - * @generated - */ -public abstract class NamedEltImpl extends MinimalEObjectImpl.Container implements NamedElt { - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected NamedEltImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return Class_Package.Literals.NAMED_ELT; - } - - /** - * - * - * @generated - */ - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Class_Package.NAMED_ELT__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case Class_Package.NAMED_ELT__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case Class_Package.NAMED_ELT__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case Class_Package.NAMED_ELT__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case Class_Package.NAMED_ELT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} //NamedEltImpl diff --git a/solutions/java/app/src/main/java/metamodels/class_/util/Class_AdapterFactory.java b/solutions/java/app/src/main/java/metamodels/class_/util/Class_AdapterFactory.java deleted file mode 100644 index 13e12a6..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/util/Class_AdapterFactory.java +++ /dev/null @@ -1,196 +0,0 @@ -/** - */ -package metamodels.class_.util; - -import metamodels.class_.Attribute; -import metamodels.class_.Class_Package; -import metamodels.class_.Classifier; -import metamodels.class_.DataType; -import metamodels.class_.NamedElt; - -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.ecore.EObject; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see metamodels.class_.Class_Package - * @generated - */ -public class Class_AdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static Class_Package modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public Class_AdapterFactory() { - if (modelPackage == null) { - modelPackage = Class_Package.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * @generated - */ - protected Class_Switch modelSwitch = - new Class_Switch() { - @Override - public Adapter caseNamedElt(NamedElt object) { - return createNamedEltAdapter(); - } - @Override - public Adapter caseClassifier(Classifier object) { - return createClassifierAdapter(); - } - @Override - public Adapter caseDataType(DataType object) { - return createDataTypeAdapter(); - } - @Override - public Adapter caseClass(metamodels.class_.Class object) { - return createClassAdapter(); - } - @Override - public Adapter caseAttribute(Attribute object) { - return createAttributeAdapter(); - } - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link metamodels.class_.NamedElt Named Elt}'. - * - * 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 metamodels.class_.NamedElt - * @generated - */ - public Adapter createNamedEltAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.class_.Classifier Classifier}'. - * - * 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 metamodels.class_.Classifier - * @generated - */ - public Adapter createClassifierAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.class_.DataType Data Type}'. - * - * 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 metamodels.class_.DataType - * @generated - */ - public Adapter createDataTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.class_.Class Class}'. - * - * 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 metamodels.class_.Class - * @generated - */ - public Adapter createClassAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link metamodels.class_.Attribute Attribute}'. - * - * 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 metamodels.class_.Attribute - * @generated - */ - public Adapter createAttributeAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} //Class_AdapterFactory diff --git a/solutions/java/app/src/main/java/metamodels/class_/util/Class_Switch.java b/solutions/java/app/src/main/java/metamodels/class_/util/Class_Switch.java deleted file mode 100644 index 267a1ea..0000000 --- a/solutions/java/app/src/main/java/metamodels/class_/util/Class_Switch.java +++ /dev/null @@ -1,204 +0,0 @@ -/** - */ -package metamodels.class_.util; - -import metamodels.class_.Attribute; -import metamodels.class_.Class_Package; -import metamodels.class_.Classifier; -import metamodels.class_.DataType; -import metamodels.class_.NamedElt; - -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 metamodels.class_.Class_Package - * @generated - */ -public class Class_Switch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static Class_Package modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public Class_Switch() { - if (modelPackage == null) { - modelPackage = Class_Package.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * 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 Class_Package.NAMED_ELT: { - NamedElt namedElt = (NamedElt)theEObject; - T result = caseNamedElt(namedElt); - if (result == null) result = defaultCase(theEObject); - return result; - } - case Class_Package.CLASSIFIER: { - Classifier classifier = (Classifier)theEObject; - T result = caseClassifier(classifier); - if (result == null) result = caseNamedElt(classifier); - if (result == null) result = defaultCase(theEObject); - return result; - } - case Class_Package.DATA_TYPE: { - DataType dataType = (DataType)theEObject; - T result = caseDataType(dataType); - if (result == null) result = caseClassifier(dataType); - if (result == null) result = caseNamedElt(dataType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case Class_Package.CLASS: { - metamodels.class_.Class class_ = (metamodels.class_.Class)theEObject; - T result = caseClass(class_); - if (result == null) result = caseClassifier(class_); - if (result == null) result = caseNamedElt(class_); - if (result == null) result = defaultCase(theEObject); - return result; - } - case Class_Package.ATTRIBUTE: { - Attribute attribute = (Attribute)theEObject; - T result = caseAttribute(attribute); - if (result == null) result = caseNamedElt(attribute); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Named Elt'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Named Elt'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseNamedElt(NamedElt object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Classifier'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Classifier'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseClassifier(Classifier object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Data Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Data Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseDataType(DataType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Class'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Class'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseClass(metamodels.class_.Class object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Attribute'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Attribute'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAttribute(Attribute object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} //Class_Switch diff --git a/solutions/java/app/src/main/java/transformations/batch/Class2Relational.java b/solutions/java/app/src/main/java/transformations/batch/Class2Relational.java index 7a3e3c8..2361050 100644 --- a/solutions/java/app/src/main/java/transformations/batch/Class2Relational.java +++ b/solutions/java/app/src/main/java/transformations/batch/Class2Relational.java @@ -7,21 +7,21 @@ import org.eclipse.emf.ecore.EObject; -import metamodels.Relational.RelationalFactory; -import metamodels.Relational.Named; -import metamodels.Relational.Type; -import metamodels.class_.Class; -import metamodels.class_.DataType; -import metamodels.class_.NamedElt; -import metamodels.class_.impl.AttributeImpl; -import metamodels.class_.impl.ClassImpl; -import metamodels.class_.impl.DataTypeImpl; -import metamodels.class_.Attribute; +import atl.research.relational_.Relational_Factory; +import atl.research.relational_.Named; +import atl.research.relational_.Type; +import atl.research.class_.Class; +import atl.research.class_.DataType; +import atl.research.class_.NamedElt; +import atl.research.class_.impl.AttributeImpl; +import atl.research.class_.impl.ClassImpl; +import atl.research.class_.impl.DataTypeImpl; +import atl.research.class_.Attribute; import transformations.util.trace.Tracer; import transformations.util.traverse.Traverser; public class Class2Relational { - private static final RelationalFactory RELATIONALFACTORY = RelationalFactory.eINSTANCE; + private static final Relational_Factory RELATIONALFACTORY = Relational_Factory.eINSTANCE; private static final Tracer TRACER = new Tracer(); private static final List allDataTypes = new LinkedList<>(); @@ -102,11 +102,11 @@ public static void Class2Table(Class c) { out.setName(c.getName()); out.getCol().clear(); out.getCol().add(key); - out.getCol().addAll(c.getAttr().stream().filter(e -> !e.isMultiValued()).map($ -> TRACER.resolve($, RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); - out.getCol().addAll(c.getAttr().stream().filter(e -> !e.isMultiValued()).map($ -> TRACER.resolve($, "key" ,RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); - out.getCol().addAll(c.getAttr().stream().filter(e -> !e.isMultiValued()).map($ -> TRACER.resolve($, "id", RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); - out.getCol().addAll(c.getAttr().stream().filter(e -> !e.isMultiValued()).map($ -> TRACER.resolve($, "value", RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); - out.getCol().addAll(c.getAttr().stream().filter(e -> !e.isMultiValued()).map($ -> TRACER.resolve($, "foreignKey", RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); + out.getCol().addAll(c.getAttr().stream().filter(e -> !e.getMultiValued()).map($ -> TRACER.resolve($, RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); + out.getCol().addAll(c.getAttr().stream().filter(e -> !e.getMultiValued()).map($ -> TRACER.resolve($, "key" ,RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); + out.getCol().addAll(c.getAttr().stream().filter(e -> !e.getMultiValued()).map($ -> TRACER.resolve($, "id", RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); + out.getCol().addAll(c.getAttr().stream().filter(e -> !e.getMultiValued()).map($ -> TRACER.resolve($, "value", RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); + out.getCol().addAll(c.getAttr().stream().filter(e -> !e.getMultiValued()).map($ -> TRACER.resolve($, "foreignKey", RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); out.getKey().clear(); out.getKey().add(key); @@ -138,7 +138,7 @@ public static void DataTypeAttribute2Column(Attribute a) { } public static void MultiValuedDataTypeAttribute2ColumnPre(Attribute a) { - if(DataType.class.isAssignableFrom(a.getClass()) && a.isMultiValued()) { + if(DataType.class.isAssignableFrom(a.getClass()) && a.getMultiValued()) { TRACER.addTrace(a, RELATIONALFACTORY.createTable()); TRACER.addTrace(a, "id", RELATIONALFACTORY.createColumn()); TRACER.addTrace(a, "value", RELATIONALFACTORY.createColumn()); @@ -165,7 +165,7 @@ public static void MultiValuedDataTypeAttribute2Column(Attribute a) { } public static void ClassAttribute2ColumnPre(Attribute a) { - if(DataType.class.isAssignableFrom(a.getClass()) && !a.isMultiValued()) { + if(DataType.class.isAssignableFrom(a.getClass()) && !a.getMultiValued()) { TRACER.addTrace(a, RELATIONALFACTORY.createColumn()); } } @@ -177,7 +177,7 @@ public static void ClassAttribute2Column(Attribute a) { } public static void MultiValuedClassAttribute2ColumnPre(Attribute a) { - if(Class.class.isAssignableFrom(a.getClass()) && a.isMultiValued()) { + if(Class.class.isAssignableFrom(a.getClass()) && a.getMultiValued()) { TRACER.addTrace(a, RELATIONALFACTORY.createTable()); TRACER.addTrace(a, "id", RELATIONALFACTORY.createColumn()); TRACER.addTrace(a, "foreignKey", RELATIONALFACTORY.createColumn()); diff --git a/solutions/java/app/src/main/java/transformations/incremental/Class2RelationalIncremental.java b/solutions/java/app/src/main/java/transformations/incremental/Class2RelationalIncremental.java index 64c26c1..7db8d05 100644 --- a/solutions/java/app/src/main/java/transformations/incremental/Class2RelationalIncremental.java +++ b/solutions/java/app/src/main/java/transformations/incremental/Class2RelationalIncremental.java @@ -13,23 +13,23 @@ import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.util.EContentAdapter; -import metamodels.Relational.RelationalFactory; -import metamodels.Relational.Named; -import metamodels.Relational.Type; -import metamodels.class_.Class; -import metamodels.class_.DataType; -import metamodels.class_.NamedElt; -import metamodels.class_.impl.AttributeImpl; -import metamodels.class_.impl.ClassImpl; -import metamodels.class_.impl.DataTypeImpl; -import metamodels.class_.Attribute; +import atl.research.relational_.Relational_Factory; +import atl.research.relational_.Named; +import atl.research.relational_.Type; +import atl.research.class_.Class; +import atl.research.class_.DataType; +import atl.research.class_.NamedElt; +import atl.research.class_.impl.AttributeImpl; +import atl.research.class_.impl.ClassImpl; +import atl.research.class_.impl.DataTypeImpl; +import atl.research.class_.Attribute; import transformations.util.trace.Tracer; import transformations.util.traverse.Traverser; import util.CONSTANTS; import util.IO; public class Class2RelationalIncremental { - private static final RelationalFactory RELATIONALFACTORY = RelationalFactory.eINSTANCE; + private static final Relational_Factory RELATIONALFACTORY = Relational_Factory.eINSTANCE; private static final Tracer TRACER = new Tracer(); private static final List allDataTypes = new LinkedList<>(); private static Traverser PRETRAVERSER; @@ -205,11 +205,11 @@ public static void Class2Table(Class c) { out.setName(c.getName()); out.getCol().clear(); out.getCol().add(key); - out.getCol().addAll(c.getAttr().stream().filter(e -> !e.isMultiValued()).map($ -> TRACER.resolve($, RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); - out.getCol().addAll(c.getAttr().stream().filter(e -> !e.isMultiValued()).map($ -> TRACER.resolve($, "key" ,RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); - out.getCol().addAll(c.getAttr().stream().filter(e -> !e.isMultiValued()).map($ -> TRACER.resolve($, "id", RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); - out.getCol().addAll(c.getAttr().stream().filter(e -> !e.isMultiValued()).map($ -> TRACER.resolve($, "value", RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); - out.getCol().addAll(c.getAttr().stream().filter(e -> !e.isMultiValued()).map($ -> TRACER.resolve($, "foreignKey", RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); + out.getCol().addAll(c.getAttr().stream().filter(e -> !e.getMultiValued()).map($ -> TRACER.resolve($, RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); + out.getCol().addAll(c.getAttr().stream().filter(e -> !e.getMultiValued()).map($ -> TRACER.resolve($, "key" ,RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); + out.getCol().addAll(c.getAttr().stream().filter(e -> !e.getMultiValued()).map($ -> TRACER.resolve($, "id", RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); + out.getCol().addAll(c.getAttr().stream().filter(e -> !e.getMultiValued()).map($ -> TRACER.resolve($, "value", RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); + out.getCol().addAll(c.getAttr().stream().filter(e -> !e.getMultiValued()).map($ -> TRACER.resolve($, "foreignKey", RELATIONALFACTORY.createColumn())).filter($ -> $ != null).collect(Collectors.toList())); out.getKey().clear(); out.getKey().add(key); @@ -241,7 +241,7 @@ public static void DataTypeAttribute2Column(Attribute a) { } public static void MultiValuedDataTypeAttribute2ColumnPre(Attribute a) { - if(DataType.class.isAssignableFrom(a.getClass()) && a.isMultiValued()) { + if(DataType.class.isAssignableFrom(a.getClass()) && a.getMultiValued()) { TRACER.addTrace(a, RELATIONALFACTORY.createTable()); TRACER.addTrace(a, "id", RELATIONALFACTORY.createColumn()); TRACER.addTrace(a, "value", RELATIONALFACTORY.createColumn()); @@ -268,7 +268,7 @@ public static void MultiValuedDataTypeAttribute2Column(Attribute a) { } public static void ClassAttribute2ColumnPre(Attribute a) { - if(DataType.class.isAssignableFrom(a.getClass()) && !a.isMultiValued()) { + if(DataType.class.isAssignableFrom(a.getClass()) && !a.getMultiValued()) { TRACER.addTrace(a, RELATIONALFACTORY.createColumn()); } } @@ -280,7 +280,7 @@ public static void ClassAttribute2Column(Attribute a) { } public static void MultiValuedClassAttribute2ColumnPre(Attribute a) { - if(Class.class.isAssignableFrom(a.getClass()) && a.isMultiValued()) { + if(Class.class.isAssignableFrom(a.getClass()) && a.getMultiValued()) { TRACER.addTrace(a, RELATIONALFACTORY.createTable()); TRACER.addTrace(a, "id", RELATIONALFACTORY.createColumn()); TRACER.addTrace(a, "foreignKey", RELATIONALFACTORY.createColumn());