org.nasdanika.html.model.bootstrap.impl.PageImpl Maven / Gradle / Ivy
/**
*/
package org.nasdanika.html.model.bootstrap.impl;
import org.eclipse.emf.ecore.EClass;
import org.nasdanika.html.bootstrap.Theme;
import org.nasdanika.html.model.bootstrap.BootstrapPackage;
import org.nasdanika.html.model.bootstrap.Page;
/**
*
* An implementation of the model object 'Page'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.html.model.bootstrap.impl.PageImpl#isCdn Cdn}
* - {@link org.nasdanika.html.model.bootstrap.impl.PageImpl#getTheme Theme}
*
*
* @generated
*/
public class PageImpl extends org.nasdanika.html.model.html.impl.PageImpl implements Page {
/**
* The default value of the '{@link #isCdn() Cdn}' attribute.
*
*
* @see #isCdn()
* @generated
* @ordered
*/
protected static final boolean CDN_EDEFAULT = true;
/**
* The default value of the '{@link #getTheme() Theme}' attribute.
*
*
* @see #getTheme()
* @generated
* @ordered
*/
protected static final Theme THEME_EDEFAULT = null;
/**
*
*
* @generated
*/
protected PageImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BootstrapPackage.Literals.PAGE;
}
/**
*
*
* @generated
*/
@Override
public boolean isCdn() {
return (Boolean)eDynamicGet(BootstrapPackage.PAGE__CDN, BootstrapPackage.Literals.PAGE__CDN, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setCdn(boolean newCdn) {
eDynamicSet(BootstrapPackage.PAGE__CDN, BootstrapPackage.Literals.PAGE__CDN, newCdn);
}
/**
*
*
* @generated
*/
@Override
public Theme getTheme() {
return (Theme)eDynamicGet(BootstrapPackage.PAGE__THEME, BootstrapPackage.Literals.PAGE__THEME, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setTheme(Theme newTheme) {
eDynamicSet(BootstrapPackage.PAGE__THEME, BootstrapPackage.Literals.PAGE__THEME, newTheme);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BootstrapPackage.PAGE__CDN:
return isCdn();
case BootstrapPackage.PAGE__THEME:
return getTheme();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BootstrapPackage.PAGE__CDN:
setCdn((Boolean)newValue);
return;
case BootstrapPackage.PAGE__THEME:
setTheme((Theme)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BootstrapPackage.PAGE__CDN:
setCdn(CDN_EDEFAULT);
return;
case BootstrapPackage.PAGE__THEME:
setTheme(THEME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BootstrapPackage.PAGE__CDN:
return isCdn() != CDN_EDEFAULT;
case BootstrapPackage.PAGE__THEME:
return THEME_EDEFAULT == null ? getTheme() != null : !THEME_EDEFAULT.equals(getTheme());
}
return super.eIsSet(featureID);
}
} //PageImpl