org.nasdanika.models.rules.impl.InspectionResultImpl Maven / Gradle / Ivy
/**
*/
package org.nasdanika.models.rules.impl;
import org.eclipse.emf.ecore.EClass;
import org.nasdanika.models.architecture.impl.ArchitectureDescriptionElementImpl;
import org.nasdanika.models.rules.InspectionResult;
import org.nasdanika.models.rules.Rule;
import org.nasdanika.models.rules.RulesPackage;
/**
*
* An implementation of the model object 'Inspection Result'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.models.rules.impl.InspectionResultImpl#getRule Rule}
*
*
* @generated
*/
public class InspectionResultImpl extends ArchitectureDescriptionElementImpl implements InspectionResult {
/**
*
*
* @generated
*/
protected InspectionResultImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return RulesPackage.Literals.INSPECTION_RESULT;
}
/**
*
*
* @generated
*/
@Override
public Rule getRule() {
return (Rule)eDynamicGet(RulesPackage.INSPECTION_RESULT__RULE, RulesPackage.Literals.INSPECTION_RESULT__RULE, true, true);
}
/**
*
*
* @generated
*/
public Rule basicGetRule() {
return (Rule)eDynamicGet(RulesPackage.INSPECTION_RESULT__RULE, RulesPackage.Literals.INSPECTION_RESULT__RULE, false, true);
}
/**
*
*
* @generated
*/
@Override
public void setRule(Rule newRule) {
eDynamicSet(RulesPackage.INSPECTION_RESULT__RULE, RulesPackage.Literals.INSPECTION_RESULT__RULE, newRule);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case RulesPackage.INSPECTION_RESULT__RULE:
if (resolve) return getRule();
return basicGetRule();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case RulesPackage.INSPECTION_RESULT__RULE:
setRule((Rule)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case RulesPackage.INSPECTION_RESULT__RULE:
setRule((Rule)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case RulesPackage.INSPECTION_RESULT__RULE:
return basicGetRule() != null;
}
return super.eIsSet(featureID);
}
} //InspectionResultImpl