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

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

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

import java.util.Collection;

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

import org.eclipse.emf.ecore.EClass;
import org.nasdanika.models.party.Party;
import org.nasdanika.models.party.PartyPackage;
import org.nasdanika.models.party.Role;
import org.nasdanika.ncore.impl.DocumentedNamedStringIdentityImpl;

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

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.party.impl.RoleImpl#getPlayers Players}
  • *
* * @generated */ public class RoleImpl extends DocumentedNamedStringIdentityImpl implements Role { /** * * * @generated */ protected RoleImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return PartyPackage.Literals.ROLE; } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public EList getPlayers() { return (EList)eDynamicGet(PartyPackage.ROLE__PLAYERS, PartyPackage.Literals.ROLE__PLAYERS, true, true); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case PartyPackage.ROLE__PLAYERS: return getPlayers(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case PartyPackage.ROLE__PLAYERS: getPlayers().clear(); getPlayers().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case PartyPackage.ROLE__PLAYERS: getPlayers().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case PartyPackage.ROLE__PLAYERS: return !getPlayers().isEmpty(); } return super.eIsSet(featureID); } } //RoleImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy