Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Willink2015-05-01 06:41:04 +0000
committerEd Willink2015-05-01 10:31:11 +0000
commit7e88ac07a384ede3cbc0369183f4a8fff8382037 (patch)
treeb7fb8eb57daca1d33d1aa473ceb3a197e5423050
parent8955d7d334fb8adaae19336e6dfee72080db564c (diff)
downloadorg.eclipse.qvtd-7e88ac07a384ede3cbc0369183f4a8fff8382037.tar.gz
org.eclipse.qvtd-7e88ac07a384ede3cbc0369183f4a8fff8382037.tar.xz
org.eclipse.qvtd-7e88ac07a384ede3cbc0369183f4a8fff8382037.zip
[466006] Add Transformation/TypedModel.ownedContext
-rw-r--r--plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/QVTbasePackage.java60
-rw-r--r--plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/Transformation.java28
-rw-r--r--plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/TypedModel.java28
-rw-r--r--plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/QVTbasePackageImpl.java24
-rw-r--r--plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/TransformationImpl.java69
-rw-r--r--plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/TypedModelImpl.java69
-rw-r--r--plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/model/QVTbaseMetamodel.java24
-rw-r--r--plugins/org.eclipse.qvtd.pivot.qvtbase/model-gen/QVTbase.oclas8
-rw-r--r--plugins/org.eclipse.qvtd.pivot.qvtbase/model/QVTbase.ecore4
-rw-r--r--plugins/org.eclipse.qvtd.pivot.qvtrelation/emf-gen/org/eclipse/qvtd/pivot/qvtrelation/QVTrelationPackage.java9
10 files changed, 321 insertions, 2 deletions
diff --git a/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/QVTbasePackage.java b/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/QVTbasePackage.java
index 9b4e88e02..9bca80c2f 100644
--- a/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/QVTbasePackage.java
+++ b/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/QVTbasePackage.java
@@ -1161,13 +1161,22 @@ public interface QVTbasePackage extends EPackage {
int TRANSFORMATION__EXTENDS = PivotPackage.CLASS_FEATURE_COUNT + 3;
/**
+ * The feature id for the '<em><b>Owned Context</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int TRANSFORMATION__OWNED_CONTEXT = PivotPackage.CLASS_FEATURE_COUNT + 4;
+
+ /**
* The number of structural features of the '<em>Transformation</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int TRANSFORMATION_FEATURE_COUNT = PivotPackage.CLASS_FEATURE_COUNT + 4;
+ int TRANSFORMATION_FEATURE_COUNT = PivotPackage.CLASS_FEATURE_COUNT + 5;
/**
* The meta object id for the '{@link org.eclipse.qvtd.pivot.qvtbase.impl.TypedModelImpl <em>Typed Model</em>}' class.
@@ -1252,13 +1261,22 @@ public interface QVTbasePackage extends EPackage {
int TYPED_MODEL__DEPENDS_ON = PivotPackage.NAMED_ELEMENT_FEATURE_COUNT + 2;
/**
+ * The feature id for the '<em><b>Owned Context</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int TYPED_MODEL__OWNED_CONTEXT = PivotPackage.NAMED_ELEMENT_FEATURE_COUNT + 3;
+
+ /**
* The number of structural features of the '<em>Typed Model</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int TYPED_MODEL_FEATURE_COUNT = PivotPackage.NAMED_ELEMENT_FEATURE_COUNT + 3;
+ int TYPED_MODEL_FEATURE_COUNT = PivotPackage.NAMED_ELEMENT_FEATURE_COUNT + 4;
/**
@@ -1540,6 +1558,17 @@ public interface QVTbasePackage extends EPackage {
EReference getTransformation_Extends();
/**
+ * Returns the meta object for the containment reference '{@link org.eclipse.qvtd.pivot.qvtbase.Transformation#getOwnedContext <em>Owned Context</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Owned Context</em>'.
+ * @see org.eclipse.qvtd.pivot.qvtbase.Transformation#getOwnedContext()
+ * @see #getTransformation()
+ * @generated
+ */
+ EReference getTransformation_OwnedContext();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.qvtd.pivot.qvtbase.TypedModel <em>Typed Model</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1583,6 +1612,17 @@ public interface QVTbasePackage extends EPackage {
EReference getTypedModel_DependsOn();
/**
+ * Returns the meta object for the containment reference '{@link org.eclipse.qvtd.pivot.qvtbase.TypedModel#getOwnedContext <em>Owned Context</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Owned Context</em>'.
+ * @see org.eclipse.qvtd.pivot.qvtbase.TypedModel#getOwnedContext()
+ * @see #getTypedModel()
+ * @generated
+ */
+ EReference getTypedModel_OwnedContext();
+
+ /**
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1829,6 +1869,14 @@ public interface QVTbasePackage extends EPackage {
EReference TRANSFORMATION__EXTENDS = eINSTANCE.getTransformation_Extends();
/**
+ * The meta object literal for the '<em><b>Owned Context</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference TRANSFORMATION__OWNED_CONTEXT = eINSTANCE.getTransformation_OwnedContext();
+
+ /**
* The meta object literal for the '{@link org.eclipse.qvtd.pivot.qvtbase.impl.TypedModelImpl <em>Typed Model</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1862,6 +1910,14 @@ public interface QVTbasePackage extends EPackage {
*/
EReference TYPED_MODEL__DEPENDS_ON = eINSTANCE.getTypedModel_DependsOn();
+ /**
+ * The meta object literal for the '<em><b>Owned Context</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference TYPED_MODEL__OWNED_CONTEXT = eINSTANCE.getTypedModel_OwnedContext();
+
}
} //QVTbasePackage
diff --git a/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/Transformation.java b/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/Transformation.java
index 4ec09de94..b521c2ba3 100644
--- a/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/Transformation.java
+++ b/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/Transformation.java
@@ -12,6 +12,7 @@ package org.eclipse.qvtd.pivot.qvtbase;
import org.eclipse.emf.common.util.EList;
import org.eclipse.ocl.pivot.Annotation;
+import org.eclipse.ocl.pivot.Variable;
/**
* <!-- begin-user-doc -->
@@ -26,6 +27,7 @@ import org.eclipse.ocl.pivot.Annotation;
* <li>{@link org.eclipse.qvtd.pivot.qvtbase.Transformation#getModelParameter <em>Model Parameter</em>}</li>
* <li>{@link org.eclipse.qvtd.pivot.qvtbase.Transformation#getRule <em>Rule</em>}</li>
* <li>{@link org.eclipse.qvtd.pivot.qvtbase.Transformation#getExtends <em>Extends</em>}</li>
+ * <li>{@link org.eclipse.qvtd.pivot.qvtbase.Transformation#getOwnedContext <em>Owned Context</em>}</li>
* </ul>
*
* @see org.eclipse.qvtd.pivot.qvtbase.QVTbasePackage#getTransformation()
@@ -112,6 +114,32 @@ public interface Transformation extends org.eclipse.ocl.pivot.Class {
void setExtends(Transformation value);
/**
+ * Returns the value of the '<em><b>Owned Context</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Owned Context</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Owned Context</em>' containment reference.
+ * @see #setOwnedContext(Variable)
+ * @see org.eclipse.qvtd.pivot.qvtbase.QVTbasePackage#getTransformation_OwnedContext()
+ * @model containment="true"
+ * @generated
+ */
+ Variable getOwnedContext();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.qvtd.pivot.qvtbase.Transformation#getOwnedContext <em>Owned Context</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Owned Context</em>' containment reference.
+ * @see #getOwnedContext()
+ * @generated
+ */
+ void setOwnedContext(Variable value);
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model required="true" nameRequired="true"
diff --git a/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/TypedModel.java b/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/TypedModel.java
index f29ac18c3..19744867b 100644
--- a/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/TypedModel.java
+++ b/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/TypedModel.java
@@ -13,6 +13,7 @@ package org.eclipse.qvtd.pivot.qvtbase;
import org.eclipse.emf.common.util.EList;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.ocl.pivot.NamedElement;
+import org.eclipse.ocl.pivot.Variable;
/**
* <!-- begin-user-doc -->
@@ -26,6 +27,7 @@ import org.eclipse.ocl.pivot.NamedElement;
* <li>{@link org.eclipse.qvtd.pivot.qvtbase.TypedModel#getTransformation <em>Transformation</em>}</li>
* <li>{@link org.eclipse.qvtd.pivot.qvtbase.TypedModel#getUsedPackage <em>Used Package</em>}</li>
* <li>{@link org.eclipse.qvtd.pivot.qvtbase.TypedModel#getDependsOn <em>Depends On</em>}</li>
+ * <li>{@link org.eclipse.qvtd.pivot.qvtbase.TypedModel#getOwnedContext <em>Owned Context</em>}</li>
* </ul>
*
* @see org.eclipse.qvtd.pivot.qvtbase.QVTbasePackage#getTypedModel()
@@ -94,4 +96,30 @@ public interface TypedModel extends NamedElement {
*/
@NonNull EList<TypedModel> getDependsOn();
+ /**
+ * Returns the value of the '<em><b>Owned Context</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Owned Context</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Owned Context</em>' containment reference.
+ * @see #setOwnedContext(Variable)
+ * @see org.eclipse.qvtd.pivot.qvtbase.QVTbasePackage#getTypedModel_OwnedContext()
+ * @model containment="true"
+ * @generated
+ */
+ Variable getOwnedContext();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.qvtd.pivot.qvtbase.TypedModel#getOwnedContext <em>Owned Context</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Owned Context</em>' containment reference.
+ * @see #getOwnedContext()
+ * @generated
+ */
+ void setOwnedContext(Variable value);
+
} // TypedModel
diff --git a/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/QVTbasePackageImpl.java b/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/QVTbasePackageImpl.java
index a6c157d70..463e569b3 100644
--- a/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/QVTbasePackageImpl.java
+++ b/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/QVTbasePackageImpl.java
@@ -431,6 +431,16 @@ public class QVTbasePackageImpl extends EPackageImpl implements QVTbasePackage {
* @generated
*/
@Override
+ public EReference getTransformation_OwnedContext() {
+ return (EReference)transformationEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
public EClass getTypedModel() {
return typedModelEClass;
}
@@ -471,6 +481,16 @@ public class QVTbasePackageImpl extends EPackageImpl implements QVTbasePackage {
* @generated
*/
@Override
+ public EReference getTypedModel_OwnedContext() {
+ return (EReference)typedModelEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
public QVTbaseFactory getQVTbaseFactory() {
return (QVTbaseFactory)getEFactoryInstance();
}
@@ -527,11 +547,13 @@ public class QVTbasePackageImpl extends EPackageImpl implements QVTbasePackage {
createEReference(transformationEClass, TRANSFORMATION__MODEL_PARAMETER);
createEReference(transformationEClass, TRANSFORMATION__RULE);
createEReference(transformationEClass, TRANSFORMATION__EXTENDS);
+ createEReference(transformationEClass, TRANSFORMATION__OWNED_CONTEXT);
typedModelEClass = createEClass(TYPED_MODEL);
createEReference(typedModelEClass, TYPED_MODEL__TRANSFORMATION);
createEReference(typedModelEClass, TYPED_MODEL__USED_PACKAGE);
createEReference(typedModelEClass, TYPED_MODEL__DEPENDS_ON);
+ createEReference(typedModelEClass, TYPED_MODEL__OWNED_CONTEXT);
}
/**
@@ -611,6 +633,7 @@ public class QVTbasePackageImpl extends EPackageImpl implements QVTbasePackage {
initEReference(getTransformation_ModelParameter(), this.getTypedModel(), this.getTypedModel_Transformation(), "modelParameter", null, 0, -1, Transformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getTransformation_Rule(), this.getRule(), this.getRule_Transformation(), "rule", null, 0, -1, Transformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEReference(getTransformation_Extends(), this.getTransformation(), null, "extends", null, 0, 1, Transformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getTransformation_OwnedContext(), thePivotPackage.getVariable(), null, "ownedContext", null, 0, 1, Transformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
EOperation op = addEOperation(transformationEClass, this.getFunction(), "getFunction", 1, 1, IS_UNIQUE, IS_ORDERED);
addEParameter(op, ecorePackage.getEString(), "name", 1, 1, IS_UNIQUE, IS_ORDERED);
@@ -622,6 +645,7 @@ public class QVTbasePackageImpl extends EPackageImpl implements QVTbasePackage {
initEReference(getTypedModel_Transformation(), this.getTransformation(), this.getTransformation_ModelParameter(), "transformation", null, 1, 1, TypedModel.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getTypedModel_UsedPackage(), thePivotPackage.getPackage(), null, "usedPackage", null, 1, -1, TypedModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEReference(getTypedModel_DependsOn(), this.getTypedModel(), null, "dependsOn", null, 0, -1, TypedModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getTypedModel_OwnedContext(), thePivotPackage.getVariable(), null, "ownedContext", null, 0, 1, TypedModel.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);
diff --git a/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/TransformationImpl.java b/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/TransformationImpl.java
index 5ab6cabd0..1c5da1b09 100644
--- a/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/TransformationImpl.java
+++ b/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/TransformationImpl.java
@@ -24,6 +24,7 @@ import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.ocl.pivot.Annotation;
+import org.eclipse.ocl.pivot.Variable;
import org.eclipse.ocl.pivot.internal.ClassImpl;
import org.eclipse.ocl.pivot.util.Visitor;
import org.eclipse.ocl.pivot.utilities.NameUtil;
@@ -46,6 +47,7 @@ import org.eclipse.qvtd.pivot.qvtbase.util.QVTbaseVisitor;
* <li>{@link org.eclipse.qvtd.pivot.qvtbase.impl.TransformationImpl#getModelParameter <em>Model Parameter</em>}</li>
* <li>{@link org.eclipse.qvtd.pivot.qvtbase.impl.TransformationImpl#getRule <em>Rule</em>}</li>
* <li>{@link org.eclipse.qvtd.pivot.qvtbase.impl.TransformationImpl#getExtends <em>Extends</em>}</li>
+ * <li>{@link org.eclipse.qvtd.pivot.qvtbase.impl.TransformationImpl#getOwnedContext <em>Owned Context</em>}</li>
* </ul>
*
* @generated
@@ -92,6 +94,16 @@ public class TransformationImpl extends ClassImpl implements Transformation {
protected Transformation extends_;
/**
+ * The cached value of the '{@link #getOwnedContext() <em>Owned Context</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOwnedContext()
+ * @generated
+ * @ordered
+ */
+ protected Variable ownedContext;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -198,6 +210,51 @@ public class TransformationImpl extends ClassImpl implements Transformation {
* @generated
*/
@Override
+ public Variable getOwnedContext() {
+ return ownedContext;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetOwnedContext(Variable newOwnedContext, NotificationChain msgs) {
+ Variable oldOwnedContext = ownedContext;
+ ownedContext = newOwnedContext;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, QVTbasePackage.TRANSFORMATION__OWNED_CONTEXT, oldOwnedContext, newOwnedContext);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void setOwnedContext(Variable newOwnedContext) {
+ if (newOwnedContext != ownedContext) {
+ NotificationChain msgs = null;
+ if (ownedContext != null)
+ msgs = ((InternalEObject)ownedContext).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - QVTbasePackage.TRANSFORMATION__OWNED_CONTEXT, null, msgs);
+ if (newOwnedContext != null)
+ msgs = ((InternalEObject)newOwnedContext).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - QVTbasePackage.TRANSFORMATION__OWNED_CONTEXT, null, msgs);
+ msgs = basicSetOwnedContext(newOwnedContext, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, QVTbasePackage.TRANSFORMATION__OWNED_CONTEXT, newOwnedContext, newOwnedContext));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
public Function getFunction(String name) {
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
@@ -235,6 +292,8 @@ public class TransformationImpl extends ClassImpl implements Transformation {
return ((InternalEList<?>)getModelParameter()).basicRemove(otherEnd, msgs);
case QVTbasePackage.TRANSFORMATION__RULE:
return ((InternalEList<?>)getRule()).basicRemove(otherEnd, msgs);
+ case QVTbasePackage.TRANSFORMATION__OWNED_CONTEXT:
+ return basicSetOwnedContext(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -256,6 +315,8 @@ public class TransformationImpl extends ClassImpl implements Transformation {
case QVTbasePackage.TRANSFORMATION__EXTENDS:
if (resolve) return getExtends();
return basicGetExtends();
+ case QVTbasePackage.TRANSFORMATION__OWNED_CONTEXT:
+ return getOwnedContext();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -284,6 +345,9 @@ public class TransformationImpl extends ClassImpl implements Transformation {
case QVTbasePackage.TRANSFORMATION__EXTENDS:
setExtends((Transformation)newValue);
return;
+ case QVTbasePackage.TRANSFORMATION__OWNED_CONTEXT:
+ setOwnedContext((Variable)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -308,6 +372,9 @@ public class TransformationImpl extends ClassImpl implements Transformation {
case QVTbasePackage.TRANSFORMATION__EXTENDS:
setExtends((Transformation)null);
return;
+ case QVTbasePackage.TRANSFORMATION__OWNED_CONTEXT:
+ setOwnedContext((Variable)null);
+ return;
}
super.eUnset(featureID);
}
@@ -328,6 +395,8 @@ public class TransformationImpl extends ClassImpl implements Transformation {
return rule != null && !rule.isEmpty();
case QVTbasePackage.TRANSFORMATION__EXTENDS:
return extends_ != null;
+ case QVTbasePackage.TRANSFORMATION__OWNED_CONTEXT:
+ return ownedContext != null;
}
return super.eIsSet(featureID);
}
diff --git a/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/TypedModelImpl.java b/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/TypedModelImpl.java
index 58ba2bfbb..da96cce0c 100644
--- a/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/TypedModelImpl.java
+++ b/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/impl/TypedModelImpl.java
@@ -22,6 +22,7 @@ import org.eclipse.emf.ecore.util.EObjectResolvingEList;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
+import org.eclipse.ocl.pivot.Variable;
import org.eclipse.ocl.pivot.internal.NamedElementImpl;
import org.eclipse.ocl.pivot.util.Visitor;
import org.eclipse.qvtd.pivot.qvtbase.QVTbasePackage;
@@ -40,6 +41,7 @@ import org.eclipse.qvtd.pivot.qvtbase.util.QVTbaseVisitor;
* <li>{@link org.eclipse.qvtd.pivot.qvtbase.impl.TypedModelImpl#getTransformation <em>Transformation</em>}</li>
* <li>{@link org.eclipse.qvtd.pivot.qvtbase.impl.TypedModelImpl#getUsedPackage <em>Used Package</em>}</li>
* <li>{@link org.eclipse.qvtd.pivot.qvtbase.impl.TypedModelImpl#getDependsOn <em>Depends On</em>}</li>
+ * <li>{@link org.eclipse.qvtd.pivot.qvtbase.impl.TypedModelImpl#getOwnedContext <em>Owned Context</em>}</li>
* </ul>
*
* @generated
@@ -66,6 +68,16 @@ public class TypedModelImpl extends NamedElementImpl implements TypedModel {
protected EList<TypedModel> dependsOn;
/**
+ * The cached value of the '{@link #getOwnedContext() <em>Owned Context</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOwnedContext()
+ * @generated
+ * @ordered
+ */
+ protected Variable ownedContext;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -161,6 +173,51 @@ public class TypedModelImpl extends NamedElementImpl implements TypedModel {
* @generated
*/
@Override
+ public Variable getOwnedContext() {
+ return ownedContext;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetOwnedContext(Variable newOwnedContext, NotificationChain msgs) {
+ Variable oldOwnedContext = ownedContext;
+ ownedContext = newOwnedContext;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, QVTbasePackage.TYPED_MODEL__OWNED_CONTEXT, oldOwnedContext, newOwnedContext);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void setOwnedContext(Variable newOwnedContext) {
+ if (newOwnedContext != ownedContext) {
+ NotificationChain msgs = null;
+ if (ownedContext != null)
+ msgs = ((InternalEObject)ownedContext).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - QVTbasePackage.TYPED_MODEL__OWNED_CONTEXT, null, msgs);
+ if (newOwnedContext != null)
+ msgs = ((InternalEObject)newOwnedContext).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - QVTbasePackage.TYPED_MODEL__OWNED_CONTEXT, null, msgs);
+ msgs = basicSetOwnedContext(newOwnedContext, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, QVTbasePackage.TYPED_MODEL__OWNED_CONTEXT, newOwnedContext, newOwnedContext));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case QVTbasePackage.TYPED_MODEL__TRANSFORMATION:
@@ -181,6 +238,8 @@ public class TypedModelImpl extends NamedElementImpl implements TypedModel {
switch (featureID) {
case QVTbasePackage.TYPED_MODEL__TRANSFORMATION:
return basicSetTransformation(null, msgs);
+ case QVTbasePackage.TYPED_MODEL__OWNED_CONTEXT:
+ return basicSetOwnedContext(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -213,6 +272,8 @@ public class TypedModelImpl extends NamedElementImpl implements TypedModel {
return getUsedPackage();
case QVTbasePackage.TYPED_MODEL__DEPENDS_ON:
return getDependsOn();
+ case QVTbasePackage.TYPED_MODEL__OWNED_CONTEXT:
+ return getOwnedContext();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -237,6 +298,9 @@ public class TypedModelImpl extends NamedElementImpl implements TypedModel {
getDependsOn().clear();
getDependsOn().addAll((Collection<? extends TypedModel>)newValue);
return;
+ case QVTbasePackage.TYPED_MODEL__OWNED_CONTEXT:
+ setOwnedContext((Variable)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -258,6 +322,9 @@ public class TypedModelImpl extends NamedElementImpl implements TypedModel {
case QVTbasePackage.TYPED_MODEL__DEPENDS_ON:
getDependsOn().clear();
return;
+ case QVTbasePackage.TYPED_MODEL__OWNED_CONTEXT:
+ setOwnedContext((Variable)null);
+ return;
}
super.eUnset(featureID);
}
@@ -276,6 +343,8 @@ public class TypedModelImpl extends NamedElementImpl implements TypedModel {
return usedPackage != null && !usedPackage.isEmpty();
case QVTbasePackage.TYPED_MODEL__DEPENDS_ON:
return dependsOn != null && !dependsOn.isEmpty();
+ case QVTbasePackage.TYPED_MODEL__OWNED_CONTEXT:
+ return ownedContext != null;
}
return super.eIsSet(featureID);
}
diff --git a/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/model/QVTbaseMetamodel.java b/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/model/QVTbaseMetamodel.java
index 67d23f61d..75e80807c 100644
--- a/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/model/QVTbaseMetamodel.java
+++ b/plugins/org.eclipse.qvtd.pivot.qvtbase/emf-gen/org/eclipse/qvtd/pivot/qvtbase/model/QVTbaseMetamodel.java
@@ -372,6 +372,8 @@ public class QVTbaseMetamodel extends ASResourceImpl
private final @NonNull Property pr_OCLExpression_predicate_conditionExpression = createProperty("predicate", _Predicate);
private final @NonNull Property pr_Package_TypedModel_usedPackage = createProperty("TypedModel", _Bag_TypedModel);
private final @NonNull Property pr_Variable_Pattern_bindsTo = createProperty("Pattern", _Bag_Pattern);
+ private final @NonNull Property pr_Variable_Transformation_ownedContext = createProperty("Transformation", _Transformation);
+ private final @NonNull Property pr_Variable_TypedModel_ownedContext = createProperty("TypedModel", _TypedModel);
private final @NonNull Property pr_Domain_isCheckable = createProperty(QVTbasePackage.Literals.DOMAIN__IS_CHECKABLE, _Boolean);
private final @NonNull Property pr_Domain_isEnforceable = createProperty(QVTbasePackage.Literals.DOMAIN__IS_ENFORCEABLE, _Boolean);
@@ -389,10 +391,12 @@ public class QVTbaseMetamodel extends ASResourceImpl
private final @NonNull Property pr_Rule_transformation = createProperty(QVTbasePackage.Literals.RULE__TRANSFORMATION, _Transformation);
private final @NonNull Property pr_Transformation_extends = createProperty(QVTbasePackage.Literals.TRANSFORMATION__EXTENDS, _Transformation);
private final @NonNull Property pr_Transformation_modelParameter = createProperty(QVTbasePackage.Literals.TRANSFORMATION__MODEL_PARAMETER, _OrderedSet_TypedModel);
+ private final @NonNull Property pr_Transformation_ownedContext = createProperty(QVTbasePackage.Literals.TRANSFORMATION__OWNED_CONTEXT, _Variable);
private final @NonNull Property pr_Transformation_ownedTag = createProperty(QVTbasePackage.Literals.TRANSFORMATION__OWNED_TAG, _Set_Annotation);
private final @NonNull Property pr_Transformation_rule = createProperty(QVTbasePackage.Literals.TRANSFORMATION__RULE, _Set_Rule);
private final @NonNull Property pr_Transformation_extendedBy_extends = createProperty("extendedBy", _Transformation);
private final @NonNull Property pr_TypedModel_dependsOn = createProperty(QVTbasePackage.Literals.TYPED_MODEL__DEPENDS_ON, _Set_TypedModel);
+ private final @NonNull Property pr_TypedModel_ownedContext = createProperty(QVTbasePackage.Literals.TYPED_MODEL__OWNED_CONTEXT, _Variable);
private final @NonNull Property pr_TypedModel_transformation = createProperty(QVTbasePackage.Literals.TYPED_MODEL__TRANSFORMATION, _Transformation);
private final @NonNull Property pr_TypedModel_usedPackage = createProperty(QVTbasePackage.Literals.TYPED_MODEL__USED_PACKAGE, _Set_Package);
private final @NonNull Property pr_TypedModel_Domain_typedModel = createProperty("Domain", _Bag_Domain);
@@ -432,6 +436,16 @@ public class QVTbaseMetamodel extends ASResourceImpl
property.setIsImplicit(true);
property.setIsResolveProxies(true);
property.setOpposite(pr_Pattern_bindsTo);
+ ownedProperties.add(property = pr_Variable_Transformation_ownedContext);
+ property.setIsImplicit(true);
+ property.setIsRequired(false);
+ property.setIsResolveProxies(true);
+ property.setOpposite(pr_Transformation_ownedContext);
+ ownedProperties.add(property = pr_Variable_TypedModel_ownedContext);
+ property.setIsImplicit(true);
+ property.setIsRequired(false);
+ property.setIsResolveProxies(true);
+ property.setOpposite(pr_TypedModel_ownedContext);
ownedProperties = _Domain.getOwnedProperties();
ownedProperties.add(property = pr_Domain_isCheckable);
@@ -506,6 +520,11 @@ public class QVTbaseMetamodel extends ASResourceImpl
property.setIsComposite(true);
property.setIsResolveProxies(true);
property.setOpposite(pr_TypedModel_transformation);
+ ownedProperties.add(property = pr_Transformation_ownedContext);
+ property.setIsComposite(true);
+ property.setIsRequired(false);
+ property.setIsResolveProxies(true);
+ property.setOpposite(pr_Variable_Transformation_ownedContext);
ownedProperties.add(property = pr_Transformation_ownedTag);
property.setIsComposite(true);
property.setIsResolveProxies(true);
@@ -524,6 +543,11 @@ public class QVTbaseMetamodel extends ASResourceImpl
ownedProperties.add(property = pr_TypedModel_dependsOn);
property.setIsResolveProxies(true);
property.setOpposite(pr_TypedModel_dependent_dependsOn);
+ ownedProperties.add(property = pr_TypedModel_ownedContext);
+ property.setIsComposite(true);
+ property.setIsRequired(false);
+ property.setIsResolveProxies(true);
+ property.setOpposite(pr_Variable_TypedModel_ownedContext);
ownedProperties.add(property = pr_TypedModel_transformation);
property.setIsResolveProxies(true);
property.setIsTransient(true);
diff --git a/plugins/org.eclipse.qvtd.pivot.qvtbase/model-gen/QVTbase.oclas b/plugins/org.eclipse.qvtd.pivot.qvtbase/model-gen/QVTbase.oclas
index 3aaaa5470..850bc9b6c 100644
--- a/plugins/org.eclipse.qvtd.pivot.qvtbase/model-gen/QVTbase.oclas
+++ b/plugins/org.eclipse.qvtd.pivot.qvtbase/model-gen/QVTbase.oclas
@@ -45,6 +45,8 @@
type="#T.qvtbase.Transformation"/>
<ownedProperties xmi:id="p.qvtbase.Transformation.modelParameter" isComposite="true" name="modelParameter" opposite="#p.qvtbase.TypedModel.transformation"
type="#//@ownedPackages.2/@ownedClasses.14"/>
+ <ownedProperties xmi:id="p.qvtbase.Transformation.ownedContext" isComposite="true" isRequired="false" name="ownedContext" opposite="#p.pivot.Variable.Transformation"
+ type="pivot:Class ../../org.eclipse.ocl.pivot/model/Pivot.ecore.oclas#T.pivot.Variable"/>
<ownedProperties xmi:id="p.qvtbase.Transformation.ownedTag" isComposite="true" name="ownedTag" opposite="#p.pivot.Annotation.Transformation"
type="#//@ownedPackages.2/@ownedClasses.15"/>
<ownedProperties xmi:id="p.qvtbase.Transformation.rule" isComposite="true" name="rule" opposite="#p.qvtbase.Rule.transformation"
@@ -54,6 +56,8 @@
</ownedClasses>
<ownedClasses xmi:id="T.qvtbase.TypedModel" name="TypedModel" superClasses="../../org.eclipse.ocl.pivot/model/Pivot.ecore.oclas#T.pivot.NamedElement">
<ownedProperties xmi:id="p.qvtbase.TypedModel.dependsOn" name="dependsOn" opposite="#p.qvtbase.TypedModel.dependent" type="#//@ownedPackages.2/@ownedClasses.20"/>
+ <ownedProperties xmi:id="p.qvtbase.TypedModel.ownedContext" isComposite="true" isRequired="false" name="ownedContext" opposite="#p.pivot.Variable.TypedModel"
+ type="pivot:Class ../../org.eclipse.ocl.pivot/model/Pivot.ecore.oclas#T.pivot.Variable"/>
<ownedProperties xmi:id="p.qvtbase.TypedModel.transformation" isTransient="true" name="transformation" opposite="#p.qvtbase.Transformation.modelParameter"
type="#T.qvtbase.Transformation"/>
<ownedProperties xmi:id="p.qvtbase.TypedModel.usedPackage" name="usedPackage" opposite="#p.pivot.Package.TypedModel" type="#//@ownedPackages.2/@ownedClasses.16"/>
@@ -79,6 +83,10 @@
</ownedClasses>
<ownedClasses xmi:id="T.pivot.Variable" name="Variable">
<ownedProperties xmi:id="p.pivot.Variable.Pattern" isImplicit="true" name="Pattern" opposite="#p.qvtbase.Pattern.bindsTo" type="#//@ownedPackages.2/@ownedClasses.1"/>
+ <ownedProperties xmi:id="p.pivot.Variable.Transformation" isImplicit="true" isRequired="false" name="Transformation" opposite="#p.qvtbase.Transformation.ownedContext"
+ type="#T.qvtbase.Transformation"/>
+ <ownedProperties xmi:id="p.pivot.Variable.TypedModel" isImplicit="true" isRequired="false" name="TypedModel" opposite="#p.qvtbase.TypedModel.ownedContext"
+ type="#T.qvtbase.TypedModel"/>
</ownedClasses>
</ownedPackages>
<ownedPackages xmi:id="P.$$" URI="http://www.eclipse.org/ocl/2015/Orphanage" name="$$" nsPrefix="orphanage">
diff --git a/plugins/org.eclipse.qvtd.pivot.qvtbase/model/QVTbase.ecore b/plugins/org.eclipse.qvtd.pivot.qvtbase/model/QVTbase.ecore
index 74f69eef8..e2282d811 100644
--- a/plugins/org.eclipse.qvtd.pivot.qvtbase/model/QVTbase.ecore
+++ b/plugins/org.eclipse.qvtd.pivot.qvtbase/model/QVTbase.ecore
@@ -72,6 +72,8 @@
<details key="body" value="extendedBy"/>
</eAnnotations>
</eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="ownedContext" eType="ecore:EClass ../../org.eclipse.ocl.pivot/model/Pivot.ecore#//Variable"
+ containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="TypedModel" eSuperTypes="../../org.eclipse.ocl.pivot/model/Pivot.ecore#//NamedElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="transformation" lowerBound="1"
@@ -84,5 +86,7 @@
<details key="body" value="dependent"/>
</eAnnotations>
</eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="ownedContext" eType="ecore:EClass ../../org.eclipse.ocl.pivot/model/Pivot.ecore#//Variable"
+ containment="true"/>
</eClassifiers>
</ecore:EPackage>
diff --git a/plugins/org.eclipse.qvtd.pivot.qvtrelation/emf-gen/org/eclipse/qvtd/pivot/qvtrelation/QVTrelationPackage.java b/plugins/org.eclipse.qvtd.pivot.qvtrelation/emf-gen/org/eclipse/qvtd/pivot/qvtrelation/QVTrelationPackage.java
index 19b0b8afd..315584694 100644
--- a/plugins/org.eclipse.qvtd.pivot.qvtrelation/emf-gen/org/eclipse/qvtd/pivot/qvtrelation/QVTrelationPackage.java
+++ b/plugins/org.eclipse.qvtd.pivot.qvtrelation/emf-gen/org/eclipse/qvtd/pivot/qvtrelation/QVTrelationPackage.java
@@ -1128,6 +1128,15 @@ public interface QVTrelationPackage extends EPackage {
int RELATIONAL_TRANSFORMATION__EXTENDS = QVTbasePackage.TRANSFORMATION__EXTENDS;
/**
+ * The feature id for the '<em><b>Owned Context</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RELATIONAL_TRANSFORMATION__OWNED_CONTEXT = QVTbasePackage.TRANSFORMATION__OWNED_CONTEXT;
+
+ /**
* The feature id for the '<em><b>Owned Key</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->

Back to the top