org.nasdanika.html.model.app.impl.PageImpl Maven / Gradle / Ivy
/**
*/
package org.nasdanika.html.model.app.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.app.AppPackage;
import org.nasdanika.html.model.app.ContentPanel;
import org.nasdanika.html.model.app.Footer;
import org.nasdanika.html.model.app.Header;
import org.nasdanika.html.model.app.NavigationBar;
import org.nasdanika.html.model.app.NavigationPanel;
import org.nasdanika.html.model.app.Page;
import org.nasdanika.html.model.bootstrap.Appearance;
import org.nasdanika.html.model.bootstrap.impl.BootstrapElementImpl;
/**
*
* An implementation of the model object 'Page'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.html.model.app.impl.PageImpl#isFluid Fluid}
* - {@link org.nasdanika.html.model.app.impl.PageImpl#getHeader Header}
* - {@link org.nasdanika.html.model.app.impl.PageImpl#getNavigationBar Navigation Bar}
* - {@link org.nasdanika.html.model.app.impl.PageImpl#getNavigationPanel Navigation Panel}
* - {@link org.nasdanika.html.model.app.impl.PageImpl#getContentPanel Content Panel}
* - {@link org.nasdanika.html.model.app.impl.PageImpl#getFooter Footer}
* - {@link org.nasdanika.html.model.app.impl.PageImpl#getContentRowAppearance Content Row Appearance}
*
*
* @generated
*/
public class PageImpl extends BootstrapElementImpl implements Page {
/**
* The default value of the '{@link #isFluid() Fluid}' attribute.
*
*
* @see #isFluid()
* @generated
* @ordered
*/
protected static final boolean FLUID_EDEFAULT = false;
/**
*
*
* @generated
*/
protected PageImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return AppPackage.Literals.PAGE;
}
/**
*
*
* @generated
*/
@Override
public boolean isFluid() {
return (Boolean)eDynamicGet(AppPackage.PAGE__FLUID, AppPackage.Literals.PAGE__FLUID, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setFluid(boolean newFluid) {
eDynamicSet(AppPackage.PAGE__FLUID, AppPackage.Literals.PAGE__FLUID, newFluid);
}
/**
*
*
* @generated
*/
@Override
public Header getHeader() {
return (Header)eDynamicGet(AppPackage.PAGE__HEADER, AppPackage.Literals.PAGE__HEADER, true, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) {
msgs = eDynamicInverseAdd((InternalEObject)newHeader, AppPackage.PAGE__HEADER, msgs);
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setHeader(Header newHeader) {
eDynamicSet(AppPackage.PAGE__HEADER, AppPackage.Literals.PAGE__HEADER, newHeader);
}
/**
*
*
* @generated
*/
@Override
public NavigationBar getNavigationBar() {
return (NavigationBar)eDynamicGet(AppPackage.PAGE__NAVIGATION_BAR, AppPackage.Literals.PAGE__NAVIGATION_BAR, true, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetNavigationBar(NavigationBar newNavigationBar, NotificationChain msgs) {
msgs = eDynamicInverseAdd((InternalEObject)newNavigationBar, AppPackage.PAGE__NAVIGATION_BAR, msgs);
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setNavigationBar(NavigationBar newNavigationBar) {
eDynamicSet(AppPackage.PAGE__NAVIGATION_BAR, AppPackage.Literals.PAGE__NAVIGATION_BAR, newNavigationBar);
}
/**
*
*
* @generated
*/
@Override
public NavigationPanel getNavigationPanel() {
return (NavigationPanel)eDynamicGet(AppPackage.PAGE__NAVIGATION_PANEL, AppPackage.Literals.PAGE__NAVIGATION_PANEL, true, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetNavigationPanel(NavigationPanel newNavigationPanel, NotificationChain msgs) {
msgs = eDynamicInverseAdd((InternalEObject)newNavigationPanel, AppPackage.PAGE__NAVIGATION_PANEL, msgs);
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setNavigationPanel(NavigationPanel newNavigationPanel) {
eDynamicSet(AppPackage.PAGE__NAVIGATION_PANEL, AppPackage.Literals.PAGE__NAVIGATION_PANEL, newNavigationPanel);
}
/**
*
*
* @generated
*/
@Override
public ContentPanel getContentPanel() {
return (ContentPanel)eDynamicGet(AppPackage.PAGE__CONTENT_PANEL, AppPackage.Literals.PAGE__CONTENT_PANEL, true, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetContentPanel(ContentPanel newContentPanel, NotificationChain msgs) {
msgs = eDynamicInverseAdd((InternalEObject)newContentPanel, AppPackage.PAGE__CONTENT_PANEL, msgs);
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setContentPanel(ContentPanel newContentPanel) {
eDynamicSet(AppPackage.PAGE__CONTENT_PANEL, AppPackage.Literals.PAGE__CONTENT_PANEL, newContentPanel);
}
/**
*
*
* @generated
*/
@Override
public Footer getFooter() {
return (Footer)eDynamicGet(AppPackage.PAGE__FOOTER, AppPackage.Literals.PAGE__FOOTER, true, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetFooter(Footer newFooter, NotificationChain msgs) {
msgs = eDynamicInverseAdd((InternalEObject)newFooter, AppPackage.PAGE__FOOTER, msgs);
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setFooter(Footer newFooter) {
eDynamicSet(AppPackage.PAGE__FOOTER, AppPackage.Literals.PAGE__FOOTER, newFooter);
}
/**
*
*
* @generated
*/
@Override
public Appearance getContentRowAppearance() {
return (Appearance)eDynamicGet(AppPackage.PAGE__CONTENT_ROW_APPEARANCE, AppPackage.Literals.PAGE__CONTENT_ROW_APPEARANCE, true, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetContentRowAppearance(Appearance newContentRowAppearance, NotificationChain msgs) {
msgs = eDynamicInverseAdd((InternalEObject)newContentRowAppearance, AppPackage.PAGE__CONTENT_ROW_APPEARANCE, msgs);
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setContentRowAppearance(Appearance newContentRowAppearance) {
eDynamicSet(AppPackage.PAGE__CONTENT_ROW_APPEARANCE, AppPackage.Literals.PAGE__CONTENT_ROW_APPEARANCE, newContentRowAppearance);
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case AppPackage.PAGE__HEADER:
return basicSetHeader(null, msgs);
case AppPackage.PAGE__NAVIGATION_BAR:
return basicSetNavigationBar(null, msgs);
case AppPackage.PAGE__NAVIGATION_PANEL:
return basicSetNavigationPanel(null, msgs);
case AppPackage.PAGE__CONTENT_PANEL:
return basicSetContentPanel(null, msgs);
case AppPackage.PAGE__FOOTER:
return basicSetFooter(null, msgs);
case AppPackage.PAGE__CONTENT_ROW_APPEARANCE:
return basicSetContentRowAppearance(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AppPackage.PAGE__FLUID:
return isFluid();
case AppPackage.PAGE__HEADER:
return getHeader();
case AppPackage.PAGE__NAVIGATION_BAR:
return getNavigationBar();
case AppPackage.PAGE__NAVIGATION_PANEL:
return getNavigationPanel();
case AppPackage.PAGE__CONTENT_PANEL:
return getContentPanel();
case AppPackage.PAGE__FOOTER:
return getFooter();
case AppPackage.PAGE__CONTENT_ROW_APPEARANCE:
return getContentRowAppearance();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case AppPackage.PAGE__FLUID:
setFluid((Boolean)newValue);
return;
case AppPackage.PAGE__HEADER:
setHeader((Header)newValue);
return;
case AppPackage.PAGE__NAVIGATION_BAR:
setNavigationBar((NavigationBar)newValue);
return;
case AppPackage.PAGE__NAVIGATION_PANEL:
setNavigationPanel((NavigationPanel)newValue);
return;
case AppPackage.PAGE__CONTENT_PANEL:
setContentPanel((ContentPanel)newValue);
return;
case AppPackage.PAGE__FOOTER:
setFooter((Footer)newValue);
return;
case AppPackage.PAGE__CONTENT_ROW_APPEARANCE:
setContentRowAppearance((Appearance)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case AppPackage.PAGE__FLUID:
setFluid(FLUID_EDEFAULT);
return;
case AppPackage.PAGE__HEADER:
setHeader((Header)null);
return;
case AppPackage.PAGE__NAVIGATION_BAR:
setNavigationBar((NavigationBar)null);
return;
case AppPackage.PAGE__NAVIGATION_PANEL:
setNavigationPanel((NavigationPanel)null);
return;
case AppPackage.PAGE__CONTENT_PANEL:
setContentPanel((ContentPanel)null);
return;
case AppPackage.PAGE__FOOTER:
setFooter((Footer)null);
return;
case AppPackage.PAGE__CONTENT_ROW_APPEARANCE:
setContentRowAppearance((Appearance)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case AppPackage.PAGE__FLUID:
return isFluid() != FLUID_EDEFAULT;
case AppPackage.PAGE__HEADER:
return getHeader() != null;
case AppPackage.PAGE__NAVIGATION_BAR:
return getNavigationBar() != null;
case AppPackage.PAGE__NAVIGATION_PANEL:
return getNavigationPanel() != null;
case AppPackage.PAGE__CONTENT_PANEL:
return getContentPanel() != null;
case AppPackage.PAGE__FOOTER:
return getFooter() != null;
case AppPackage.PAGE__CONTENT_ROW_APPEARANCE:
return getContentRowAppearance() != null;
}
return super.eIsSet(featureID);
}
} //PageImpl