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

org.nasdanika.html.model.bootstrap.impl.ContainerImpl 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.BootstrapPackage;
import org.nasdanika.html.model.bootstrap.Row;

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

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.html.model.bootstrap.impl.ContainerImpl#getRows Rows}
  • *
  • {@link org.nasdanika.html.model.bootstrap.impl.ContainerImpl#isFluid Fluid}
  • *
* * @generated */ public class ContainerImpl extends BootstrapElementImpl implements org.nasdanika.html.model.bootstrap.Container { /** * The default value of the '{@link #isFluid() Fluid}' attribute. * * * @see #isFluid() * @generated * @ordered */ protected static final boolean FLUID_EDEFAULT = false; /** * * * @generated */ protected ContainerImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return BootstrapPackage.Literals.CONTAINER; } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public EList getRows() { return (EList)eDynamicGet(BootstrapPackage.CONTAINER__ROWS, BootstrapPackage.Literals.CONTAINER__ROWS, true, true); } /** * * * @generated */ @Override public boolean isFluid() { return (Boolean)eDynamicGet(BootstrapPackage.CONTAINER__FLUID, BootstrapPackage.Literals.CONTAINER__FLUID, true, true); } /** * * * @generated */ @Override public void setFluid(boolean newFluid) { eDynamicSet(BootstrapPackage.CONTAINER__FLUID, BootstrapPackage.Literals.CONTAINER__FLUID, newFluid); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case BootstrapPackage.CONTAINER__ROWS: return ((InternalEList)getRows()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case BootstrapPackage.CONTAINER__ROWS: return getRows(); case BootstrapPackage.CONTAINER__FLUID: return isFluid(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case BootstrapPackage.CONTAINER__ROWS: getRows().clear(); getRows().addAll((Collection)newValue); return; case BootstrapPackage.CONTAINER__FLUID: setFluid((Boolean)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case BootstrapPackage.CONTAINER__ROWS: getRows().clear(); return; case BootstrapPackage.CONTAINER__FLUID: setFluid(FLUID_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case BootstrapPackage.CONTAINER__ROWS: return !getRows().isEmpty(); case BootstrapPackage.CONTAINER__FLUID: return isFluid() != FLUID_EDEFAULT; } return super.eIsSet(featureID); } } //ContainerImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy