/** */ package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTParOrCombinator; import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningTactic; import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; import java.util.Collection; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; /** * * An implementation of the model object 'SMT Par Or Combinator'. * *

* The following features are implemented: *

*

* * @generated */ public class SMTParOrCombinatorImpl extends SMTReasoningCombinatorImpl implements SMTParOrCombinator { /** * The cached value of the '{@link #getTactics() Tactics}' containment reference list. * * * @see #getTactics() * @generated * @ordered */ protected EList tactics; /** * * * @generated */ protected SMTParOrCombinatorImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return SmtLanguagePackage.Literals.SMT_PAR_OR_COMBINATOR; } /** * * * @generated */ public EList getTactics() { if (tactics == null) { tactics = new EObjectContainmentEList(SMTReasoningTactic.class, this, SmtLanguagePackage.SMT_PAR_OR_COMBINATOR__TACTICS); } return tactics; } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case SmtLanguagePackage.SMT_PAR_OR_COMBINATOR__TACTICS: return ((InternalEList)getTactics()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case SmtLanguagePackage.SMT_PAR_OR_COMBINATOR__TACTICS: return getTactics(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case SmtLanguagePackage.SMT_PAR_OR_COMBINATOR__TACTICS: getTactics().clear(); getTactics().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case SmtLanguagePackage.SMT_PAR_OR_COMBINATOR__TACTICS: getTactics().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case SmtLanguagePackage.SMT_PAR_OR_COMBINATOR__TACTICS: return tactics != null && !tactics.isEmpty(); } return super.eIsSet(featureID); } } //SMTParOrCombinatorImpl