blob: cd9ca8a6162c00d0db8a91f12016ad664cbb0a14 [file] [log] [blame]
/*
* Copyright (c) 2014, 2018 CEA 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:
* Kenn Hussey (CEA) - initial API and implementation
* Kenn Hussey (CEA) - 451350
*
*/
package org.eclipse.uml2.uml.profile.standard.internal.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.uml2.uml.profile.standard.Framework;
import org.eclipse.uml2.uml.profile.standard.StandardPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Framework</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.eclipse.uml2.uml.profile.standard.internal.impl.FrameworkImpl#getBase_Package <em>Base Package</em>}</li>
* </ul>
*
* @generated
*/
public class FrameworkImpl
extends EObjectImpl
implements Framework {
/**
* The cached value of the '{@link #getBase_Package() <em>Base Package</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBase_Package()
* @generated
* @ordered
*/
protected org.eclipse.uml2.uml.Package base_Package;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected FrameworkImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return StandardPackage.Literals.FRAMEWORK;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.eclipse.uml2.uml.Package getBase_Package() {
if (base_Package != null && base_Package.eIsProxy()) {
InternalEObject oldBase_Package = (InternalEObject) base_Package;
base_Package = (org.eclipse.uml2.uml.Package) eResolveProxy(
oldBase_Package);
if (base_Package != oldBase_Package) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
StandardPackage.FRAMEWORK__BASE_PACKAGE,
oldBase_Package, base_Package));
}
}
return base_Package;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.eclipse.uml2.uml.Package basicGetBase_Package() {
return base_Package;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setBase_Package(org.eclipse.uml2.uml.Package newBase_Package) {
org.eclipse.uml2.uml.Package oldBase_Package = base_Package;
base_Package = newBase_Package;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StandardPackage.FRAMEWORK__BASE_PACKAGE, oldBase_Package,
base_Package));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case StandardPackage.FRAMEWORK__BASE_PACKAGE :
if (resolve)
return getBase_Package();
return basicGetBase_Package();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case StandardPackage.FRAMEWORK__BASE_PACKAGE :
setBase_Package((org.eclipse.uml2.uml.Package) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case StandardPackage.FRAMEWORK__BASE_PACKAGE :
setBase_Package((org.eclipse.uml2.uml.Package) null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case StandardPackage.FRAMEWORK__BASE_PACKAGE :
return base_Package != null;
}
return super.eIsSet(featureID);
}
} //FrameworkImpl