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

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

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

import org.eclipse.emf.ecore.EClass;

import org.nasdanika.models.functionflow.FunctionFlowPackage;
import org.nasdanika.models.functionflow.Source;
import org.nasdanika.models.functionflow.SourceSupplier;

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

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.functionflow.impl.SourceSupplierImpl#getSource Source}
  • *
  • {@link org.nasdanika.models.functionflow.impl.SourceSupplierImpl#getBaseURI Base URI}
  • *
* * @generated */ public class SourceSupplierImpl extends SupplierImpl implements SourceSupplier { /** * The default value of the '{@link #getSource() Source}' attribute. * * * @see #getSource() * @generated * @ordered */ protected static final String SOURCE_EDEFAULT = null; /** * The default value of the '{@link #getBaseURI() Base URI}' attribute. * * * @see #getBaseURI() * @generated * @ordered */ protected static final String BASE_URI_EDEFAULT = null; /** * * * @generated */ protected SourceSupplierImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return FunctionFlowPackage.Literals.SOURCE_SUPPLIER; } /** * * * @generated */ @Override public String getSource() { return (String)eDynamicGet(FunctionFlowPackage.SOURCE_SUPPLIER__SOURCE, FunctionFlowPackage.Literals.SOURCE__SOURCE, true, true); } /** * * * @generated */ @Override public void setSource(String newSource) { eDynamicSet(FunctionFlowPackage.SOURCE_SUPPLIER__SOURCE, FunctionFlowPackage.Literals.SOURCE__SOURCE, newSource); } /** * * * @generated */ @Override public String getBaseURI() { return (String)eDynamicGet(FunctionFlowPackage.SOURCE_SUPPLIER__BASE_URI, FunctionFlowPackage.Literals.SOURCE__BASE_URI, true, true); } /** * * * @generated */ @Override public void setBaseURI(String newBaseURI) { eDynamicSet(FunctionFlowPackage.SOURCE_SUPPLIER__BASE_URI, FunctionFlowPackage.Literals.SOURCE__BASE_URI, newBaseURI); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case FunctionFlowPackage.SOURCE_SUPPLIER__SOURCE: return getSource(); case FunctionFlowPackage.SOURCE_SUPPLIER__BASE_URI: return getBaseURI(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case FunctionFlowPackage.SOURCE_SUPPLIER__SOURCE: setSource((String)newValue); return; case FunctionFlowPackage.SOURCE_SUPPLIER__BASE_URI: setBaseURI((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case FunctionFlowPackage.SOURCE_SUPPLIER__SOURCE: setSource(SOURCE_EDEFAULT); return; case FunctionFlowPackage.SOURCE_SUPPLIER__BASE_URI: setBaseURI(BASE_URI_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case FunctionFlowPackage.SOURCE_SUPPLIER__SOURCE: return SOURCE_EDEFAULT == null ? getSource() != null : !SOURCE_EDEFAULT.equals(getSource()); case FunctionFlowPackage.SOURCE_SUPPLIER__BASE_URI: return BASE_URI_EDEFAULT == null ? getBaseURI() != null : !BASE_URI_EDEFAULT.equals(getBaseURI()); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { if (baseClass == Source.class) { switch (derivedFeatureID) { case FunctionFlowPackage.SOURCE_SUPPLIER__SOURCE: return FunctionFlowPackage.SOURCE__SOURCE; case FunctionFlowPackage.SOURCE_SUPPLIER__BASE_URI: return FunctionFlowPackage.SOURCE__BASE_URI; default: return -1; } } return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); } /** * * * @generated */ @Override public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { if (baseClass == Source.class) { switch (baseFeatureID) { case FunctionFlowPackage.SOURCE__SOURCE: return FunctionFlowPackage.SOURCE_SUPPLIER__SOURCE; case FunctionFlowPackage.SOURCE__BASE_URI: return FunctionFlowPackage.SOURCE_SUPPLIER__BASE_URI; default: return -1; } } return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); } } //SourceSupplierImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy