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

org.nasdanika.models.functionflow.impl.SourceFunctionImpl 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.SourceFunction;

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

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.functionflow.impl.SourceFunctionImpl#getSource Source}
  • *
  • {@link org.nasdanika.models.functionflow.impl.SourceFunctionImpl#getBaseURI Base URI}
  • *
* * @generated */ public class SourceFunctionImpl extends FunctionImpl implements SourceFunction { /** * 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 SourceFunctionImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return FunctionFlowPackage.Literals.SOURCE_FUNCTION; } /** * * * @generated */ @Override public String getSource() { return (String)eDynamicGet(FunctionFlowPackage.SOURCE_FUNCTION__SOURCE, FunctionFlowPackage.Literals.SOURCE__SOURCE, true, true); } /** * * * @generated */ @Override public void setSource(String newSource) { eDynamicSet(FunctionFlowPackage.SOURCE_FUNCTION__SOURCE, FunctionFlowPackage.Literals.SOURCE__SOURCE, newSource); } /** * * * @generated */ @Override public String getBaseURI() { return (String)eDynamicGet(FunctionFlowPackage.SOURCE_FUNCTION__BASE_URI, FunctionFlowPackage.Literals.SOURCE__BASE_URI, true, true); } /** * * * @generated */ @Override public void setBaseURI(String newBaseURI) { eDynamicSet(FunctionFlowPackage.SOURCE_FUNCTION__BASE_URI, FunctionFlowPackage.Literals.SOURCE__BASE_URI, newBaseURI); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case FunctionFlowPackage.SOURCE_FUNCTION__SOURCE: return getSource(); case FunctionFlowPackage.SOURCE_FUNCTION__BASE_URI: return getBaseURI(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case FunctionFlowPackage.SOURCE_FUNCTION__SOURCE: setSource((String)newValue); return; case FunctionFlowPackage.SOURCE_FUNCTION__BASE_URI: setBaseURI((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case FunctionFlowPackage.SOURCE_FUNCTION__SOURCE: setSource(SOURCE_EDEFAULT); return; case FunctionFlowPackage.SOURCE_FUNCTION__BASE_URI: setBaseURI(BASE_URI_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case FunctionFlowPackage.SOURCE_FUNCTION__SOURCE: return SOURCE_EDEFAULT == null ? getSource() != null : !SOURCE_EDEFAULT.equals(getSource()); case FunctionFlowPackage.SOURCE_FUNCTION__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_FUNCTION__SOURCE: return FunctionFlowPackage.SOURCE__SOURCE; case FunctionFlowPackage.SOURCE_FUNCTION__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_FUNCTION__SOURCE; case FunctionFlowPackage.SOURCE__BASE_URI: return FunctionFlowPackage.SOURCE_FUNCTION__BASE_URI; default: return -1; } } return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); } } //SourceFunctionImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy