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

org.nasdanika.models.java.impl.MemberImpl Maven / Gradle / Ivy

/**
 */
package org.nasdanika.models.java.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.java.GenericType;
import org.nasdanika.models.java.JavaPackage;
import org.nasdanika.models.java.Member;

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

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.java.impl.MemberImpl#getModifiers Modifiers}
  • *
  • {@link org.nasdanika.models.java.impl.MemberImpl#getReferencedTypes Referenced Types}
  • *
* * @generated */ public abstract class MemberImpl extends NamedElementImpl implements Member { /** * * * @generated */ protected MemberImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return JavaPackage.Literals.MEMBER; } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public EList getModifiers() { return (EList)eDynamicGet(JavaPackage.MEMBER__MODIFIERS, JavaPackage.Literals.MEMBER__MODIFIERS, true, true); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public EList getReferencedTypes() { return (EList)eDynamicGet(JavaPackage.MEMBER__REFERENCED_TYPES, JavaPackage.Literals.MEMBER__REFERENCED_TYPES, true, true); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case JavaPackage.MEMBER__REFERENCED_TYPES: return ((InternalEList)getReferencedTypes()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case JavaPackage.MEMBER__MODIFIERS: return getModifiers(); case JavaPackage.MEMBER__REFERENCED_TYPES: return getReferencedTypes(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case JavaPackage.MEMBER__MODIFIERS: getModifiers().clear(); getModifiers().addAll((Collection)newValue); return; case JavaPackage.MEMBER__REFERENCED_TYPES: getReferencedTypes().clear(); getReferencedTypes().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case JavaPackage.MEMBER__MODIFIERS: getModifiers().clear(); return; case JavaPackage.MEMBER__REFERENCED_TYPES: getReferencedTypes().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case JavaPackage.MEMBER__MODIFIERS: return !getModifiers().isEmpty(); case JavaPackage.MEMBER__REFERENCED_TYPES: return !getReferencedTypes().isEmpty(); } return super.eIsSet(featureID); } @Override protected String annotationSuffix(int indent) { return isMerging() ? "" : System.lineSeparator(); } protected String annotationPrefix(int indent) { return isMerging() ? "" : indent(indent).toString(); } } //MemberImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy