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

org.nasdanika.html.model.app.impl.PagePartImpl Maven / Gradle / Ivy

There is a newer version: 2024.10.0
Show newest version
/**
 */
package org.nasdanika.html.model.app.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.EObject;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.InternalEList;
import org.nasdanika.html.model.app.AppPackage;
import org.nasdanika.html.model.app.PagePart;
import org.nasdanika.html.model.bootstrap.impl.BootstrapElementImpl;

/**
 * 
 * An implementation of the model object 'Page Part'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.html.model.app.impl.PagePartImpl#getItems Items}
  • *
* * @generated */ public abstract class PagePartImpl extends BootstrapElementImpl implements PagePart { /** * * * @generated */ protected PagePartImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return AppPackage.Literals.PAGE_PART; } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public EList getItems() { return (EList)eDynamicGet(AppPackage.PAGE_PART__ITEMS, AppPackage.Literals.PAGE_PART__ITEMS, true, true); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case AppPackage.PAGE_PART__ITEMS: return ((InternalEList)getItems()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case AppPackage.PAGE_PART__ITEMS: return getItems(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case AppPackage.PAGE_PART__ITEMS: getItems().clear(); getItems().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case AppPackage.PAGE_PART__ITEMS: getItems().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case AppPackage.PAGE_PART__ITEMS: return !getItems().isEmpty(); } return super.eIsSet(featureID); } } //PagePartImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy