Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Willink2016-10-30 11:09:44 +0000
committerEd Willink2016-10-30 11:41:04 +0000
commit7e9cc8f7c8293b8a8b57df4d109c8017c8c3be0c (patch)
tree81df30b29d2588c5092c46defd1906ce25f61586 /plugins
parent60f290c300497f4b45d813dfcc02e09dfe4d8af5 (diff)
downloadorg.eclipse.qvtd-7e9cc8f7c8293b8a8b57df4d109c8017c8c3be0c.tar.gz
org.eclipse.qvtd-7e9cc8f7c8293b8a8b57df4d109c8017c8c3be0c.tar.xz
org.eclipse.qvtd-7e9cc8f7c8293b8a8b57df4d109c8017c8c3be0c.zip
[500962] Regenerate with CGMapping.useClass
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/CGMapping.java28
-rw-r--r--plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/QVTiCGModelPackage.java30
-rw-r--r--plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGConnectionVariableImpl.java10
-rw-r--r--plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGMappingCallBindingImpl.java47
-rw-r--r--plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGMappingImpl.java66
-rw-r--r--plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/QVTiCGModelPackageImpl.java14
6 files changed, 139 insertions, 56 deletions
diff --git a/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/CGMapping.java b/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/CGMapping.java
index 1acf69bb4..8ee53d24d 100644
--- a/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/CGMapping.java
+++ b/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/CGMapping.java
@@ -27,6 +27,7 @@ import org.eclipse.ocl.examples.codegen.cgmodel.CGValuedElement;
* <li>{@link org.eclipse.qvtd.codegen.qvticgmodel.CGMapping#getBody <em>Body</em>}</li>
* <li>{@link org.eclipse.qvtd.codegen.qvticgmodel.CGMapping#getFreeVariables <em>Free Variables</em>}</li>
* <li>{@link org.eclipse.qvtd.codegen.qvticgmodel.CGMapping#getTransformation <em>Transformation</em>}</li>
+ * <li>{@link org.eclipse.qvtd.codegen.qvticgmodel.CGMapping#isUseClass <em>Use Class</em>}</li>
* </ul>
*
* @see org.eclipse.qvtd.codegen.qvticgmodel.QVTiCGModelPackage#getCGMapping()
@@ -105,4 +106,31 @@ public interface CGMapping extends CGNamedElement {
* @generated
*/
void setTransformation(CGTransformation value);
+
+ /**
+ * Returns the value of the '<em><b>Use Class</b></em>' attribute.
+ * The default value is <code>"false"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Use Class</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Use Class</em>' attribute.
+ * @see #setUseClass(boolean)
+ * @see org.eclipse.qvtd.codegen.qvticgmodel.QVTiCGModelPackage#getCGMapping_UseClass()
+ * @model default="false"
+ * @generated
+ */
+ boolean isUseClass();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.qvtd.codegen.qvticgmodel.CGMapping#isUseClass <em>Use Class</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Use Class</em>' attribute.
+ * @see #isUseClass()
+ * @generated
+ */
+ void setUseClass(boolean value);
} // CGMapping
diff --git a/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/QVTiCGModelPackage.java b/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/QVTiCGModelPackage.java
index ad0824a29..aee5e0997 100644
--- a/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/QVTiCGModelPackage.java
+++ b/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/QVTiCGModelPackage.java
@@ -1540,13 +1540,22 @@ public interface QVTiCGModelPackage extends EPackage {
int CG_MAPPING__TRANSFORMATION = CGModelPackage.CG_NAMED_ELEMENT_FEATURE_COUNT + 2;
/**
+ * The feature id for the '<em><b>Use Class</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CG_MAPPING__USE_CLASS = CGModelPackage.CG_NAMED_ELEMENT_FEATURE_COUNT + 3;
+
+ /**
* The number of structural features of the '<em>CG Mapping</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int CG_MAPPING_FEATURE_COUNT = CGModelPackage.CG_NAMED_ELEMENT_FEATURE_COUNT + 3;
+ int CG_MAPPING_FEATURE_COUNT = CGModelPackage.CG_NAMED_ELEMENT_FEATURE_COUNT + 4;
/**
* The feature id for the '<em><b>Ast</b></em>' attribute.
@@ -2628,6 +2637,17 @@ public interface QVTiCGModelPackage extends EPackage {
EReference getCGMapping_Transformation();
/**
+ * Returns the meta object for the attribute '{@link org.eclipse.qvtd.codegen.qvticgmodel.CGMapping#isUseClass <em>Use Class</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Use Class</em>'.
+ * @see org.eclipse.qvtd.codegen.qvticgmodel.CGMapping#isUseClass()
+ * @see #getCGMapping()
+ * @generated
+ */
+ EAttribute getCGMapping_UseClass();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.qvtd.codegen.qvticgmodel.CGTransformation <em>CG Transformation</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -3170,6 +3190,14 @@ public interface QVTiCGModelPackage extends EPackage {
EReference CG_MAPPING__TRANSFORMATION = eINSTANCE.getCGMapping_Transformation();
/**
+ * The meta object literal for the '<em><b>Use Class</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute CG_MAPPING__USE_CLASS = eINSTANCE.getCGMapping_UseClass();
+
+ /**
* The meta object literal for the '{@link org.eclipse.qvtd.codegen.qvticgmodel.impl.CGTransformationImpl <em>CG Transformation</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGConnectionVariableImpl.java b/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGConnectionVariableImpl.java
index fb48a6333..ad7aa9757 100644
--- a/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGConnectionVariableImpl.java
+++ b/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGConnectionVariableImpl.java
@@ -1,28 +1,24 @@
/**
* <copyright>
- *
+ *
* Copyright (c) 2015 Willink Transformations and others.
* 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:
* E.D.Willink - Initial API and implementation
- *
+ *
* </copyright>
*/
package org.eclipse.qvtd.codegen.qvticgmodel.impl;
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.jdt.annotation.NonNull;
-
import org.eclipse.ocl.examples.codegen.cgmodel.util.CGModelVisitor;
-
import org.eclipse.qvtd.codegen.qvticgmodel.CGConnectionVariable;
import org.eclipse.qvtd.codegen.qvticgmodel.QVTiCGModelPackage;
-
import org.eclipse.qvtd.codegen.qvticgmodel.util.QVTiCGModelVisitor;
/**
diff --git a/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGMappingCallBindingImpl.java b/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGMappingCallBindingImpl.java
index 7095118fb..04af017d4 100644
--- a/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGMappingCallBindingImpl.java
+++ b/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGMappingCallBindingImpl.java
@@ -4,7 +4,7 @@
* 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:
* E.D.Willink - Initial API and implementation
*******************************************************************************/
@@ -209,51 +209,6 @@ public class CGMappingCallBindingImpl extends CGValuedElementImpl implements CGM
* @generated
*/
@Override
- public @NonNull CGValuedElement getNamedValue() {
- return value != null ? value.getNamedValue() : this;
- }
-
- /**
- * {@inheritDoc}
- * @generated
- */
- @Override
- public @NonNull CGValuedElement getReferredValue() {
- return value != null ? value : this;
- }
-
- /**
- * {@inheritDoc}
- * @generated
- */
- @Override
- public @NonNull CGValuedElement getSourceValue() {
- return value != null ? value.getSourceValue() : this;
- }
-
- /**
- * {@inheritDoc}
- * @generated
- */
- @Override
- public @NonNull CGValuedElement getTypedValue() {
- return value != null ? value.getTypedValue() : this;
- }
-
- /**
- * {@inheritDoc}
- * @generated
- */
- @Override
- public @Nullable String getValueName() {
- return value != null ? value.getValueName() : null;
- }
-
- /**
- * {@inheritDoc}
- * @generated
- */
- @Override
public boolean isBoxed() {
return (value != null) && value.isBoxed();
}
diff --git a/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGMappingImpl.java b/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGMappingImpl.java
index ec32f8908..a66cbc4fc 100644
--- a/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGMappingImpl.java
+++ b/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/CGMappingImpl.java
@@ -4,7 +4,7 @@
* 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:
* E.D.Willink - Initial API and implementation
*******************************************************************************/
@@ -48,6 +48,7 @@ import org.eclipse.qvtd.codegen.qvticgmodel.util.QVTiCGModelVisitor;
* <li>{@link org.eclipse.qvtd.codegen.qvticgmodel.impl.CGMappingImpl#getBody <em>Body</em>}</li>
* <li>{@link org.eclipse.qvtd.codegen.qvticgmodel.impl.CGMappingImpl#getFreeVariables <em>Free Variables</em>}</li>
* <li>{@link org.eclipse.qvtd.codegen.qvticgmodel.impl.CGMappingImpl#getTransformation <em>Transformation</em>}</li>
+ * <li>{@link org.eclipse.qvtd.codegen.qvticgmodel.impl.CGMappingImpl#isUseClass <em>Use Class</em>}</li>
* </ul>
*
* @generated
@@ -74,6 +75,26 @@ public class CGMappingImpl extends CGNamedElementImpl implements CGMapping {
protected EList<CGGuardVariable> freeVariables;
/**
+ * The default value of the '{@link #isUseClass() <em>Use Class</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isUseClass()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean USE_CLASS_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isUseClass() <em>Use Class</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isUseClass()
+ * @generated
+ * @ordered
+ */
+ protected boolean useClass = USE_CLASS_EDEFAULT;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -198,6 +219,39 @@ public class CGMappingImpl extends CGNamedElementImpl implements CGMapping {
* <!-- end-user-doc -->
* @generated
*/
+ @Override
+ public boolean isUseClass() {
+ return useClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void setUseClass(boolean newUseClass) {
+ boolean oldUseClass = useClass;
+ useClass = newUseClass;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, QVTiCGModelPackage.CG_MAPPING__USE_CLASS, oldUseClass, useClass));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ return super.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
@@ -258,6 +312,8 @@ public class CGMappingImpl extends CGNamedElementImpl implements CGMapping {
return getFreeVariables();
case QVTiCGModelPackage.CG_MAPPING__TRANSFORMATION:
return getTransformation();
+ case QVTiCGModelPackage.CG_MAPPING__USE_CLASS:
+ return isUseClass();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -281,6 +337,9 @@ public class CGMappingImpl extends CGNamedElementImpl implements CGMapping {
case QVTiCGModelPackage.CG_MAPPING__TRANSFORMATION:
setTransformation((CGTransformation)newValue);
return;
+ case QVTiCGModelPackage.CG_MAPPING__USE_CLASS:
+ setUseClass((Boolean)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -302,6 +361,9 @@ public class CGMappingImpl extends CGNamedElementImpl implements CGMapping {
case QVTiCGModelPackage.CG_MAPPING__TRANSFORMATION:
setTransformation((CGTransformation)null);
return;
+ case QVTiCGModelPackage.CG_MAPPING__USE_CLASS:
+ setUseClass(USE_CLASS_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -320,6 +382,8 @@ public class CGMappingImpl extends CGNamedElementImpl implements CGMapping {
return freeVariables != null && !freeVariables.isEmpty();
case QVTiCGModelPackage.CG_MAPPING__TRANSFORMATION:
return getTransformation() != null;
+ case QVTiCGModelPackage.CG_MAPPING__USE_CLASS:
+ return useClass != USE_CLASS_EDEFAULT;
}
return super.eIsSet(featureID);
}
diff --git a/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/QVTiCGModelPackageImpl.java b/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/QVTiCGModelPackageImpl.java
index 31f94ffba..f3c7d10e5 100644
--- a/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/QVTiCGModelPackageImpl.java
+++ b/plugins/org.eclipse.qvtd.codegen/emf-gen/org/eclipse/qvtd/codegen/qvticgmodel/impl/QVTiCGModelPackageImpl.java
@@ -4,7 +4,7 @@
* 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:
* E.D.Willink - Initial API and implementation
*******************************************************************************/
@@ -495,6 +495,16 @@ public class QVTiCGModelPackageImpl extends EPackageImpl implements QVTiCGModelP
* @generated
*/
@Override
+ public EAttribute getCGMapping_UseClass() {
+ return (EAttribute)cgMappingEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
public EClass getCGMappingCall() {
return cgMappingCallEClass;
}
@@ -860,6 +870,7 @@ public class QVTiCGModelPackageImpl extends EPackageImpl implements QVTiCGModelP
createEReference(cgMappingEClass, CG_MAPPING__BODY);
createEReference(cgMappingEClass, CG_MAPPING__FREE_VARIABLES);
createEReference(cgMappingEClass, CG_MAPPING__TRANSFORMATION);
+ createEAttribute(cgMappingEClass, CG_MAPPING__USE_CLASS);
cgMappingCallEClass = createEClass(CG_MAPPING_CALL);
createEReference(cgMappingCallEClass, CG_MAPPING_CALL__MAPPING_CALL_BINDINGS);
@@ -990,6 +1001,7 @@ public class QVTiCGModelPackageImpl extends EPackageImpl implements QVTiCGModelP
initEReference(getCGMapping_Body(), theCGModelPackage.getCGValuedElement(), null, "body", null, 1, 1, CGMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getCGMapping_FreeVariables(), this.getCGGuardVariable(), this.getCGGuardVariable_Mapping(), "freeVariables", null, 0, -1, CGMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEReference(getCGMapping_Transformation(), this.getCGTransformation(), this.getCGTransformation_Mappings(), "transformation", null, 1, 1, CGMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCGMapping_UseClass(), ecorePackage.getEBoolean(), "useClass", "false", 0, 1, CGMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(cgMappingCallEClass, CGMappingCall.class, "CGMappingCall", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getCGMappingCall_MappingCallBindings(), this.getCGMappingCallBinding(), null, "mappingCallBindings", null, 0, -1, CGMappingCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

Back to the top