Commit 06a7e2c3 authored by Erwan Bousse's avatar Erwan Bousse
Browse files

Versionning everything

parent cf54973e
/**
*/
package somemetamodelextension.hidden;
import fr.inria.diverse.cloning.cloner.emfextension.ShareableEObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Z</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link somemetamodelextension.hidden.Z#getY <em>Y</em>}</li>
* <li>{@link somemetamodelextension.hidden.Z#getI_m <em>Im</em>}</li>
* </ul>
* </p>
*
* @see somemetamodelextension.hidden.HiddenPackage#getZ()
* @model
* @extends ShareableEObject
* @generated
*/
public interface Z extends ShareableEObject {
/**
* Returns the value of the '<em><b>Y</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Y</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Y</em>' reference.
* @see #setY(Y)
* @see somemetamodelextension.hidden.HiddenPackage#getZ_Y()
* @model
* @generated
*/
Y getY();
/**
* Sets the value of the '{@link somemetamodelextension.hidden.Z#getY <em>Y</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Y</em>' reference.
* @see #getY()
* @generated
*/
void setY(Y value);
/**
* Returns the value of the '<em><b>Im</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Im</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Im</em>' attribute.
* @see #setI_m(String)
* @see somemetamodelextension.hidden.HiddenPackage#getZ_I_m()
* @model
* @generated
*/
String getI_m();
/**
* Sets the value of the '{@link somemetamodelextension.hidden.Z#getI_m <em>Im</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Im</em>' attribute.
* @see #getI_m()
* @generated
*/
void setI_m(String value);
} // Z
/**
*/
package somemetamodelextension.hidden.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import somemetamodelextension.hidden.*;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
* @generated
*/
public class HiddenFactoryImpl extends EFactoryImpl implements HiddenFactory {
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static HiddenFactory init() {
try {
HiddenFactory theHiddenFactory = (HiddenFactory) EPackage.Registry.INSTANCE
.getEFactory(HiddenPackage.eNS_URI);
if (theHiddenFactory != null) {
return theHiddenFactory;
}
} catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new HiddenFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public HiddenFactoryImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case HiddenPackage.Y:
return (EObject) createY();
case HiddenPackage.Z:
return (EObject) createZ();
default:
throw new IllegalArgumentException("The class '" + eClass.getName()
+ "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Y createY() {
YImpl y = new YImpl();
return y;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Z createZ() {
ZImpl z = new ZImpl();
return z;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public HiddenPackage getHiddenPackage() {
return (HiddenPackage) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static HiddenPackage getPackage() {
return HiddenPackage.eINSTANCE;
}
} //HiddenFactoryImpl
/**
*/
package somemetamodelextension.hidden.impl;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
import somemetamodel.SomemetamodelPackage;
import somemetamodel.impl.SomemetamodelPackageImpl;
import somemetamodelextension.SomemetamodelextensionPackage;
import somemetamodelextension.hidden.HiddenFactory;
import somemetamodelextension.hidden.HiddenPackage;
import somemetamodelextension.impl.SomemetamodelextensionPackageImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
* @generated
*/
public class HiddenPackageImpl extends EPackageImpl implements HiddenPackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass yEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass zEClass = 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 somemetamodelextension.hidden.HiddenPackage#eNS_URI
* @see #init()
* @generated
*/
private HiddenPackageImpl() {
super(eNS_URI, HiddenFactory.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 HiddenPackage#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 HiddenPackage init() {
if (isInited)
return (HiddenPackage) EPackage.Registry.INSTANCE
.getEPackage(HiddenPackage.eNS_URI);
// Obtain or create and register package
HiddenPackageImpl theHiddenPackage = (HiddenPackageImpl) (EPackage.Registry.INSTANCE
.get(eNS_URI) instanceof HiddenPackageImpl ? EPackage.Registry.INSTANCE
.get(eNS_URI) : new HiddenPackageImpl());
isInited = true;
// Obtain or create and register interdependencies
SomemetamodelPackageImpl theSomemetamodelPackage = (SomemetamodelPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(SomemetamodelPackage.eNS_URI) instanceof SomemetamodelPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(SomemetamodelPackage.eNS_URI)
: SomemetamodelPackage.eINSTANCE);
SomemetamodelextensionPackageImpl theSomemetamodelextensionPackage = (SomemetamodelextensionPackageImpl) (EPackage.Registry.INSTANCE
.getEPackage(SomemetamodelextensionPackage.eNS_URI) instanceof SomemetamodelextensionPackageImpl ? EPackage.Registry.INSTANCE
.getEPackage(SomemetamodelextensionPackage.eNS_URI)
: SomemetamodelextensionPackage.eINSTANCE);
// Create package meta-data objects
theHiddenPackage.createPackageContents();
theSomemetamodelPackage.createPackageContents();
theSomemetamodelextensionPackage.createPackageContents();
// Initialize created meta-data
theHiddenPackage.initializePackageContents();
theSomemetamodelPackage.initializePackageContents();
theSomemetamodelextensionPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theHiddenPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(HiddenPackage.eNS_URI, theHiddenPackage);
return theHiddenPackage;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getY() {
return yEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getY_Z() {
return (EReference) yEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getZ() {
return zEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getZ_Y() {
return (EReference) zEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getZ_I_m() {
return (EAttribute) zEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public HiddenFactory getHiddenFactory() {
return (HiddenFactory) 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
yEClass = createEClass(Y);
createEReference(yEClass, Y__Z);
zEClass = createEClass(Z);
createEReference(zEClass, Z__Y);
createEAttribute(zEClass, Z__IM);
}
/**
* <!-- 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);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
// Initialize classes, features, and operations; add parameters
initEClass(yEClass, somemetamodelextension.hidden.Y.class, "Y",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getY_Z(), this.getZ(), null, "z", null, 0, 1,
somemetamodelextension.hidden.Y.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(zEClass, somemetamodelextension.hidden.Z.class, "Z",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getZ_Y(), this.getY(), null, "y", null, 0, 1,
somemetamodelextension.hidden.Z.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getZ_I_m(), ecorePackage.getEString(), "i_m", null, 0,
1, somemetamodelextension.hidden.Z.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
!IS_DERIVED, IS_ORDERED);
}
} //HiddenPackageImpl
/**
*/
package somemetamodelextension.hidden.impl;
import fr.inria.diverse.cloning.cloner.emfextension.impl.AbstractShareableEObject;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import somemetamodelextension.hidden.HiddenPackage;
import somemetamodelextension.hidden.Y;
import somemetamodelextension.hidden.Z;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Y</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link somemetamodelextension.hidden.impl.YImpl#getZ <em>Z</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class YImpl extends AbstractShareableEObject implements Y {
/**
* The cached value of the '{@link #getZ() <em>Z</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getZ()
* @generated
* @ordered
*/
protected Z z;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected YImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return HiddenPackage.Literals.Y;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Z getZ() {
if (z != null && ((EObject) z).eIsProxy()) {
InternalEObject oldZ = (InternalEObject) z;
z = (Z) eResolveProxy(oldZ);
if (z != oldZ) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
HiddenPackage.Y__Z, oldZ, z));
}
}
return z;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Z basicGetZ() {
return z;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setZ(Z newZ) {
Z oldZ = z;
z = newZ;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
HiddenPackage.Y__Z, oldZ, z));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case HiddenPackage.Y__Z:
if (resolve)
return getZ();
return basicGetZ();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case HiddenPackage.Y__Z:
setZ((Z) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case HiddenPackage.Y__Z:
setZ((Z) null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->