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

org.nasdanika.models.rules.impl.UpdateTextResourceActionImpl Maven / Gradle / Ivy

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

import org.eclipse.emf.ecore.EClass;

import org.nasdanika.models.rules.RulesPackage;
import org.nasdanika.models.rules.TextResourceAction;
import org.nasdanika.models.rules.UpdateTextResourceAction;

/**
 * 
 * An implementation of the model object 'Update Text Resource Action'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.rules.impl.UpdateTextResourceActionImpl#getContent Content}
  • *
* * @generated */ public class UpdateTextResourceActionImpl extends UpdateResourceActionImpl implements UpdateTextResourceAction { /** * The default value of the '{@link #getContent() Content}' attribute. * * * @see #getContent() * @generated * @ordered */ protected static final String CONTENT_EDEFAULT = null; /** * * * @generated */ protected UpdateTextResourceActionImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return RulesPackage.Literals.UPDATE_TEXT_RESOURCE_ACTION; } /** * * * @generated */ @Override public String getContent() { return (String)eDynamicGet(RulesPackage.UPDATE_TEXT_RESOURCE_ACTION__CONTENT, RulesPackage.Literals.TEXT_RESOURCE_ACTION__CONTENT, true, true); } /** * * * @generated */ @Override public void setContent(String newContent) { eDynamicSet(RulesPackage.UPDATE_TEXT_RESOURCE_ACTION__CONTENT, RulesPackage.Literals.TEXT_RESOURCE_ACTION__CONTENT, newContent); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case RulesPackage.UPDATE_TEXT_RESOURCE_ACTION__CONTENT: return getContent(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case RulesPackage.UPDATE_TEXT_RESOURCE_ACTION__CONTENT: setContent((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case RulesPackage.UPDATE_TEXT_RESOURCE_ACTION__CONTENT: setContent(CONTENT_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case RulesPackage.UPDATE_TEXT_RESOURCE_ACTION__CONTENT: return CONTENT_EDEFAULT == null ? getContent() != null : !CONTENT_EDEFAULT.equals(getContent()); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { if (baseClass == TextResourceAction.class) { switch (derivedFeatureID) { case RulesPackage.UPDATE_TEXT_RESOURCE_ACTION__CONTENT: return RulesPackage.TEXT_RESOURCE_ACTION__CONTENT; default: return -1; } } return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); } /** * * * @generated */ @Override public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { if (baseClass == TextResourceAction.class) { switch (baseFeatureID) { case RulesPackage.TEXT_RESOURCE_ACTION__CONTENT: return RulesPackage.UPDATE_TEXT_RESOURCE_ACTION__CONTENT; default: return -1; } } return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); } } //UpdateTextResourceActionImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy