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

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

/**
 */
package org.nasdanika.models.rules.impl;

import org.eclipse.emf.ecore.EClass;

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

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

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.rules.impl.BinaryResourceActionImpl#getContent Content}
  • *
* * @generated */ public class BinaryResourceActionImpl extends ResourceActionImpl implements BinaryResourceAction { /** * The default value of the '{@link #getContent() Content}' attribute. * * * @see #getContent() * @generated * @ordered */ protected static final byte[] CONTENT_EDEFAULT = null; /** * * * @generated */ protected BinaryResourceActionImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return RulesPackage.Literals.BINARY_RESOURCE_ACTION; } /** * * * @generated */ @Override public byte[] getContent() { return (byte[])eDynamicGet(RulesPackage.BINARY_RESOURCE_ACTION__CONTENT, RulesPackage.Literals.BINARY_RESOURCE_ACTION__CONTENT, true, true); } /** * * * @generated */ @Override public void setContent(byte[] newContent) { eDynamicSet(RulesPackage.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.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.BINARY_RESOURCE_ACTION__CONTENT: setContent((byte[])newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case RulesPackage.BINARY_RESOURCE_ACTION__CONTENT: setContent(CONTENT_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case RulesPackage.BINARY_RESOURCE_ACTION__CONTENT: return CONTENT_EDEFAULT == null ? getContent() != null : !CONTENT_EDEFAULT.equals(getContent()); } return super.eIsSet(featureID); } } //BinaryResourceActionImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy