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

org.nasdanika.models.party.impl.OrganizationImpl Maven / Gradle / Ivy

/**
 */
package org.nasdanika.models.party.impl;

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.InternalEList;

import org.nasdanika.models.party.Organization;
import org.nasdanika.models.party.PartyPackage;
import org.nasdanika.models.party.Role;

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

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.party.impl.OrganizationImpl#getRoles Roles}
  • *
* * @generated */ public class OrganizationImpl extends PartyImpl implements Organization { /** * * * @generated */ protected OrganizationImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return PartyPackage.Literals.ORGANIZATION; } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public EList getRoles() { return (EList)eDynamicGet(PartyPackage.ORGANIZATION__ROLES, PartyPackage.Literals.ORGANIZATION__ROLES, true, true); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case PartyPackage.ORGANIZATION__ROLES: return ((InternalEList)getRoles()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case PartyPackage.ORGANIZATION__ROLES: return getRoles(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case PartyPackage.ORGANIZATION__ROLES: getRoles().clear(); getRoles().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case PartyPackage.ORGANIZATION__ROLES: getRoles().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case PartyPackage.ORGANIZATION__ROLES: return !getRoles().isEmpty(); } return super.eIsSet(featureID); } } //OrganizationImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy