org.nasdanika.html.model.bootstrap.impl.TableRowContainerImpl Maven / Gradle / Ivy
/**
*/
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.InternalEObject;
import org.eclipse.emf.ecore.util.InternalEList;
import org.nasdanika.html.model.bootstrap.BootstrapPackage;
import org.nasdanika.html.model.bootstrap.TableRow;
import org.nasdanika.html.model.bootstrap.TableRowContainer;
/**
*
* An implementation of the model object 'Table Row Container'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.html.model.bootstrap.impl.TableRowContainerImpl#getRows Rows}
*
*
* @generated
*/
public abstract class TableRowContainerImpl extends BootstrapElementImpl implements TableRowContainer {
/**
*
*
* @generated
*/
protected TableRowContainerImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BootstrapPackage.Literals.TABLE_ROW_CONTAINER;
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public EList getRows() {
return (EList)eDynamicGet(BootstrapPackage.TABLE_ROW_CONTAINER__ROWS, BootstrapPackage.Literals.TABLE_ROW_CONTAINER__ROWS, true, true);
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case BootstrapPackage.TABLE_ROW_CONTAINER__ROWS:
return ((InternalEList>)getRows()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BootstrapPackage.TABLE_ROW_CONTAINER__ROWS:
return getRows();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BootstrapPackage.TABLE_ROW_CONTAINER__ROWS:
getRows().clear();
getRows().addAll((Collection extends TableRow>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BootstrapPackage.TABLE_ROW_CONTAINER__ROWS:
getRows().clear();
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BootstrapPackage.TABLE_ROW_CONTAINER__ROWS:
return !getRows().isEmpty();
}
return super.eIsSet(featureID);
}
} //TableRowContainerImpl
© 2015 - 2024 Weber Informatics LLC | Privacy Policy