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

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

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

import org.eclipse.emf.ecore.EClass;

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

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

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.rules.impl.ResourceActionImpl#getResourceIdentifier Resource Identifier}
  • *
* * @generated */ public class ResourceActionImpl extends ActionImpl implements ResourceAction { /** * The default value of the '{@link #getResourceIdentifier() Resource Identifier}' attribute. * * * @see #getResourceIdentifier() * @generated * @ordered */ protected static final String RESOURCE_IDENTIFIER_EDEFAULT = null; /** * * * @generated */ protected ResourceActionImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return RulesPackage.Literals.RESOURCE_ACTION; } /** * * * @generated */ @Override public String getResourceIdentifier() { return (String)eDynamicGet(RulesPackage.RESOURCE_ACTION__RESOURCE_IDENTIFIER, RulesPackage.Literals.RESOURCE_ACTION__RESOURCE_IDENTIFIER, true, true); } /** * * * @generated */ @Override public void setResourceIdentifier(String newResourceIdentifier) { eDynamicSet(RulesPackage.RESOURCE_ACTION__RESOURCE_IDENTIFIER, RulesPackage.Literals.RESOURCE_ACTION__RESOURCE_IDENTIFIER, newResourceIdentifier); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case RulesPackage.RESOURCE_ACTION__RESOURCE_IDENTIFIER: return getResourceIdentifier(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case RulesPackage.RESOURCE_ACTION__RESOURCE_IDENTIFIER: setResourceIdentifier((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case RulesPackage.RESOURCE_ACTION__RESOURCE_IDENTIFIER: setResourceIdentifier(RESOURCE_IDENTIFIER_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case RulesPackage.RESOURCE_ACTION__RESOURCE_IDENTIFIER: return RESOURCE_IDENTIFIER_EDEFAULT == null ? getResourceIdentifier() != null : !RESOURCE_IDENTIFIER_EDEFAULT.equals(getResourceIdentifier()); } return super.eIsSet(featureID); } } //ResourceActionImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy