All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bpsim.impl.PropertyParametersImpl Maven / Gradle / Ivy

There is a newer version: 7.54.0.Final
Show newest version
/**
 */
package bpsim.impl;

import bpsim.BpsimPackage;
import bpsim.PropertyParameters;
import bpsim.PropertyType;

import com.google.gwt.user.client.rpc.GwtTransient;

import java.util.Collection;

import org.eclipse.emf.common.notify.NotificationChain;

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.EObjectImpl;

import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;

/**
 * 
 * An implementation of the model object 'Property Parameters'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link bpsim.impl.PropertyParametersImpl#getProperty Property}
  • *
* * @generated */ public class PropertyParametersImpl extends EObjectImpl implements PropertyParameters { /** * The cached value of the '{@link #getProperty() Property}' containment reference list. * * * @see #getProperty() * @generated * @ordered */ @GwtTransient protected EList property; /** * * * @generated */ protected PropertyParametersImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return BpsimPackage.Literals.PROPERTY_PARAMETERS; } /** * * * @generated */ @Override public EList getProperty() { if (property == null) { property = new EObjectContainmentEList(PropertyType.class, this, BpsimPackage.PROPERTY_PARAMETERS__PROPERTY); } return property; } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case BpsimPackage.PROPERTY_PARAMETERS__PROPERTY: return ((InternalEList)getProperty()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case BpsimPackage.PROPERTY_PARAMETERS__PROPERTY: return getProperty(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case BpsimPackage.PROPERTY_PARAMETERS__PROPERTY: getProperty().clear(); getProperty().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case BpsimPackage.PROPERTY_PARAMETERS__PROPERTY: getProperty().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case BpsimPackage.PROPERTY_PARAMETERS__PROPERTY: return property != null && !property.isEmpty(); } return super.eIsSet(featureID); } } //PropertyParametersImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy