Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpConstraintImpl.java')
-rw-r--r--extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpConstraintImpl.java303
1 files changed, 0 insertions, 303 deletions
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpConstraintImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpConstraintImpl.java
deleted file mode 100644
index 1e3ca4c440a..00000000000
--- a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/NfpConstraintImpl.java
+++ /dev/null
@@ -1,303 +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.NFPs.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.EList;
-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.emf.ecore.util.EObjectResolvingEList;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.CoreElements.Mode;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.ConstraintKind;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NfpConstraint;
-import org.eclipse.uml2.uml.Constraint;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Nfp Constraint</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpConstraintImpl#getKind <em>Kind</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpConstraintImpl#getBase_Constraint <em>Base Constraint</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpConstraintImpl#getMode <em>Mode</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class NfpConstraintImpl extends EObjectImpl implements NfpConstraint {
- /**
- * The default value of the '{@link #getKind() <em>Kind</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getKind()
- * @generated
- * @ordered
- */
- protected static final ConstraintKind KIND_EDEFAULT = ConstraintKind.REQUIRED;
-
- /**
- * The cached value of the '{@link #getKind() <em>Kind</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getKind()
- * @generated
- * @ordered
- */
- protected ConstraintKind kind = KIND_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getBase_Constraint() <em>Base Constraint</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_Constraint()
- * @generated
- * @ordered
- */
- protected Constraint base_Constraint;
-
- /**
- * The cached value of the '{@link #getMode() <em>Mode</em>}' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getMode()
- * @generated
- * @ordered
- */
- protected EList<Mode> mode;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected NfpConstraintImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NFPsPackage.Literals.NFP_CONSTRAINT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ConstraintKind getKind() {
- return kind;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setKind(ConstraintKind newKind) {
- ConstraintKind oldKind = kind;
- kind = newKind == null ? KIND_EDEFAULT : newKind;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.NFP_CONSTRAINT__KIND, oldKind, kind));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Constraint getBase_Constraint() {
- if (base_Constraint != null && base_Constraint.eIsProxy()) {
- InternalEObject oldBase_Constraint = (InternalEObject) base_Constraint;
- base_Constraint = (Constraint) eResolveProxy(oldBase_Constraint);
- if (base_Constraint != oldBase_Constraint) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT, oldBase_Constraint, base_Constraint));
- }
- }
- }
- return base_Constraint;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Constraint basicGetBase_Constraint() {
- return base_Constraint;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBase_Constraint(Constraint newBase_Constraint) {
- Constraint oldBase_Constraint = base_Constraint;
- base_Constraint = newBase_Constraint;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT, oldBase_Constraint, base_Constraint));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EList<Mode> getMode() {
- if (mode == null) {
- mode = new EObjectResolvingEList<Mode>(Mode.class, this, NFPsPackage.NFP_CONSTRAINT__MODE);
- }
- return mode;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case NFPsPackage.NFP_CONSTRAINT__KIND:
- return getKind();
- case NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT:
- if (resolve) {
- return getBase_Constraint();
- }
- return basicGetBase_Constraint();
- case NFPsPackage.NFP_CONSTRAINT__MODE:
- return getMode();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NFPsPackage.NFP_CONSTRAINT__KIND:
- setKind((ConstraintKind) newValue);
- return;
- case NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT:
- setBase_Constraint((Constraint) newValue);
- return;
- case NFPsPackage.NFP_CONSTRAINT__MODE:
- getMode().clear();
- getMode().addAll((Collection<? extends Mode>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NFPsPackage.NFP_CONSTRAINT__KIND:
- setKind(KIND_EDEFAULT);
- return;
- case NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT:
- setBase_Constraint((Constraint) null);
- return;
- case NFPsPackage.NFP_CONSTRAINT__MODE:
- getMode().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NFPsPackage.NFP_CONSTRAINT__KIND:
- return kind != KIND_EDEFAULT;
- case NFPsPackage.NFP_CONSTRAINT__BASE_CONSTRAINT:
- return base_Constraint != null;
- case NFPsPackage.NFP_CONSTRAINT__MODE:
- return mode != null && !mode.isEmpty();
- }
- 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(" (kind: ");
- result.append(kind);
- result.append(')');
- return result.toString();
- }
-
-} // NfpConstraintImpl

Back to the top