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

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

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

import java.util.Objects;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;
import org.nasdanika.models.architecture.impl.ArchitectureDescriptionElementImpl;
import org.nasdanika.models.rules.Rule;
import org.nasdanika.models.rules.RulesPackage;
import org.nasdanika.models.rules.Severity;
import org.nasdanika.ncore.util.NcoreUtil;

/**
 * 
 * An implementation of the model object 'Severity'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.rules.impl.SeverityImpl#getRules Rules}
  • *
* * @generated */ public class SeverityImpl extends ArchitectureDescriptionElementImpl implements Severity { /** * * * @generated */ protected SeverityImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return RulesPackage.Literals.SEVERITY; } /** * * * @generated NOT */ @Override public EList getRules() { return NcoreUtil.getReferrers(this, Objects.requireNonNull(NcoreUtil.getOpposite(RulesPackage.Literals.SEVERITY__RULES), "Opposite is null: " + RulesPackage.Literals.SEVERITY__RULES)); // return (EList)eDynamicGet(RulesPackage.SEVERITY__RULES, RulesPackage.Literals.SEVERITY__RULES, true, true); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case RulesPackage.SEVERITY__RULES: return getRules(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case RulesPackage.SEVERITY__RULES: return !getRules().isEmpty(); } return super.eIsSet(featureID); } } //SeverityImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy