org.nasdanika.html.model.bootstrap.impl.BootstrapElementImpl Maven / Gradle / Ivy
/**
*/
package org.nasdanika.html.model.bootstrap.impl;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.nasdanika.html.model.bootstrap.Appearance;
import org.nasdanika.html.model.bootstrap.BootstrapElement;
import org.nasdanika.html.model.bootstrap.BootstrapPackage;
import org.nasdanika.html.model.html.impl.HtmlElementImpl;
/**
*
* An implementation of the model object 'Element'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.html.model.bootstrap.impl.BootstrapElementImpl#getAppearance Appearance}
*
*
* @generated
*/
public class BootstrapElementImpl extends HtmlElementImpl implements BootstrapElement {
/**
*
*
* @generated
*/
protected BootstrapElementImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BootstrapPackage.Literals.BOOTSTRAP_ELEMENT;
}
/**
*
*
* @generated
*/
@Override
public Appearance getAppearance() {
return (Appearance)eDynamicGet(BootstrapPackage.BOOTSTRAP_ELEMENT__APPEARANCE, BootstrapPackage.Literals.BOOTSTRAP_ELEMENT__APPEARANCE, true, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetAppearance(Appearance newAppearance, NotificationChain msgs) {
msgs = eDynamicInverseAdd((InternalEObject)newAppearance, BootstrapPackage.BOOTSTRAP_ELEMENT__APPEARANCE, msgs);
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setAppearance(Appearance newAppearance) {
eDynamicSet(BootstrapPackage.BOOTSTRAP_ELEMENT__APPEARANCE, BootstrapPackage.Literals.BOOTSTRAP_ELEMENT__APPEARANCE, newAppearance);
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case BootstrapPackage.BOOTSTRAP_ELEMENT__APPEARANCE:
return basicSetAppearance(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BootstrapPackage.BOOTSTRAP_ELEMENT__APPEARANCE:
return getAppearance();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BootstrapPackage.BOOTSTRAP_ELEMENT__APPEARANCE:
setAppearance((Appearance)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BootstrapPackage.BOOTSTRAP_ELEMENT__APPEARANCE:
setAppearance((Appearance)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BootstrapPackage.BOOTSTRAP_ELEMENT__APPEARANCE:
return getAppearance() != null;
}
return super.eIsSet(featureID);
}
} //BootstrapElementImpl