| /******************************************************************************* |
| * Copyright (c) 2008-2011 Chair for Applied Software Engineering, |
| * Technische Universitaet Muenchen. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| ******************************************************************************/ |
| package org.eclipse.emf.emfstore.internal.server.model.versioning.operations.impl; |
| |
| import java.util.Map; |
| |
| import org.eclipse.emf.ecore.EAttribute; |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.EEnum; |
| import org.eclipse.emf.ecore.EPackage; |
| import org.eclipse.emf.ecore.EReference; |
| import org.eclipse.emf.ecore.impl.EPackageImpl; |
| import org.eclipse.emf.emfstore.internal.common.model.ModelPackage; |
| import org.eclipse.emf.emfstore.internal.server.model.accesscontrol.AccesscontrolPackage; |
| import org.eclipse.emf.emfstore.internal.server.model.accesscontrol.impl.AccesscontrolPackageImpl; |
| import org.eclipse.emf.emfstore.internal.server.model.accesscontrol.roles.RolesPackage; |
| import org.eclipse.emf.emfstore.internal.server.model.accesscontrol.roles.impl.RolesPackageImpl; |
| import org.eclipse.emf.emfstore.internal.server.model.impl.ModelPackageImpl; |
| import org.eclipse.emf.emfstore.internal.server.model.url.UrlPackage; |
| import org.eclipse.emf.emfstore.internal.server.model.url.impl.UrlPackageImpl; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.VersioningPackage; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.events.EventsPackage; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.events.impl.EventsPackageImpl; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.events.server.ServerPackage; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.events.server.impl.ServerPackageImpl; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.impl.VersioningPackageImpl; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.AbstractOperation; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.AttributeOperation; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.CompositeOperation; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.ContainmentType; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.CreateDeleteOperation; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.FeatureOperation; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.ModelElementGroup; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.MultiAttributeMoveOperation; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.MultiAttributeOperation; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.MultiAttributeSetOperation; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.MultiReferenceMoveOperation; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.MultiReferenceOperation; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.MultiReferenceSetOperation; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.OperationGroup; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.OperationId; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.OperationsFactory; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.OperationsPackage; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.ReferenceOperation; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.SingleReferenceOperation; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.UnsetType; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.semantic.SemanticPackage; |
| import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.semantic.impl.SemanticPackageImpl; |
| |
| /** |
| * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- |
| * end-user-doc --> |
| * |
| * @generated |
| */ |
| public class OperationsPackageImpl extends EPackageImpl implements OperationsPackage { |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass abstractOperationEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass compositeOperationEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass featureOperationEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass createDeleteOperationEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass attributeOperationEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass multiAttributeOperationEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass multiAttributeSetOperationEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass multiAttributeMoveOperationEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass singleReferenceOperationEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass multiReferenceOperationEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass multiReferenceSetOperationEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass multiReferenceMoveOperationEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass referenceOperationEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass operationIdEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass operationGroupEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass modelElementGroupEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EClass eObjectToModelElementIdMapEClass = null; |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EEnum containmentTypeEEnum = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private EEnum unsetTypeEEnum = null; |
| |
| /** |
| * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry |
| * EPackage.Registry} by the |
| * package package URI value. |
| * <p> |
| * 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. <!-- |
| * begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @see org.eclipse.emf.ecore.EPackage.Registry |
| * @see org.eclipse.emf.emfstore.internal.server.model.versioning.operations.OperationsPackage#eNS_URI |
| * @see #init() |
| * @generated |
| */ |
| private OperationsPackageImpl() { |
| super(eNS_URI, OperationsFactory.eINSTANCE); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| private static boolean isInited = false; |
| |
| /** |
| * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
| * |
| * <p> |
| * This method is used to initialize {@link OperationsPackage#eINSTANCE} when that field is accessed. |
| * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
| * <!-- begin-user-doc |
| * --> <!-- end-user-doc --> |
| * |
| * @see #eNS_URI |
| * @see #createPackageContents() |
| * @see #initializePackageContents() |
| * @generated |
| */ |
| public static OperationsPackage init() { |
| if (isInited) { |
| return (OperationsPackage) EPackage.Registry.INSTANCE.getEPackage(OperationsPackage.eNS_URI); |
| } |
| |
| // Obtain or create and register package |
| final OperationsPackageImpl theOperationsPackage = (OperationsPackageImpl) (EPackage.Registry.INSTANCE |
| .get(eNS_URI) instanceof OperationsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) |
| : new OperationsPackageImpl()); |
| |
| isInited = true; |
| |
| // Initialize simple dependencies |
| ModelPackage.eINSTANCE.eClass(); |
| |
| // Obtain or create and register interdependencies |
| final ModelPackageImpl theModelPackage_1 = (ModelPackageImpl) (EPackage.Registry.INSTANCE.getEPackage( |
| org.eclipse.emf.emfstore.internal.server.model.ModelPackage.eNS_URI) instanceof ModelPackageImpl |
| ? EPackage.Registry.INSTANCE |
| .getEPackage(org.eclipse.emf.emfstore.internal.server.model.ModelPackage.eNS_URI) |
| : org.eclipse.emf.emfstore.internal.server.model.ModelPackage.eINSTANCE); |
| final VersioningPackageImpl theVersioningPackage = (VersioningPackageImpl) (EPackage.Registry.INSTANCE |
| .getEPackage(VersioningPackage.eNS_URI) instanceof VersioningPackageImpl |
| ? EPackage.Registry.INSTANCE.getEPackage(VersioningPackage.eNS_URI) : VersioningPackage.eINSTANCE); |
| final SemanticPackageImpl theSemanticPackage = (SemanticPackageImpl) (EPackage.Registry.INSTANCE |
| .getEPackage(SemanticPackage.eNS_URI) instanceof SemanticPackageImpl |
| ? EPackage.Registry.INSTANCE.getEPackage(SemanticPackage.eNS_URI) : SemanticPackage.eINSTANCE); |
| final EventsPackageImpl theEventsPackage = (EventsPackageImpl) (EPackage.Registry.INSTANCE |
| .getEPackage(EventsPackage.eNS_URI) instanceof EventsPackageImpl |
| ? EPackage.Registry.INSTANCE.getEPackage(EventsPackage.eNS_URI) : EventsPackage.eINSTANCE); |
| final ServerPackageImpl theServerPackage = (ServerPackageImpl) (EPackage.Registry.INSTANCE |
| .getEPackage(ServerPackage.eNS_URI) instanceof ServerPackageImpl |
| ? EPackage.Registry.INSTANCE.getEPackage(ServerPackage.eNS_URI) : ServerPackage.eINSTANCE); |
| final AccesscontrolPackageImpl theAccesscontrolPackage = (AccesscontrolPackageImpl) (EPackage.Registry.INSTANCE |
| .getEPackage(AccesscontrolPackage.eNS_URI) instanceof AccesscontrolPackageImpl |
| ? EPackage.Registry.INSTANCE.getEPackage(AccesscontrolPackage.eNS_URI) |
| : AccesscontrolPackage.eINSTANCE); |
| final RolesPackageImpl theRolesPackage = (RolesPackageImpl) (EPackage.Registry.INSTANCE |
| .getEPackage(RolesPackage.eNS_URI) instanceof RolesPackageImpl |
| ? EPackage.Registry.INSTANCE.getEPackage(RolesPackage.eNS_URI) : RolesPackage.eINSTANCE); |
| final UrlPackageImpl theUrlPackage = (UrlPackageImpl) (EPackage.Registry.INSTANCE |
| .getEPackage(UrlPackage.eNS_URI) instanceof UrlPackageImpl |
| ? EPackage.Registry.INSTANCE.getEPackage(UrlPackage.eNS_URI) : UrlPackage.eINSTANCE); |
| |
| // Create package meta-data objects |
| theOperationsPackage.createPackageContents(); |
| theModelPackage_1.createPackageContents(); |
| theVersioningPackage.createPackageContents(); |
| theSemanticPackage.createPackageContents(); |
| theEventsPackage.createPackageContents(); |
| theServerPackage.createPackageContents(); |
| theAccesscontrolPackage.createPackageContents(); |
| theRolesPackage.createPackageContents(); |
| theUrlPackage.createPackageContents(); |
| |
| // Initialize created meta-data |
| theOperationsPackage.initializePackageContents(); |
| theModelPackage_1.initializePackageContents(); |
| theVersioningPackage.initializePackageContents(); |
| theSemanticPackage.initializePackageContents(); |
| theEventsPackage.initializePackageContents(); |
| theServerPackage.initializePackageContents(); |
| theAccesscontrolPackage.initializePackageContents(); |
| theRolesPackage.initializePackageContents(); |
| theUrlPackage.initializePackageContents(); |
| |
| // Mark meta-data to indicate it can't be changed |
| theOperationsPackage.freeze(); |
| |
| // Update the registry and return the package |
| EPackage.Registry.INSTANCE.put(OperationsPackage.eNS_URI, theOperationsPackage); |
| return theOperationsPackage; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getAbstractOperation() { |
| return abstractOperationEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getAbstractOperation_ModelElementId() { |
| return (EReference) abstractOperationEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getAbstractOperation_Accepted() { |
| return (EAttribute) abstractOperationEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getAbstractOperation_ClientDate() { |
| return (EAttribute) abstractOperationEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getCompositeOperation() { |
| return compositeOperationEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getCompositeOperation_SubOperations() { |
| return (EReference) compositeOperationEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getCompositeOperation_MainOperation() { |
| return (EReference) compositeOperationEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getCompositeOperation_CompositeName() { |
| return (EAttribute) compositeOperationEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getCompositeOperation_CompositeDescription() { |
| return (EAttribute) compositeOperationEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getCompositeOperation_Reversed() { |
| return (EAttribute) compositeOperationEClass.getEStructuralFeatures().get(4); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getFeatureOperation() { |
| return featureOperationEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getFeatureOperation_FeatureName() { |
| return (EAttribute) featureOperationEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getFeatureOperation_Unset() { |
| return (EAttribute) featureOperationEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getCreateDeleteOperation() { |
| return createDeleteOperationEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getCreateDeleteOperation_Delete() { |
| return (EAttribute) createDeleteOperationEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getCreateDeleteOperation_ModelElement() { |
| return (EReference) createDeleteOperationEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getCreateDeleteOperation_SubOperations() { |
| return (EReference) createDeleteOperationEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getCreateDeleteOperation_EObjectToIdMap() { |
| return (EReference) createDeleteOperationEClass.getEStructuralFeatures().get(3); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getAttributeOperation() { |
| return attributeOperationEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getAttributeOperation_OldValue() { |
| return (EAttribute) attributeOperationEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getAttributeOperation_NewValue() { |
| return (EAttribute) attributeOperationEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getMultiAttributeOperation() { |
| return multiAttributeOperationEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getMultiAttributeOperation_Add() { |
| return (EAttribute) multiAttributeOperationEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getMultiAttributeOperation_Indexes() { |
| return (EAttribute) multiAttributeOperationEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getMultiAttributeOperation_ReferencedValues() { |
| return (EAttribute) multiAttributeOperationEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getMultiAttributeSetOperation() { |
| return multiAttributeSetOperationEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getMultiAttributeSetOperation_Index() { |
| return (EAttribute) multiAttributeSetOperationEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getMultiAttributeSetOperation_OldValue() { |
| return (EAttribute) multiAttributeSetOperationEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getMultiAttributeSetOperation_NewValue() { |
| return (EAttribute) multiAttributeSetOperationEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getMultiAttributeMoveOperation() { |
| return multiAttributeMoveOperationEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getMultiAttributeMoveOperation_OldIndex() { |
| return (EAttribute) multiAttributeMoveOperationEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getMultiAttributeMoveOperation_NewIndex() { |
| return (EAttribute) multiAttributeMoveOperationEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getMultiAttributeMoveOperation_ReferencedValue() { |
| return (EAttribute) multiAttributeMoveOperationEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getSingleReferenceOperation() { |
| return singleReferenceOperationEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getSingleReferenceOperation_OldValue() { |
| return (EReference) singleReferenceOperationEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getSingleReferenceOperation_NewValue() { |
| return (EReference) singleReferenceOperationEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getMultiReferenceOperation() { |
| return multiReferenceOperationEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getMultiReferenceOperation_Add() { |
| return (EAttribute) multiReferenceOperationEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getMultiReferenceOperation_Index() { |
| return (EAttribute) multiReferenceOperationEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getMultiReferenceOperation_ReferencedModelElements() { |
| return (EReference) multiReferenceOperationEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getMultiReferenceSetOperation() { |
| return multiReferenceSetOperationEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getMultiReferenceSetOperation_Index() { |
| return (EAttribute) multiReferenceSetOperationEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getMultiReferenceSetOperation_OldValue() { |
| return (EReference) multiReferenceSetOperationEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getMultiReferenceSetOperation_NewValue() { |
| return (EReference) multiReferenceSetOperationEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getMultiReferenceMoveOperation() { |
| return multiReferenceMoveOperationEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getMultiReferenceMoveOperation_OldIndex() { |
| return (EAttribute) multiReferenceMoveOperationEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getMultiReferenceMoveOperation_NewIndex() { |
| return (EAttribute) multiReferenceMoveOperationEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getMultiReferenceMoveOperation_ReferencedModelElementId() { |
| return (EReference) multiReferenceMoveOperationEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getReferenceOperation() { |
| return referenceOperationEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getReferenceOperation_Bidirectional() { |
| return (EAttribute) referenceOperationEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getReferenceOperation_OppositeFeatureName() { |
| return (EAttribute) referenceOperationEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getReferenceOperation_ContainmentType() { |
| return (EAttribute) referenceOperationEClass.getEStructuralFeatures().get(2); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getOperationId() { |
| return operationIdEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getOperationGroup() { |
| return operationGroupEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getOperationGroup_Name() { |
| return (EAttribute) operationGroupEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getOperationGroup_Operations() { |
| return (EReference) operationGroupEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getModelElementGroup() { |
| return modelElementGroupEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EAttribute getModelElementGroup_Name() { |
| return (EAttribute) modelElementGroupEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getModelElementGroup_ModelElements() { |
| return (EReference) modelElementGroupEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EClass getEObjectToModelElementIdMap() { |
| return eObjectToModelElementIdMapEClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getEObjectToModelElementIdMap_Key() { |
| return (EReference) eObjectToModelElementIdMapEClass.getEStructuralFeatures().get(0); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EReference getEObjectToModelElementIdMap_Value() { |
| return (EReference) eObjectToModelElementIdMapEClass.getEStructuralFeatures().get(1); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EEnum getContainmentType() { |
| return containmentTypeEEnum; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public EEnum getUnsetType() { |
| return unsetTypeEEnum; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public OperationsFactory getOperationsFactory() { |
| return (OperationsFactory) getEFactoryInstance(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @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. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public void createPackageContents() { |
| if (isCreated) { |
| return; |
| } |
| isCreated = true; |
| |
| // Create classes and their features |
| abstractOperationEClass = createEClass(ABSTRACT_OPERATION); |
| createEReference(abstractOperationEClass, ABSTRACT_OPERATION__MODEL_ELEMENT_ID); |
| createEAttribute(abstractOperationEClass, ABSTRACT_OPERATION__ACCEPTED); |
| createEAttribute(abstractOperationEClass, ABSTRACT_OPERATION__CLIENT_DATE); |
| |
| compositeOperationEClass = createEClass(COMPOSITE_OPERATION); |
| createEReference(compositeOperationEClass, COMPOSITE_OPERATION__SUB_OPERATIONS); |
| createEReference(compositeOperationEClass, COMPOSITE_OPERATION__MAIN_OPERATION); |
| createEAttribute(compositeOperationEClass, COMPOSITE_OPERATION__COMPOSITE_NAME); |
| createEAttribute(compositeOperationEClass, COMPOSITE_OPERATION__COMPOSITE_DESCRIPTION); |
| createEAttribute(compositeOperationEClass, COMPOSITE_OPERATION__REVERSED); |
| |
| featureOperationEClass = createEClass(FEATURE_OPERATION); |
| createEAttribute(featureOperationEClass, FEATURE_OPERATION__FEATURE_NAME); |
| createEAttribute(featureOperationEClass, FEATURE_OPERATION__UNSET); |
| |
| createDeleteOperationEClass = createEClass(CREATE_DELETE_OPERATION); |
| createEAttribute(createDeleteOperationEClass, CREATE_DELETE_OPERATION__DELETE); |
| createEReference(createDeleteOperationEClass, CREATE_DELETE_OPERATION__MODEL_ELEMENT); |
| createEReference(createDeleteOperationEClass, CREATE_DELETE_OPERATION__SUB_OPERATIONS); |
| createEReference(createDeleteOperationEClass, CREATE_DELETE_OPERATION__EOBJECT_TO_ID_MAP); |
| |
| attributeOperationEClass = createEClass(ATTRIBUTE_OPERATION); |
| createEAttribute(attributeOperationEClass, ATTRIBUTE_OPERATION__OLD_VALUE); |
| createEAttribute(attributeOperationEClass, ATTRIBUTE_OPERATION__NEW_VALUE); |
| |
| multiAttributeOperationEClass = createEClass(MULTI_ATTRIBUTE_OPERATION); |
| createEAttribute(multiAttributeOperationEClass, MULTI_ATTRIBUTE_OPERATION__ADD); |
| createEAttribute(multiAttributeOperationEClass, MULTI_ATTRIBUTE_OPERATION__INDEXES); |
| createEAttribute(multiAttributeOperationEClass, MULTI_ATTRIBUTE_OPERATION__REFERENCED_VALUES); |
| |
| multiAttributeSetOperationEClass = createEClass(MULTI_ATTRIBUTE_SET_OPERATION); |
| createEAttribute(multiAttributeSetOperationEClass, MULTI_ATTRIBUTE_SET_OPERATION__INDEX); |
| createEAttribute(multiAttributeSetOperationEClass, MULTI_ATTRIBUTE_SET_OPERATION__OLD_VALUE); |
| createEAttribute(multiAttributeSetOperationEClass, MULTI_ATTRIBUTE_SET_OPERATION__NEW_VALUE); |
| |
| multiAttributeMoveOperationEClass = createEClass(MULTI_ATTRIBUTE_MOVE_OPERATION); |
| createEAttribute(multiAttributeMoveOperationEClass, MULTI_ATTRIBUTE_MOVE_OPERATION__OLD_INDEX); |
| createEAttribute(multiAttributeMoveOperationEClass, MULTI_ATTRIBUTE_MOVE_OPERATION__NEW_INDEX); |
| createEAttribute(multiAttributeMoveOperationEClass, MULTI_ATTRIBUTE_MOVE_OPERATION__REFERENCED_VALUE); |
| |
| singleReferenceOperationEClass = createEClass(SINGLE_REFERENCE_OPERATION); |
| createEReference(singleReferenceOperationEClass, SINGLE_REFERENCE_OPERATION__OLD_VALUE); |
| createEReference(singleReferenceOperationEClass, SINGLE_REFERENCE_OPERATION__NEW_VALUE); |
| |
| multiReferenceSetOperationEClass = createEClass(MULTI_REFERENCE_SET_OPERATION); |
| createEAttribute(multiReferenceSetOperationEClass, MULTI_REFERENCE_SET_OPERATION__INDEX); |
| createEReference(multiReferenceSetOperationEClass, MULTI_REFERENCE_SET_OPERATION__OLD_VALUE); |
| createEReference(multiReferenceSetOperationEClass, MULTI_REFERENCE_SET_OPERATION__NEW_VALUE); |
| |
| multiReferenceOperationEClass = createEClass(MULTI_REFERENCE_OPERATION); |
| createEAttribute(multiReferenceOperationEClass, MULTI_REFERENCE_OPERATION__ADD); |
| createEAttribute(multiReferenceOperationEClass, MULTI_REFERENCE_OPERATION__INDEX); |
| createEReference(multiReferenceOperationEClass, MULTI_REFERENCE_OPERATION__REFERENCED_MODEL_ELEMENTS); |
| |
| multiReferenceMoveOperationEClass = createEClass(MULTI_REFERENCE_MOVE_OPERATION); |
| createEAttribute(multiReferenceMoveOperationEClass, MULTI_REFERENCE_MOVE_OPERATION__OLD_INDEX); |
| createEAttribute(multiReferenceMoveOperationEClass, MULTI_REFERENCE_MOVE_OPERATION__NEW_INDEX); |
| createEReference(multiReferenceMoveOperationEClass, |
| MULTI_REFERENCE_MOVE_OPERATION__REFERENCED_MODEL_ELEMENT_ID); |
| |
| referenceOperationEClass = createEClass(REFERENCE_OPERATION); |
| createEAttribute(referenceOperationEClass, REFERENCE_OPERATION__BIDIRECTIONAL); |
| createEAttribute(referenceOperationEClass, REFERENCE_OPERATION__OPPOSITE_FEATURE_NAME); |
| createEAttribute(referenceOperationEClass, REFERENCE_OPERATION__CONTAINMENT_TYPE); |
| |
| operationIdEClass = createEClass(OPERATION_ID); |
| |
| operationGroupEClass = createEClass(OPERATION_GROUP); |
| createEAttribute(operationGroupEClass, OPERATION_GROUP__NAME); |
| createEReference(operationGroupEClass, OPERATION_GROUP__OPERATIONS); |
| |
| modelElementGroupEClass = createEClass(MODEL_ELEMENT_GROUP); |
| createEAttribute(modelElementGroupEClass, MODEL_ELEMENT_GROUP__NAME); |
| createEReference(modelElementGroupEClass, MODEL_ELEMENT_GROUP__MODEL_ELEMENTS); |
| |
| eObjectToModelElementIdMapEClass = createEClass(EOBJECT_TO_MODEL_ELEMENT_ID_MAP); |
| createEReference(eObjectToModelElementIdMapEClass, EOBJECT_TO_MODEL_ELEMENT_ID_MAP__KEY); |
| createEReference(eObjectToModelElementIdMapEClass, EOBJECT_TO_MODEL_ELEMENT_ID_MAP__VALUE); |
| |
| // Create enums |
| containmentTypeEEnum = createEEnum(CONTAINMENT_TYPE); |
| unsetTypeEEnum = createEEnum(UNSET_TYPE); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @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. <!-- |
| * begin-user-doc --> <!-- end-user-doc --> |
| * |
| * @generated |
| */ |
| public void initializePackageContents() { |
| if (isInitialized) { |
| return; |
| } |
| isInitialized = true; |
| |
| // Initialize package |
| setName(eNAME); |
| setNsPrefix(eNS_PREFIX); |
| setNsURI(eNS_URI); |
| |
| // Obtain other dependent packages |
| final SemanticPackage theSemanticPackage = (SemanticPackage) EPackage.Registry.INSTANCE |
| .getEPackage(SemanticPackage.eNS_URI); |
| final ModelPackage theModelPackage = (ModelPackage) EPackage.Registry.INSTANCE |
| .getEPackage(ModelPackage.eNS_URI); |
| |
| // Add subpackages |
| getESubpackages().add(theSemanticPackage); |
| |
| // Create type parameters |
| |
| // Set bounds for type parameters |
| |
| // Add supertypes to classes |
| abstractOperationEClass.getESuperTypes().add(theModelPackage.getIdentifiableElement()); |
| compositeOperationEClass.getESuperTypes().add(getAbstractOperation()); |
| featureOperationEClass.getESuperTypes().add(getAbstractOperation()); |
| createDeleteOperationEClass.getESuperTypes().add(getAbstractOperation()); |
| attributeOperationEClass.getESuperTypes().add(getFeatureOperation()); |
| multiAttributeOperationEClass.getESuperTypes().add(getFeatureOperation()); |
| multiAttributeSetOperationEClass.getESuperTypes().add(getFeatureOperation()); |
| multiAttributeMoveOperationEClass.getESuperTypes().add(getFeatureOperation()); |
| singleReferenceOperationEClass.getESuperTypes().add(getReferenceOperation()); |
| multiReferenceSetOperationEClass.getESuperTypes().add(getReferenceOperation()); |
| multiReferenceOperationEClass.getESuperTypes().add(getReferenceOperation()); |
| multiReferenceMoveOperationEClass.getESuperTypes().add(getFeatureOperation()); |
| referenceOperationEClass.getESuperTypes().add(getFeatureOperation()); |
| operationIdEClass.getESuperTypes().add(theModelPackage.getUniqueIdentifier()); |
| |
| // Initialize classes and features; add operations and parameters |
| initEClass(abstractOperationEClass, AbstractOperation.class, "AbstractOperation", IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ |
| IS_GENERATED_INSTANCE_CLASS); |
| initEReference(getAbstractOperation_ModelElementId(), theModelPackage.getModelElementId(), null, |
| "modelElementId", null, 0, 1, AbstractOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, //$NON-NLS-1$ |
| IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getAbstractOperation_Accepted(), ecorePackage.getEBoolean(), "accepted", null, 0, 1, //$NON-NLS-1$ |
| AbstractOperation.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, |
| !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getAbstractOperation_ClientDate(), ecorePackage.getEDate(), "clientDate", null, 0, 1, //$NON-NLS-1$ |
| AbstractOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, |
| !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(compositeOperationEClass, CompositeOperation.class, "CompositeOperation", !IS_ABSTRACT, //$NON-NLS-1$ |
| !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEReference(getCompositeOperation_SubOperations(), getAbstractOperation(), null, "subOperations", null, //$NON-NLS-1$ |
| 0, -1, CompositeOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, |
| IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getCompositeOperation_MainOperation(), getAbstractOperation(), null, "mainOperation", null, //$NON-NLS-1$ |
| 0, 1, CompositeOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, |
| IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getCompositeOperation_CompositeName(), ecorePackage.getEString(), "compositeName", null, 0, 1, //$NON-NLS-1$ |
| CompositeOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, |
| !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getCompositeOperation_CompositeDescription(), ecorePackage.getEString(), "compositeDescription", //$NON-NLS-1$ |
| null, 0, 1, CompositeOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, |
| IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getCompositeOperation_Reversed(), ecorePackage.getEBoolean(), "reversed", null, 0, 1, //$NON-NLS-1$ |
| CompositeOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, |
| !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(featureOperationEClass, FeatureOperation.class, "FeatureOperation", IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ |
| IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getFeatureOperation_FeatureName(), ecorePackage.getEString(), "featureName", "", 0, 1, //$NON-NLS-1$ //$NON-NLS-2$ |
| FeatureOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, |
| !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getFeatureOperation_Unset(), getUnsetType(), "unset", null, 0, 1, FeatureOperation.class, //$NON-NLS-1$ |
| !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(createDeleteOperationEClass, CreateDeleteOperation.class, "CreateDeleteOperation", !IS_ABSTRACT, //$NON-NLS-1$ |
| !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getCreateDeleteOperation_Delete(), ecorePackage.getEBoolean(), "delete", null, 0, 1, //$NON-NLS-1$ |
| CreateDeleteOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, |
| !IS_DERIVED, IS_ORDERED); |
| initEReference(getCreateDeleteOperation_ModelElement(), ecorePackage.getEObject(), null, "modelElement", null, //$NON-NLS-1$ |
| 0, 1, CreateDeleteOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, |
| IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getCreateDeleteOperation_SubOperations(), getReferenceOperation(), null, "subOperations", //$NON-NLS-1$ |
| null, 0, -1, CreateDeleteOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, |
| IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getCreateDeleteOperation_EObjectToIdMap(), getEObjectToModelElementIdMap(), null, |
| "eObjectToIdMap", null, 0, -1, CreateDeleteOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, //$NON-NLS-1$ |
| IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(attributeOperationEClass, AttributeOperation.class, "AttributeOperation", !IS_ABSTRACT, //$NON-NLS-1$ |
| !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getAttributeOperation_OldValue(), ecorePackage.getEJavaObject(), "oldValue", null, 0, 1, //$NON-NLS-1$ |
| AttributeOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, |
| !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getAttributeOperation_NewValue(), ecorePackage.getEJavaObject(), "newValue", null, 0, 1, //$NON-NLS-1$ |
| AttributeOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, |
| !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(multiAttributeOperationEClass, MultiAttributeOperation.class, "MultiAttributeOperation", //$NON-NLS-1$ |
| !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getMultiAttributeOperation_Add(), ecorePackage.getEBoolean(), "add", null, 0, 1, //$NON-NLS-1$ |
| MultiAttributeOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, |
| IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getMultiAttributeOperation_Indexes(), ecorePackage.getEInt(), "indexes", null, 0, -1, //$NON-NLS-1$ |
| MultiAttributeOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, |
| IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getMultiAttributeOperation_ReferencedValues(), ecorePackage.getEJavaObject(), "referencedValues", //$NON-NLS-1$ |
| null, 0, -1, MultiAttributeOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, |
| !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(multiAttributeSetOperationEClass, MultiAttributeSetOperation.class, "MultiAttributeSetOperation", //$NON-NLS-1$ |
| !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getMultiAttributeSetOperation_Index(), ecorePackage.getEInt(), "index", null, 0, 1, //$NON-NLS-1$ |
| MultiAttributeSetOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, |
| IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getMultiAttributeSetOperation_OldValue(), ecorePackage.getEJavaObject(), "oldValue", null, 0, 1, //$NON-NLS-1$ |
| MultiAttributeSetOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, |
| IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getMultiAttributeSetOperation_NewValue(), ecorePackage.getEJavaObject(), "newValue", null, 0, 1, //$NON-NLS-1$ |
| MultiAttributeSetOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, |
| IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(multiAttributeMoveOperationEClass, MultiAttributeMoveOperation.class, "MultiAttributeMoveOperation", //$NON-NLS-1$ |
| !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getMultiAttributeMoveOperation_OldIndex(), ecorePackage.getEInt(), "oldIndex", null, 0, 1, //$NON-NLS-1$ |
| MultiAttributeMoveOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, |
| IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getMultiAttributeMoveOperation_NewIndex(), ecorePackage.getEInt(), "newIndex", null, 0, 1, //$NON-NLS-1$ |
| MultiAttributeMoveOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, |
| IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getMultiAttributeMoveOperation_ReferencedValue(), ecorePackage.getEJavaObject(), |
| "referencedValue", null, 0, 1, MultiAttributeMoveOperation.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$ |
| IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(singleReferenceOperationEClass, SingleReferenceOperation.class, "SingleReferenceOperation", //$NON-NLS-1$ |
| !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEReference(getSingleReferenceOperation_OldValue(), theModelPackage.getModelElementId(), null, "oldValue", //$NON-NLS-1$ |
| null, 0, 1, SingleReferenceOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, |
| IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getSingleReferenceOperation_NewValue(), theModelPackage.getModelElementId(), null, "newValue", //$NON-NLS-1$ |
| null, 0, 1, SingleReferenceOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, |
| IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(multiReferenceSetOperationEClass, MultiReferenceSetOperation.class, "MultiReferenceSetOperation", //$NON-NLS-1$ |
| !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getMultiReferenceSetOperation_Index(), ecorePackage.getEInt(), "index", null, 0, 1, //$NON-NLS-1$ |
| MultiReferenceSetOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, |
| IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getMultiReferenceSetOperation_OldValue(), theModelPackage.getModelElementId(), null, "oldValue", //$NON-NLS-1$ |
| null, 0, 1, MultiReferenceSetOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, |
| IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getMultiReferenceSetOperation_NewValue(), theModelPackage.getModelElementId(), null, "newValue", //$NON-NLS-1$ |
| null, 0, 1, MultiReferenceSetOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, |
| IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(multiReferenceOperationEClass, MultiReferenceOperation.class, "MultiReferenceOperation", //$NON-NLS-1$ |
| !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getMultiReferenceOperation_Add(), ecorePackage.getEBoolean(), "add", null, 0, 1, //$NON-NLS-1$ |
| MultiReferenceOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, |
| IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getMultiReferenceOperation_Index(), ecorePackage.getEInt(), "index", null, 0, 1, //$NON-NLS-1$ |
| MultiReferenceOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, |
| IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getMultiReferenceOperation_ReferencedModelElements(), theModelPackage.getModelElementId(), null, |
| "referencedModelElements", null, 0, -1, MultiReferenceOperation.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$ |
| IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(multiReferenceMoveOperationEClass, MultiReferenceMoveOperation.class, "MultiReferenceMoveOperation", //$NON-NLS-1$ |
| !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getMultiReferenceMoveOperation_OldIndex(), ecorePackage.getEInt(), "oldIndex", null, 0, 1, //$NON-NLS-1$ |
| MultiReferenceMoveOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, |
| IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getMultiReferenceMoveOperation_NewIndex(), ecorePackage.getEInt(), "newIndex", null, 0, 1, //$NON-NLS-1$ |
| MultiReferenceMoveOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, |
| IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getMultiReferenceMoveOperation_ReferencedModelElementId(), theModelPackage.getModelElementId(), |
| null, "referencedModelElementId", null, 0, 1, MultiReferenceMoveOperation.class, !IS_TRANSIENT, //$NON-NLS-1$ |
| !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, |
| IS_ORDERED); |
| |
| initEClass(referenceOperationEClass, ReferenceOperation.class, "ReferenceOperation", IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ |
| IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getReferenceOperation_Bidirectional(), ecorePackage.getEBoolean(), "bidirectional", null, 0, 1, //$NON-NLS-1$ |
| ReferenceOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, |
| !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getReferenceOperation_OppositeFeatureName(), ecorePackage.getEString(), "oppositeFeatureName", //$NON-NLS-1$ |
| null, 0, 1, ReferenceOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, |
| IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEAttribute(getReferenceOperation_ContainmentType(), getContainmentType(), "containmentType", null, 0, //$NON-NLS-1$ |
| 1, ReferenceOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, |
| !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(operationIdEClass, OperationId.class, "OperationId", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ |
| IS_GENERATED_INSTANCE_CLASS); |
| |
| initEClass(operationGroupEClass, OperationGroup.class, "OperationGroup", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ |
| IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getOperationGroup_Name(), ecorePackage.getEString(), "name", null, 0, 1, OperationGroup.class, //$NON-NLS-1$ |
| !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getOperationGroup_Operations(), getAbstractOperation(), null, "operations", null, 0, -1, //$NON-NLS-1$ |
| OperationGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, |
| !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(modelElementGroupEClass, ModelElementGroup.class, "ModelElementGroup", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ |
| IS_GENERATED_INSTANCE_CLASS); |
| initEAttribute(getModelElementGroup_Name(), ecorePackage.getEString(), "name", null, 0, 1, //$NON-NLS-1$ |
| ModelElementGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, |
| !IS_DERIVED, IS_ORDERED); |
| initEReference(getModelElementGroup_ModelElements(), theModelPackage.getModelElementId(), null, "modelElements", //$NON-NLS-1$ |
| null, 0, -1, ModelElementGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, |
| IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| initEClass(eObjectToModelElementIdMapEClass, Map.Entry.class, "EObjectToModelElementIdMap", !IS_ABSTRACT, //$NON-NLS-1$ |
| !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); |
| initEReference(getEObjectToModelElementIdMap_Key(), ecorePackage.getEObject(), null, "key", null, 0, 1, //$NON-NLS-1$ |
| Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, |
| !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| initEReference(getEObjectToModelElementIdMap_Value(), theModelPackage.getModelElementId(), null, "value", null, //$NON-NLS-1$ |
| 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, |
| !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| |
| // Initialize enums and add enum literals |
| initEEnum(containmentTypeEEnum, ContainmentType.class, "ContainmentType"); //$NON-NLS-1$ |
| addEEnumLiteral(containmentTypeEEnum, ContainmentType.NONE); |
| addEEnumLiteral(containmentTypeEEnum, ContainmentType.CONTAINER); |
| addEEnumLiteral(containmentTypeEEnum, ContainmentType.CONTAINMENT); |
| |
| initEEnum(unsetTypeEEnum, UnsetType.class, "UnsetType"); //$NON-NLS-1$ |
| addEEnumLiteral(unsetTypeEEnum, UnsetType.NONE); |
| addEEnumLiteral(unsetTypeEEnum, UnsetType.IS_UNSET); |
| addEEnumLiteral(unsetTypeEEnum, UnsetType.WAS_UNSET); |
| } |
| |
| } // OperationsPackageImpl |