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

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

There is a newer version: 2024.10.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.InternalEObject;

import org.eclipse.emf.ecore.util.InternalEList;

import org.nasdanika.html.model.bootstrap.ActionGroup;
import org.nasdanika.html.model.bootstrap.ActionGroupItem;
import org.nasdanika.html.model.bootstrap.BootstrapPackage;

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

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.html.model.bootstrap.impl.ActionGroupImpl#isFlush Flush}
  • *
  • {@link org.nasdanika.html.model.bootstrap.impl.ActionGroupImpl#getItems Items}
  • *
* * @generated */ public class ActionGroupImpl extends DivImpl implements ActionGroup { /** * The default value of the '{@link #isFlush() Flush}' attribute. * * * @see #isFlush() * @generated * @ordered */ protected static final boolean FLUSH_EDEFAULT = false; /** * * * @generated */ protected ActionGroupImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return BootstrapPackage.Literals.ACTION_GROUP; } /** * * * @generated */ @Override public boolean isFlush() { return (Boolean)eDynamicGet(BootstrapPackage.ACTION_GROUP__FLUSH, BootstrapPackage.Literals.ACTION_GROUP__FLUSH, true, true); } /** * * * @generated */ @Override public void setFlush(boolean newFlush) { eDynamicSet(BootstrapPackage.ACTION_GROUP__FLUSH, BootstrapPackage.Literals.ACTION_GROUP__FLUSH, newFlush); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public EList getItems() { return (EList)eDynamicGet(BootstrapPackage.ACTION_GROUP__ITEMS, BootstrapPackage.Literals.ACTION_GROUP__ITEMS, true, true); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case BootstrapPackage.ACTION_GROUP__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 BootstrapPackage.ACTION_GROUP__FLUSH: return isFlush(); case BootstrapPackage.ACTION_GROUP__ITEMS: return getItems(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case BootstrapPackage.ACTION_GROUP__FLUSH: setFlush((Boolean)newValue); return; case BootstrapPackage.ACTION_GROUP__ITEMS: getItems().clear(); getItems().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case BootstrapPackage.ACTION_GROUP__FLUSH: setFlush(FLUSH_EDEFAULT); return; case BootstrapPackage.ACTION_GROUP__ITEMS: getItems().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case BootstrapPackage.ACTION_GROUP__FLUSH: return isFlush() != FLUSH_EDEFAULT; case BootstrapPackage.ACTION_GROUP__ITEMS: return !getItems().isEmpty(); } return super.eIsSet(featureID); } } //ActionGroupImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy