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

de.opitzconsulting.orcasDsl.impl.GenerateCcImpl Maven / Gradle / Ivy

/**
 */
package de.opitzconsulting.orcasDsl.impl;

import de.opitzconsulting.orcasDsl.GenNameRule;
import de.opitzconsulting.orcasDsl.GenerateCc;
import de.opitzconsulting.orcasDsl.OrcasDslPackage;

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.impl.MinimalEObjectImpl;

import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;

/**
 * 
 * An implementation of the model object 'Generate Cc'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link de.opitzconsulting.orcasDsl.impl.GenerateCcImpl#getConstraintNameRules Constraint Name Rules}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.GenerateCcImpl#getCheckRuleNameRules Check Rule Name Rules}
  • *
* * @generated */ public class GenerateCcImpl extends MinimalEObjectImpl.Container implements GenerateCc { /** * The cached value of the '{@link #getConstraintNameRules() Constraint Name Rules}' containment reference list. * * * @see #getConstraintNameRules() * @generated * @ordered */ public EList constraintNameRules; /** * The cached value of the '{@link #getCheckRuleNameRules() Check Rule Name Rules}' containment reference list. * * * @see #getCheckRuleNameRules() * @generated * @ordered */ public EList checkRuleNameRules; /** * * * @generated */ public GenerateCcImpl() { super(); } /** * * * @generated */ @Override public EClass eStaticClass() { return OrcasDslPackage.Literals.GENERATE_CC; } /** * * * @generated */ public EList getConstraintNameRules() { if (constraintNameRules == null) { constraintNameRules = new EObjectContainmentEList(GenNameRule.class, this, OrcasDslPackage.GENERATE_CC__CONSTRAINT_NAME_RULES); } return constraintNameRules; } /** * * * @generated */ public EList getCheckRuleNameRules() { if (checkRuleNameRules == null) { checkRuleNameRules = new EObjectContainmentEList(GenNameRule.class, this, OrcasDslPackage.GENERATE_CC__CHECK_RULE_NAME_RULES); } return checkRuleNameRules; } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case OrcasDslPackage.GENERATE_CC__CONSTRAINT_NAME_RULES: return ((InternalEList)getConstraintNameRules()).basicRemove(otherEnd, msgs); case OrcasDslPackage.GENERATE_CC__CHECK_RULE_NAME_RULES: return ((InternalEList)getCheckRuleNameRules()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case OrcasDslPackage.GENERATE_CC__CONSTRAINT_NAME_RULES: return getConstraintNameRules(); case OrcasDslPackage.GENERATE_CC__CHECK_RULE_NAME_RULES: return getCheckRuleNameRules(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case OrcasDslPackage.GENERATE_CC__CONSTRAINT_NAME_RULES: getConstraintNameRules().clear(); getConstraintNameRules().addAll((Collection)newValue); return; case OrcasDslPackage.GENERATE_CC__CHECK_RULE_NAME_RULES: getCheckRuleNameRules().clear(); getCheckRuleNameRules().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case OrcasDslPackage.GENERATE_CC__CONSTRAINT_NAME_RULES: getConstraintNameRules().clear(); return; case OrcasDslPackage.GENERATE_CC__CHECK_RULE_NAME_RULES: getCheckRuleNameRules().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case OrcasDslPackage.GENERATE_CC__CONSTRAINT_NAME_RULES: return constraintNameRules != null && !constraintNameRules.isEmpty(); case OrcasDslPackage.GENERATE_CC__CHECK_RULE_NAME_RULES: return checkRuleNameRules != null && !checkRuleNameRules.isEmpty(); } return super.eIsSet(featureID); } } //GenerateCcImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy