org.nasdanika.html.model.bootstrap.impl.CardImpl 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.BootstrapElement;
import org.nasdanika.html.model.bootstrap.BootstrapPackage;
import org.nasdanika.html.model.bootstrap.Card;
/**
*
* An implementation of the model object 'Card'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.html.model.bootstrap.impl.CardImpl#getHeader Header}
* - {@link org.nasdanika.html.model.bootstrap.impl.CardImpl#getBody Body}
* - {@link org.nasdanika.html.model.bootstrap.impl.CardImpl#getFooter Footer}
*
*
* @generated
*/
public class CardImpl extends DivImpl implements Card {
/**
*
*
* @generated
*/
protected CardImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BootstrapPackage.Literals.CARD;
}
/**
*
*
* @generated
*/
@Override
public BootstrapElement getHeader() {
return (BootstrapElement)eDynamicGet(BootstrapPackage.CARD__HEADER, BootstrapPackage.Literals.CARD__HEADER, true, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetHeader(BootstrapElement newHeader, NotificationChain msgs) {
msgs = eDynamicInverseAdd((InternalEObject)newHeader, BootstrapPackage.CARD__HEADER, msgs);
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setHeader(BootstrapElement newHeader) {
eDynamicSet(BootstrapPackage.CARD__HEADER, BootstrapPackage.Literals.CARD__HEADER, newHeader);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public BootstrapElement getBody() {
return (BootstrapElement)eDynamicGet(BootstrapPackage.CARD__BODY, BootstrapPackage.Literals.CARD__BODY, true, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetBody(BootstrapElement newBody, NotificationChain msgs) {
msgs = eDynamicInverseAdd((InternalEObject)newBody, BootstrapPackage.CARD__BODY, msgs);
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setBody(BootstrapElement newBody) {
eDynamicSet(BootstrapPackage.CARD__BODY, BootstrapPackage.Literals.CARD__BODY, newBody);
}
/**
*
*
* @generated
*/
@Override
public BootstrapElement getFooter() {
return (BootstrapElement)eDynamicGet(BootstrapPackage.CARD__FOOTER, BootstrapPackage.Literals.CARD__FOOTER, true, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetFooter(BootstrapElement newFooter, NotificationChain msgs) {
msgs = eDynamicInverseAdd((InternalEObject)newFooter, BootstrapPackage.CARD__FOOTER, msgs);
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setFooter(BootstrapElement newFooter) {
eDynamicSet(BootstrapPackage.CARD__FOOTER, BootstrapPackage.Literals.CARD__FOOTER, newFooter);
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case BootstrapPackage.CARD__HEADER:
return basicSetHeader(null, msgs);
case BootstrapPackage.CARD__BODY:
return basicSetBody(null, msgs);
case BootstrapPackage.CARD__FOOTER:
return basicSetFooter(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BootstrapPackage.CARD__HEADER:
return getHeader();
case BootstrapPackage.CARD__BODY:
return getBody();
case BootstrapPackage.CARD__FOOTER:
return getFooter();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BootstrapPackage.CARD__HEADER:
setHeader((BootstrapElement)newValue);
return;
case BootstrapPackage.CARD__BODY:
setBody((BootstrapElement)newValue);
return;
case BootstrapPackage.CARD__FOOTER:
setFooter((BootstrapElement)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BootstrapPackage.CARD__HEADER:
setHeader((BootstrapElement)null);
return;
case BootstrapPackage.CARD__BODY:
setBody((BootstrapElement)null);
return;
case BootstrapPackage.CARD__FOOTER:
setFooter((BootstrapElement)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BootstrapPackage.CARD__HEADER:
return getHeader() != null;
case BootstrapPackage.CARD__BODY:
return getBody() != null;
case BootstrapPackage.CARD__FOOTER:
return getFooter() != null;
}
return super.eIsSet(featureID);
}
} //CardImpl
© 2015 - 2024 Weber Informatics LLC | Privacy Policy