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

org.nasdanika.html.model.bootstrap.impl.ContentActionGroupItemImpl Maven / Gradle / Ivy

There is a newer version: 2024.8.0
Show newest version
/**
 */
package org.nasdanika.html.model.bootstrap.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.bootstrap.BootstrapPackage;
import org.nasdanika.html.model.bootstrap.ContentActionGroupItem;

/**
 * 
 * An implementation of the model object 'Content Action Group Item'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.html.model.bootstrap.impl.ContentActionGroupItemImpl#getContent Content}
  • *
* * @generated */ public class ContentActionGroupItemImpl extends ActionGroupItemImpl implements ContentActionGroupItem { /** * * * @generated */ protected ContentActionGroupItemImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return BootstrapPackage.Literals.CONTENT_ACTION_GROUP_ITEM; } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public EList getContent() { return (EList)eDynamicGet(BootstrapPackage.CONTENT_ACTION_GROUP_ITEM__CONTENT, BootstrapPackage.Literals.CONTENT_ACTION_GROUP_ITEM__CONTENT, true, true); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case BootstrapPackage.CONTENT_ACTION_GROUP_ITEM__CONTENT: return ((InternalEList)getContent()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case BootstrapPackage.CONTENT_ACTION_GROUP_ITEM__CONTENT: return getContent(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case BootstrapPackage.CONTENT_ACTION_GROUP_ITEM__CONTENT: getContent().clear(); getContent().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case BootstrapPackage.CONTENT_ACTION_GROUP_ITEM__CONTENT: getContent().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case BootstrapPackage.CONTENT_ACTION_GROUP_ITEM__CONTENT: return !getContent().isEmpty(); } return super.eIsSet(featureID); } } //ContentActionGroupItemImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy