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

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

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

import org.eclipse.emf.ecore.EClass;
import org.nasdanika.models.java.JavaPackage;

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

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.java.impl.PackageImpl#getName Name}
  • *
* * @generated */ public class PackageImpl extends SourceImpl implements org.nasdanika.models.java.Package { /** * The default value of the '{@link #getName() Name}' attribute. * * * @see #getName() * @generated * @ordered */ protected static final String NAME_EDEFAULT = null; /** * * * @generated */ protected PackageImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return JavaPackage.Literals.PACKAGE; } /** * * * @generated */ @Override public String getName() { return (String)eDynamicGet(JavaPackage.PACKAGE__NAME, JavaPackage.Literals.PACKAGE__NAME, true, true); } /** * * * @generated */ @Override public void setName(String newName) { eDynamicSet(JavaPackage.PACKAGE__NAME, JavaPackage.Literals.PACKAGE__NAME, newName); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case JavaPackage.PACKAGE__NAME: return getName(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case JavaPackage.PACKAGE__NAME: setName((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case JavaPackage.PACKAGE__NAME: setName(NAME_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case JavaPackage.PACKAGE__NAME: return NAME_EDEFAULT == null ? getName() != null : !NAME_EDEFAULT.equals(getName()); } return super.eIsSet(featureID); } } //PackageImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy