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

org.nasdanika.models.functionflow.impl.SupplierFlowImpl Maven / Gradle / Ivy

The newest version!
/**
 */
package org.nasdanika.models.functionflow.impl;

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.util.InternalEList;

import org.nasdanika.graph.model.ConnectionSource;
import org.nasdanika.graph.model.DocumentedNamedConnectionSource;
import org.nasdanika.graph.model.ModelPackage;
import org.nasdanika.models.architecture.Relationship;
import org.nasdanika.models.architecture.RelationshipSource;

import org.nasdanika.models.functionflow.FunctionFlowPackage;
import org.nasdanika.models.functionflow.Supplier;
import org.nasdanika.models.functionflow.SupplierFlow;

/**
 * 
 * An implementation of the model object 'Supplier Flow'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.functionflow.impl.SupplierFlowImpl#getOutgoingConnections Outgoing Connections}
  • *
  • {@link org.nasdanika.models.functionflow.impl.SupplierFlowImpl#getOutput Output}
  • *
* * @generated */ public class SupplierFlowImpl extends FlowImpl implements SupplierFlow { /** * The default value of the '{@link #getOutput() Output}' attribute. * * * @see #getOutput() * @generated * @ordered */ protected static final String OUTPUT_EDEFAULT = null; /** * * * @generated */ protected SupplierFlowImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return FunctionFlowPackage.Literals.SUPPLIER_FLOW; } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public EList getOutgoingConnections() { return (EList)eDynamicGet(FunctionFlowPackage.SUPPLIER_FLOW__OUTGOING_CONNECTIONS, ModelPackage.Literals.CONNECTION_SOURCE__OUTGOING_CONNECTIONS, true, true); } /** * * * @generated */ @Override public String getOutput() { return (String)eDynamicGet(FunctionFlowPackage.SUPPLIER_FLOW__OUTPUT, FunctionFlowPackage.Literals.SUPPLIER__OUTPUT, true, true); } /** * * * @generated */ @Override public void setOutput(String newOutput) { eDynamicSet(FunctionFlowPackage.SUPPLIER_FLOW__OUTPUT, FunctionFlowPackage.Literals.SUPPLIER__OUTPUT, newOutput); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case FunctionFlowPackage.SUPPLIER_FLOW__OUTGOING_CONNECTIONS: return ((InternalEList)getOutgoingConnections()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case FunctionFlowPackage.SUPPLIER_FLOW__OUTGOING_CONNECTIONS: return getOutgoingConnections(); case FunctionFlowPackage.SUPPLIER_FLOW__OUTPUT: return getOutput(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case FunctionFlowPackage.SUPPLIER_FLOW__OUTGOING_CONNECTIONS: getOutgoingConnections().clear(); getOutgoingConnections().addAll((Collection)newValue); return; case FunctionFlowPackage.SUPPLIER_FLOW__OUTPUT: setOutput((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case FunctionFlowPackage.SUPPLIER_FLOW__OUTGOING_CONNECTIONS: getOutgoingConnections().clear(); return; case FunctionFlowPackage.SUPPLIER_FLOW__OUTPUT: setOutput(OUTPUT_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case FunctionFlowPackage.SUPPLIER_FLOW__OUTGOING_CONNECTIONS: return !getOutgoingConnections().isEmpty(); case FunctionFlowPackage.SUPPLIER_FLOW__OUTPUT: return OUTPUT_EDEFAULT == null ? getOutput() != null : !OUTPUT_EDEFAULT.equals(getOutput()); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { if (baseClass == ConnectionSource.class) { switch (derivedFeatureID) { case FunctionFlowPackage.SUPPLIER_FLOW__OUTGOING_CONNECTIONS: return ModelPackage.CONNECTION_SOURCE__OUTGOING_CONNECTIONS; default: return -1; } } if (baseClass == DocumentedNamedConnectionSource.class) { switch (derivedFeatureID) { default: return -1; } } if (baseClass == RelationshipSource.class) { switch (derivedFeatureID) { default: return -1; } } if (baseClass == Supplier.class) { switch (derivedFeatureID) { case FunctionFlowPackage.SUPPLIER_FLOW__OUTPUT: return FunctionFlowPackage.SUPPLIER__OUTPUT; default: return -1; } } return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); } /** * * * @generated */ @Override public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { if (baseClass == ConnectionSource.class) { switch (baseFeatureID) { case ModelPackage.CONNECTION_SOURCE__OUTGOING_CONNECTIONS: return FunctionFlowPackage.SUPPLIER_FLOW__OUTGOING_CONNECTIONS; default: return -1; } } if (baseClass == DocumentedNamedConnectionSource.class) { switch (baseFeatureID) { default: return -1; } } if (baseClass == RelationshipSource.class) { switch (baseFeatureID) { default: return -1; } } if (baseClass == Supplier.class) { switch (baseFeatureID) { case FunctionFlowPackage.SUPPLIER__OUTPUT: return FunctionFlowPackage.SUPPLIER_FLOW__OUTPUT; default: return -1; } } return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); } } //SupplierFlowImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy