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

org.contextmapper.dsl.contextMappingDSL.impl.DomainImpl Maven / Gradle / Ivy

/**
 * generated by Xtext 2.21.0
 */
package org.contextmapper.dsl.contextMappingDSL.impl;

import java.util.Collection;

import org.contextmapper.dsl.contextMappingDSL.ContextMappingDSLPackage;
import org.contextmapper.dsl.contextMappingDSL.Domain;
import org.contextmapper.dsl.contextMappingDSL.Subdomain;

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 'Domain'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.contextmapper.dsl.contextMappingDSL.impl.DomainImpl#getSubdomains Subdomains}
  • *
* * @generated */ public class DomainImpl extends DomainPartImpl implements Domain { /** * The cached value of the '{@link #getSubdomains() Subdomains}' containment reference list. * * * @see #getSubdomains() * @generated * @ordered */ protected EList subdomains; /** * * * @generated */ protected DomainImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return ContextMappingDSLPackage.Literals.DOMAIN; } /** * * * @generated */ @Override public EList getSubdomains() { if (subdomains == null) { subdomains = new EObjectContainmentEList(Subdomain.class, this, ContextMappingDSLPackage.DOMAIN__SUBDOMAINS); } return subdomains; } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case ContextMappingDSLPackage.DOMAIN__SUBDOMAINS: return ((InternalEList)getSubdomains()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ContextMappingDSLPackage.DOMAIN__SUBDOMAINS: return getSubdomains(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ContextMappingDSLPackage.DOMAIN__SUBDOMAINS: getSubdomains().clear(); getSubdomains().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ContextMappingDSLPackage.DOMAIN__SUBDOMAINS: getSubdomains().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ContextMappingDSLPackage.DOMAIN__SUBDOMAINS: return subdomains != null && !subdomains.isEmpty(); } return super.eIsSet(featureID); } } //DomainImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy