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

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

The 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.Slide;

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

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.html.model.bootstrap.impl.SlideImpl#getInterval Interval}
  • *
  • {@link org.nasdanika.html.model.bootstrap.impl.SlideImpl#getCaptions Captions}
  • *
* * @generated */ public class SlideImpl extends DivImpl implements Slide { /** * The default value of the '{@link #getInterval() Interval}' attribute. * * * @see #getInterval() * @generated * @ordered */ protected static final Integer INTERVAL_EDEFAULT = null; /** * * * @generated */ protected SlideImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return BootstrapPackage.Literals.SLIDE; } /** * * * @generated */ @Override public Integer getInterval() { return (Integer)eDynamicGet(BootstrapPackage.SLIDE__INTERVAL, BootstrapPackage.Literals.SLIDE__INTERVAL, true, true); } /** * * * @generated */ @Override public void setInterval(Integer newInterval) { eDynamicSet(BootstrapPackage.SLIDE__INTERVAL, BootstrapPackage.Literals.SLIDE__INTERVAL, newInterval); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public EList getCaptions() { return (EList)eDynamicGet(BootstrapPackage.SLIDE__CAPTIONS, BootstrapPackage.Literals.SLIDE__CAPTIONS, true, true); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case BootstrapPackage.SLIDE__CAPTIONS: return ((InternalEList)getCaptions()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case BootstrapPackage.SLIDE__INTERVAL: return getInterval(); case BootstrapPackage.SLIDE__CAPTIONS: return getCaptions(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case BootstrapPackage.SLIDE__INTERVAL: setInterval((Integer)newValue); return; case BootstrapPackage.SLIDE__CAPTIONS: getCaptions().clear(); getCaptions().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case BootstrapPackage.SLIDE__INTERVAL: setInterval(INTERVAL_EDEFAULT); return; case BootstrapPackage.SLIDE__CAPTIONS: getCaptions().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case BootstrapPackage.SLIDE__INTERVAL: return INTERVAL_EDEFAULT == null ? getInterval() != null : !INTERVAL_EDEFAULT.equals(getInterval()); case BootstrapPackage.SLIDE__CAPTIONS: return !getCaptions().isEmpty(); } return super.eIsSet(featureID); } } //SlideImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy