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

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

There is a newer version: 2024.8.0
Show newest version
/**
 */
package org.nasdanika.models.rules.impl;

import org.eclipse.emf.ecore.EClass;

import org.nasdanika.models.rules.BinaryResourceAction;
import org.nasdanika.models.rules.RulesPackage;
import org.nasdanika.models.rules.UpdateBinaryResourceAction;

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

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.rules.impl.UpdateBinaryResourceActionImpl#getContent Content}
  • *
* * @generated */ public class UpdateBinaryResourceActionImpl extends UpdateResourceActionImpl implements UpdateBinaryResourceAction { /** * The default value of the '{@link #getContent() Content}' attribute. * * * @see #getContent() * @generated * @ordered */ protected static final byte[] CONTENT_EDEFAULT = null; /** * * * @generated */ protected UpdateBinaryResourceActionImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return RulesPackage.Literals.UPDATE_BINARY_RESOURCE_ACTION; } /** * * * @generated */ @Override public byte[] getContent() { return (byte[])eDynamicGet(RulesPackage.UPDATE_BINARY_RESOURCE_ACTION__CONTENT, RulesPackage.Literals.BINARY_RESOURCE_ACTION__CONTENT, true, true); } /** * * * @generated */ @Override public void setContent(byte[] newContent) { eDynamicSet(RulesPackage.UPDATE_BINARY_RESOURCE_ACTION__CONTENT, RulesPackage.Literals.BINARY_RESOURCE_ACTION__CONTENT, newContent); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case RulesPackage.UPDATE_BINARY_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_BINARY_RESOURCE_ACTION__CONTENT: setContent((byte[])newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case RulesPackage.UPDATE_BINARY_RESOURCE_ACTION__CONTENT: setContent(CONTENT_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case RulesPackage.UPDATE_BINARY_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 == BinaryResourceAction.class) { switch (derivedFeatureID) { case RulesPackage.UPDATE_BINARY_RESOURCE_ACTION__CONTENT: return RulesPackage.BINARY_RESOURCE_ACTION__CONTENT; default: return -1; } } return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); } /** * * * @generated */ @Override public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { if (baseClass == BinaryResourceAction.class) { switch (baseFeatureID) { case RulesPackage.BINARY_RESOURCE_ACTION__CONTENT: return RulesPackage.UPDATE_BINARY_RESOURCE_ACTION__CONTENT; default: return -1; } } return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); } } //UpdateBinaryResourceActionImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy