org.nasdanika.html.model.bootstrap.impl.ColumnWidthImpl Maven / Gradle / Ivy
/**
*/
package org.nasdanika.html.model.bootstrap.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.nasdanika.html.model.bootstrap.BootstrapPackage;
import org.nasdanika.html.model.bootstrap.ColumnWidth;
/**
*
* An implementation of the model object 'Column Width'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.html.model.bootstrap.impl.ColumnWidthImpl#getBreakpoint Breakpoint}
* - {@link org.nasdanika.html.model.bootstrap.impl.ColumnWidthImpl#getWidth Width}
*
*
* @generated
*/
public class ColumnWidthImpl extends MinimalEObjectImpl.Container implements ColumnWidth {
/**
* The default value of the '{@link #getBreakpoint() Breakpoint}' attribute.
*
*
* @see #getBreakpoint()
* @generated
* @ordered
*/
protected static final String BREAKPOINT_EDEFAULT = null;
/**
* The default value of the '{@link #getWidth() Width}' attribute.
*
*
* @see #getWidth()
* @generated
* @ordered
*/
protected static final String WIDTH_EDEFAULT = null;
/**
*
*
* @generated
*/
protected ColumnWidthImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BootstrapPackage.Literals.COLUMN_WIDTH;
}
/**
*
*
* @generated
*/
@Override
protected int eStaticFeatureCount() {
return 0;
}
/**
*
*
* @generated
*/
@Override
public String getBreakpoint() {
return (String)eDynamicGet(BootstrapPackage.COLUMN_WIDTH__BREAKPOINT, BootstrapPackage.Literals.COLUMN_WIDTH__BREAKPOINT, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setBreakpoint(String newBreakpoint) {
eDynamicSet(BootstrapPackage.COLUMN_WIDTH__BREAKPOINT, BootstrapPackage.Literals.COLUMN_WIDTH__BREAKPOINT, newBreakpoint);
}
/**
*
*
* @generated
*/
@Override
public String getWidth() {
return (String)eDynamicGet(BootstrapPackage.COLUMN_WIDTH__WIDTH, BootstrapPackage.Literals.COLUMN_WIDTH__WIDTH, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setWidth(String newWidth) {
eDynamicSet(BootstrapPackage.COLUMN_WIDTH__WIDTH, BootstrapPackage.Literals.COLUMN_WIDTH__WIDTH, newWidth);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BootstrapPackage.COLUMN_WIDTH__BREAKPOINT:
return getBreakpoint();
case BootstrapPackage.COLUMN_WIDTH__WIDTH:
return getWidth();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BootstrapPackage.COLUMN_WIDTH__BREAKPOINT:
setBreakpoint((String)newValue);
return;
case BootstrapPackage.COLUMN_WIDTH__WIDTH:
setWidth((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BootstrapPackage.COLUMN_WIDTH__BREAKPOINT:
setBreakpoint(BREAKPOINT_EDEFAULT);
return;
case BootstrapPackage.COLUMN_WIDTH__WIDTH:
setWidth(WIDTH_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BootstrapPackage.COLUMN_WIDTH__BREAKPOINT:
return BREAKPOINT_EDEFAULT == null ? getBreakpoint() != null : !BREAKPOINT_EDEFAULT.equals(getBreakpoint());
case BootstrapPackage.COLUMN_WIDTH__WIDTH:
return WIDTH_EDEFAULT == null ? getWidth() != null : !WIDTH_EDEFAULT.equals(getWidth());
}
return super.eIsSet(featureID);
}
} //ColumnWidthImpl
© 2015 - 2024 Weber Informatics LLC | Privacy Policy