Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ResourceImpl.java')
-rw-r--r--extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ResourceImpl.java665
1 files changed, 0 insertions, 665 deletions
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ResourceImpl.java
deleted file mode 100644
index 4835f366157..00000000000
--- a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/ResourceImpl.java
+++ /dev/null
@@ -1,665 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * 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:
- * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.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.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Resource;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.ConnectableElement;
-import org.eclipse.uml2.uml.InstanceSpecification;
-import org.eclipse.uml2.uml.Lifeline;
-import org.eclipse.uml2.uml.Property;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Resource</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#getResMult <em>Res Mult</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#isIsProtected <em>Is Protected</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#isIsActive <em>Is Active</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#getBase_Property <em>Base Property</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#getBase_InstanceSpecification <em>Base Instance Specification</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#getBase_Classifier <em>Base Classifier</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#getBase_Lifeline <em>Base Lifeline</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl#getBase_ConnectableElement <em>Base Connectable Element</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ResourceImpl extends EObjectImpl implements Resource {
- /**
- * The default value of the '{@link #getResMult() <em>Res Mult</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getResMult()
- * @generated
- * @ordered
- */
- protected static final String RES_MULT_EDEFAULT = "1";
-
- /**
- * The cached value of the '{@link #getResMult() <em>Res Mult</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getResMult()
- * @generated
- * @ordered
- */
- protected String resMult = RES_MULT_EDEFAULT;
-
- /**
- * The default value of the '{@link #isIsProtected() <em>Is Protected</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isIsProtected()
- * @generated
- * @ordered
- */
- protected static final boolean IS_PROTECTED_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isIsProtected() <em>Is Protected</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isIsProtected()
- * @generated
- * @ordered
- */
- protected boolean isProtected = IS_PROTECTED_EDEFAULT;
-
- /**
- * The default value of the '{@link #isIsActive() <em>Is Active</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isIsActive()
- * @generated
- * @ordered
- */
- protected static final boolean IS_ACTIVE_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isIsActive() <em>Is Active</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isIsActive()
- * @generated
- * @ordered
- */
- protected boolean isActive = IS_ACTIVE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_Property()
- * @generated
- * @ordered
- */
- protected Property base_Property;
-
- /**
- * The cached value of the '{@link #getBase_InstanceSpecification() <em>Base Instance Specification</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_InstanceSpecification()
- * @generated
- * @ordered
- */
- protected InstanceSpecification base_InstanceSpecification;
-
- /**
- * The cached value of the '{@link #getBase_Classifier() <em>Base Classifier</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_Classifier()
- * @generated
- * @ordered
- */
- protected Classifier base_Classifier;
-
- /**
- * The cached value of the '{@link #getBase_Lifeline() <em>Base Lifeline</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_Lifeline()
- * @generated
- * @ordered
- */
- protected Lifeline base_Lifeline;
-
- /**
- * The cached value of the '{@link #getBase_ConnectableElement() <em>Base Connectable Element</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_ConnectableElement()
- * @generated
- * @ordered
- */
- protected ConnectableElement base_ConnectableElement;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ResourceImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return GRMPackage.Literals.RESOURCE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getResMult() {
- return resMult;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setResMult(String newResMult) {
- String oldResMult = resMult;
- resMult = newResMult;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__RES_MULT, oldResMult, resMult));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isIsProtected() {
- return isProtected;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setIsProtected(boolean newIsProtected) {
- boolean oldIsProtected = isProtected;
- isProtected = newIsProtected;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__IS_PROTECTED, oldIsProtected, isProtected));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isIsActive() {
- return isActive;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setIsActive(boolean newIsActive) {
- boolean oldIsActive = isActive;
- isActive = newIsActive;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__IS_ACTIVE, oldIsActive, isActive));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Property getBase_Property() {
- if (base_Property != null && base_Property.eIsProxy()) {
- InternalEObject oldBase_Property = (InternalEObject) base_Property;
- base_Property = (Property) eResolveProxy(oldBase_Property);
- if (base_Property != oldBase_Property) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.RESOURCE__BASE_PROPERTY, oldBase_Property, base_Property));
- }
- }
- }
- return base_Property;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Property basicGetBase_Property() {
- return base_Property;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBase_Property(Property newBase_Property) {
- Property oldBase_Property = base_Property;
- base_Property = newBase_Property;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__BASE_PROPERTY, oldBase_Property, base_Property));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public InstanceSpecification getBase_InstanceSpecification() {
- if (base_InstanceSpecification != null && base_InstanceSpecification.eIsProxy()) {
- InternalEObject oldBase_InstanceSpecification = (InternalEObject) base_InstanceSpecification;
- base_InstanceSpecification = (InstanceSpecification) eResolveProxy(oldBase_InstanceSpecification);
- if (base_InstanceSpecification != oldBase_InstanceSpecification) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION, oldBase_InstanceSpecification, base_InstanceSpecification));
- }
- }
- }
- return base_InstanceSpecification;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public InstanceSpecification basicGetBase_InstanceSpecification() {
- return base_InstanceSpecification;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBase_InstanceSpecification(InstanceSpecification newBase_InstanceSpecification) {
- InstanceSpecification oldBase_InstanceSpecification = base_InstanceSpecification;
- base_InstanceSpecification = newBase_InstanceSpecification;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION, oldBase_InstanceSpecification, base_InstanceSpecification));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Classifier getBase_Classifier() {
- if (base_Classifier != null && base_Classifier.eIsProxy()) {
- InternalEObject oldBase_Classifier = (InternalEObject) base_Classifier;
- base_Classifier = (Classifier) eResolveProxy(oldBase_Classifier);
- if (base_Classifier != oldBase_Classifier) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.RESOURCE__BASE_CLASSIFIER, oldBase_Classifier, base_Classifier));
- }
- }
- }
- return base_Classifier;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Classifier basicGetBase_Classifier() {
- return base_Classifier;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBase_Classifier(Classifier newBase_Classifier) {
- Classifier oldBase_Classifier = base_Classifier;
- base_Classifier = newBase_Classifier;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__BASE_CLASSIFIER, oldBase_Classifier, base_Classifier));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Lifeline getBase_Lifeline() {
- if (base_Lifeline != null && base_Lifeline.eIsProxy()) {
- InternalEObject oldBase_Lifeline = (InternalEObject) base_Lifeline;
- base_Lifeline = (Lifeline) eResolveProxy(oldBase_Lifeline);
- if (base_Lifeline != oldBase_Lifeline) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.RESOURCE__BASE_LIFELINE, oldBase_Lifeline, base_Lifeline));
- }
- }
- }
- return base_Lifeline;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Lifeline basicGetBase_Lifeline() {
- return base_Lifeline;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBase_Lifeline(Lifeline newBase_Lifeline) {
- Lifeline oldBase_Lifeline = base_Lifeline;
- base_Lifeline = newBase_Lifeline;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__BASE_LIFELINE, oldBase_Lifeline, base_Lifeline));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ConnectableElement getBase_ConnectableElement() {
- if (base_ConnectableElement != null && base_ConnectableElement.eIsProxy()) {
- InternalEObject oldBase_ConnectableElement = (InternalEObject) base_ConnectableElement;
- base_ConnectableElement = (ConnectableElement) eResolveProxy(oldBase_ConnectableElement);
- if (base_ConnectableElement != oldBase_ConnectableElement) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT, oldBase_ConnectableElement, base_ConnectableElement));
- }
- }
- }
- return base_ConnectableElement;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ConnectableElement basicGetBase_ConnectableElement() {
- return base_ConnectableElement;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBase_ConnectableElement(ConnectableElement newBase_ConnectableElement) {
- ConnectableElement oldBase_ConnectableElement = base_ConnectableElement;
- base_ConnectableElement = newBase_ConnectableElement;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT, oldBase_ConnectableElement, base_ConnectableElement));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case GRMPackage.RESOURCE__RES_MULT:
- return getResMult();
- case GRMPackage.RESOURCE__IS_PROTECTED:
- return isIsProtected();
- case GRMPackage.RESOURCE__IS_ACTIVE:
- return isIsActive();
- case GRMPackage.RESOURCE__BASE_PROPERTY:
- if (resolve) {
- return getBase_Property();
- }
- return basicGetBase_Property();
- case GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION:
- if (resolve) {
- return getBase_InstanceSpecification();
- }
- return basicGetBase_InstanceSpecification();
- case GRMPackage.RESOURCE__BASE_CLASSIFIER:
- if (resolve) {
- return getBase_Classifier();
- }
- return basicGetBase_Classifier();
- case GRMPackage.RESOURCE__BASE_LIFELINE:
- if (resolve) {
- return getBase_Lifeline();
- }
- return basicGetBase_Lifeline();
- case GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT:
- if (resolve) {
- return getBase_ConnectableElement();
- }
- return basicGetBase_ConnectableElement();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case GRMPackage.RESOURCE__RES_MULT:
- setResMult((String) newValue);
- return;
- case GRMPackage.RESOURCE__IS_PROTECTED:
- setIsProtected((Boolean) newValue);
- return;
- case GRMPackage.RESOURCE__IS_ACTIVE:
- setIsActive((Boolean) newValue);
- return;
- case GRMPackage.RESOURCE__BASE_PROPERTY:
- setBase_Property((Property) newValue);
- return;
- case GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION:
- setBase_InstanceSpecification((InstanceSpecification) newValue);
- return;
- case GRMPackage.RESOURCE__BASE_CLASSIFIER:
- setBase_Classifier((Classifier) newValue);
- return;
- case GRMPackage.RESOURCE__BASE_LIFELINE:
- setBase_Lifeline((Lifeline) newValue);
- return;
- case GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT:
- setBase_ConnectableElement((ConnectableElement) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case GRMPackage.RESOURCE__RES_MULT:
- setResMult(RES_MULT_EDEFAULT);
- return;
- case GRMPackage.RESOURCE__IS_PROTECTED:
- setIsProtected(IS_PROTECTED_EDEFAULT);
- return;
- case GRMPackage.RESOURCE__IS_ACTIVE:
- setIsActive(IS_ACTIVE_EDEFAULT);
- return;
- case GRMPackage.RESOURCE__BASE_PROPERTY:
- setBase_Property((Property) null);
- return;
- case GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION:
- setBase_InstanceSpecification((InstanceSpecification) null);
- return;
- case GRMPackage.RESOURCE__BASE_CLASSIFIER:
- setBase_Classifier((Classifier) null);
- return;
- case GRMPackage.RESOURCE__BASE_LIFELINE:
- setBase_Lifeline((Lifeline) null);
- return;
- case GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT:
- setBase_ConnectableElement((ConnectableElement) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case GRMPackage.RESOURCE__RES_MULT:
- return RES_MULT_EDEFAULT == null ? resMult != null : !RES_MULT_EDEFAULT.equals(resMult);
- case GRMPackage.RESOURCE__IS_PROTECTED:
- return isProtected != IS_PROTECTED_EDEFAULT;
- case GRMPackage.RESOURCE__IS_ACTIVE:
- return isActive != IS_ACTIVE_EDEFAULT;
- case GRMPackage.RESOURCE__BASE_PROPERTY:
- return base_Property != null;
- case GRMPackage.RESOURCE__BASE_INSTANCE_SPECIFICATION:
- return base_InstanceSpecification != null;
- case GRMPackage.RESOURCE__BASE_CLASSIFIER:
- return base_Classifier != null;
- case GRMPackage.RESOURCE__BASE_LIFELINE:
- return base_Lifeline != null;
- case GRMPackage.RESOURCE__BASE_CONNECTABLE_ELEMENT:
- return base_ConnectableElement != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (resMult: ");
- result.append(resMult);
- result.append(", isProtected: ");
- result.append(isProtected);
- result.append(", isActive: ");
- result.append(isActive);
- result.append(')');
- return result.toString();
- }
-
-} // ResourceImpl

Back to the top