All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nasdanika.html.model.bootstrap.impl.SpacingImpl Maven / Gradle / Ivy

There is a newer version: 2024.10.0
Show newest version
/**
 */
package org.nasdanika.html.model.bootstrap.impl;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;

import org.nasdanika.html.bootstrap.Breakpoint;
import org.nasdanika.html.bootstrap.Size;
import org.nasdanika.html.model.bootstrap.BootstrapPackage;
import org.nasdanika.html.model.bootstrap.Spacing;

/**
 * 
 * An implementation of the model object 'Spacing'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.html.model.bootstrap.impl.SpacingImpl#getSize Size}
  • *
  • {@link org.nasdanika.html.model.bootstrap.impl.SpacingImpl#getBreakpoint Breakpoint}
  • *
  • {@link org.nasdanika.html.model.bootstrap.impl.SpacingImpl#isTop Top}
  • *
  • {@link org.nasdanika.html.model.bootstrap.impl.SpacingImpl#isBottom Bottom}
  • *
  • {@link org.nasdanika.html.model.bootstrap.impl.SpacingImpl#isLeft Left}
  • *
  • {@link org.nasdanika.html.model.bootstrap.impl.SpacingImpl#isRight Right}
  • *
  • {@link org.nasdanika.html.model.bootstrap.impl.SpacingImpl#isX X}
  • *
  • {@link org.nasdanika.html.model.bootstrap.impl.SpacingImpl#isY Y}
  • *
* * @generated */ public class SpacingImpl extends MinimalEObjectImpl.Container implements Spacing { /** * The default value of the '{@link #getSize() Size}' attribute. * * * @see #getSize() * @generated * @ordered */ protected static final Size SIZE_EDEFAULT = null; /** * The default value of the '{@link #getBreakpoint() Breakpoint}' attribute. * * * @see #getBreakpoint() * @generated * @ordered */ protected static final Breakpoint BREAKPOINT_EDEFAULT = null; /** * The default value of the '{@link #isTop() Top}' attribute. * * * @see #isTop() * @generated * @ordered */ protected static final boolean TOP_EDEFAULT = false; /** * The default value of the '{@link #isBottom() Bottom}' attribute. * * * @see #isBottom() * @generated * @ordered */ protected static final boolean BOTTOM_EDEFAULT = false; /** * The default value of the '{@link #isLeft() Left}' attribute. * * * @see #isLeft() * @generated * @ordered */ protected static final boolean LEFT_EDEFAULT = false; /** * The default value of the '{@link #isRight() Right}' attribute. * * * @see #isRight() * @generated * @ordered */ protected static final boolean RIGHT_EDEFAULT = false; /** * The default value of the '{@link #isX() X}' attribute. * * * @see #isX() * @generated * @ordered */ protected static final boolean X_EDEFAULT = false; /** * The default value of the '{@link #isY() Y}' attribute. * * * @see #isY() * @generated * @ordered */ protected static final boolean Y_EDEFAULT = false; /** * * * @generated */ protected SpacingImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return BootstrapPackage.Literals.SPACING; } /** * * * @generated */ @Override protected int eStaticFeatureCount() { return 0; } /** * * * @generated */ @Override public Size getSize() { return (Size)eDynamicGet(BootstrapPackage.SPACING__SIZE, BootstrapPackage.Literals.SPACING__SIZE, true, true); } /** * * * @generated */ @Override public void setSize(Size newSize) { eDynamicSet(BootstrapPackage.SPACING__SIZE, BootstrapPackage.Literals.SPACING__SIZE, newSize); } /** * * * @generated */ @Override public Breakpoint getBreakpoint() { return (Breakpoint)eDynamicGet(BootstrapPackage.SPACING__BREAKPOINT, BootstrapPackage.Literals.SPACING__BREAKPOINT, true, true); } /** * * * @generated */ @Override public void setBreakpoint(Breakpoint newBreakpoint) { eDynamicSet(BootstrapPackage.SPACING__BREAKPOINT, BootstrapPackage.Literals.SPACING__BREAKPOINT, newBreakpoint); } /** * * * @generated */ @Override public boolean isTop() { return (Boolean)eDynamicGet(BootstrapPackage.SPACING__TOP, BootstrapPackage.Literals.SPACING__TOP, true, true); } /** * * * @generated */ @Override public void setTop(boolean newTop) { eDynamicSet(BootstrapPackage.SPACING__TOP, BootstrapPackage.Literals.SPACING__TOP, newTop); } /** * * * @generated */ @Override public boolean isBottom() { return (Boolean)eDynamicGet(BootstrapPackage.SPACING__BOTTOM, BootstrapPackage.Literals.SPACING__BOTTOM, true, true); } /** * * * @generated */ @Override public void setBottom(boolean newBottom) { eDynamicSet(BootstrapPackage.SPACING__BOTTOM, BootstrapPackage.Literals.SPACING__BOTTOM, newBottom); } /** * * * @generated */ @Override public boolean isLeft() { return (Boolean)eDynamicGet(BootstrapPackage.SPACING__LEFT, BootstrapPackage.Literals.SPACING__LEFT, true, true); } /** * * * @generated */ @Override public void setLeft(boolean newLeft) { eDynamicSet(BootstrapPackage.SPACING__LEFT, BootstrapPackage.Literals.SPACING__LEFT, newLeft); } /** * * * @generated */ @Override public boolean isRight() { return (Boolean)eDynamicGet(BootstrapPackage.SPACING__RIGHT, BootstrapPackage.Literals.SPACING__RIGHT, true, true); } /** * * * @generated */ @Override public void setRight(boolean newRight) { eDynamicSet(BootstrapPackage.SPACING__RIGHT, BootstrapPackage.Literals.SPACING__RIGHT, newRight); } /** * * * @generated */ @Override public boolean isX() { return (Boolean)eDynamicGet(BootstrapPackage.SPACING__X, BootstrapPackage.Literals.SPACING__X, true, true); } /** * * * @generated */ @Override public void setX(boolean newX) { eDynamicSet(BootstrapPackage.SPACING__X, BootstrapPackage.Literals.SPACING__X, newX); } /** * * * @generated */ @Override public boolean isY() { return (Boolean)eDynamicGet(BootstrapPackage.SPACING__Y, BootstrapPackage.Literals.SPACING__Y, true, true); } /** * * * @generated */ @Override public void setY(boolean newY) { eDynamicSet(BootstrapPackage.SPACING__Y, BootstrapPackage.Literals.SPACING__Y, newY); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case BootstrapPackage.SPACING__SIZE: return getSize(); case BootstrapPackage.SPACING__BREAKPOINT: return getBreakpoint(); case BootstrapPackage.SPACING__TOP: return isTop(); case BootstrapPackage.SPACING__BOTTOM: return isBottom(); case BootstrapPackage.SPACING__LEFT: return isLeft(); case BootstrapPackage.SPACING__RIGHT: return isRight(); case BootstrapPackage.SPACING__X: return isX(); case BootstrapPackage.SPACING__Y: return isY(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case BootstrapPackage.SPACING__SIZE: setSize((Size)newValue); return; case BootstrapPackage.SPACING__BREAKPOINT: setBreakpoint((Breakpoint)newValue); return; case BootstrapPackage.SPACING__TOP: setTop((Boolean)newValue); return; case BootstrapPackage.SPACING__BOTTOM: setBottom((Boolean)newValue); return; case BootstrapPackage.SPACING__LEFT: setLeft((Boolean)newValue); return; case BootstrapPackage.SPACING__RIGHT: setRight((Boolean)newValue); return; case BootstrapPackage.SPACING__X: setX((Boolean)newValue); return; case BootstrapPackage.SPACING__Y: setY((Boolean)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case BootstrapPackage.SPACING__SIZE: setSize(SIZE_EDEFAULT); return; case BootstrapPackage.SPACING__BREAKPOINT: setBreakpoint(BREAKPOINT_EDEFAULT); return; case BootstrapPackage.SPACING__TOP: setTop(TOP_EDEFAULT); return; case BootstrapPackage.SPACING__BOTTOM: setBottom(BOTTOM_EDEFAULT); return; case BootstrapPackage.SPACING__LEFT: setLeft(LEFT_EDEFAULT); return; case BootstrapPackage.SPACING__RIGHT: setRight(RIGHT_EDEFAULT); return; case BootstrapPackage.SPACING__X: setX(X_EDEFAULT); return; case BootstrapPackage.SPACING__Y: setY(Y_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case BootstrapPackage.SPACING__SIZE: return SIZE_EDEFAULT == null ? getSize() != null : !SIZE_EDEFAULT.equals(getSize()); case BootstrapPackage.SPACING__BREAKPOINT: return BREAKPOINT_EDEFAULT == null ? getBreakpoint() != null : !BREAKPOINT_EDEFAULT.equals(getBreakpoint()); case BootstrapPackage.SPACING__TOP: return isTop() != TOP_EDEFAULT; case BootstrapPackage.SPACING__BOTTOM: return isBottom() != BOTTOM_EDEFAULT; case BootstrapPackage.SPACING__LEFT: return isLeft() != LEFT_EDEFAULT; case BootstrapPackage.SPACING__RIGHT: return isRight() != RIGHT_EDEFAULT; case BootstrapPackage.SPACING__X: return isX() != X_EDEFAULT; case BootstrapPackage.SPACING__Y: return isY() != Y_EDEFAULT; } return super.eIsSet(featureID); } } //SpacingImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy