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