Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/ColorRGBAImpl.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/ColorRGBAImpl.java650
1 files changed, 325 insertions, 325 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/ColorRGBAImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/ColorRGBAImpl.java
index b04c15f515c..3347c26de71 100644
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/ColorRGBAImpl.java
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/ColorRGBAImpl.java
@@ -1,325 +1,325 @@
-/**
- */
-package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.ColorRGBA;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Std_datatypesPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Color RGBA</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.ColorRGBAImpl#getR <em>R</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.ColorRGBAImpl#getG <em>G</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.ColorRGBAImpl#getB <em>B</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.ColorRGBAImpl#getA <em>A</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ColorRGBAImpl extends MinimalEObjectImpl.Container implements ColorRGBA {
- /**
- * The default value of the '{@link #getR() <em>R</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getR()
- * @generated
- * @ordered
- */
- protected static final float R_EDEFAULT = 0.0F;
-
- /**
- * The cached value of the '{@link #getR() <em>R</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getR()
- * @generated
- * @ordered
- */
- protected float r = R_EDEFAULT;
-
- /**
- * The default value of the '{@link #getG() <em>G</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getG()
- * @generated
- * @ordered
- */
- protected static final float G_EDEFAULT = 0.0F;
-
- /**
- * The cached value of the '{@link #getG() <em>G</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getG()
- * @generated
- * @ordered
- */
- protected float g = G_EDEFAULT;
-
- /**
- * The default value of the '{@link #getB() <em>B</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getB()
- * @generated
- * @ordered
- */
- protected static final float B_EDEFAULT = 0.0F;
-
- /**
- * The cached value of the '{@link #getB() <em>B</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getB()
- * @generated
- * @ordered
- */
- protected float b = B_EDEFAULT;
-
- /**
- * The default value of the '{@link #getA() <em>A</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getA()
- * @generated
- * @ordered
- */
- protected static final float A_EDEFAULT = 0.0F;
-
- /**
- * The cached value of the '{@link #getA() <em>A</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getA()
- * @generated
- * @ordered
- */
- protected float a = A_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ColorRGBAImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Std_datatypesPackage.Literals.COLOR_RGBA;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public float getR() {
- return r;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setR(float newR) {
- float oldR = r;
- r = newR;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Std_datatypesPackage.COLOR_RGBA__R, oldR, r));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public float getG() {
- return g;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setG(float newG) {
- float oldG = g;
- g = newG;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Std_datatypesPackage.COLOR_RGBA__G, oldG, g));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public float getB() {
- return b;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setB(float newB) {
- float oldB = b;
- b = newB;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Std_datatypesPackage.COLOR_RGBA__B, oldB, b));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public float getA() {
- return a;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setA(float newA) {
- float oldA = a;
- a = newA;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Std_datatypesPackage.COLOR_RGBA__A, oldA, a));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Std_datatypesPackage.COLOR_RGBA__R:
- return getR();
- case Std_datatypesPackage.COLOR_RGBA__G:
- return getG();
- case Std_datatypesPackage.COLOR_RGBA__B:
- return getB();
- case Std_datatypesPackage.COLOR_RGBA__A:
- return getA();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Std_datatypesPackage.COLOR_RGBA__R:
- setR((Float)newValue);
- return;
- case Std_datatypesPackage.COLOR_RGBA__G:
- setG((Float)newValue);
- return;
- case Std_datatypesPackage.COLOR_RGBA__B:
- setB((Float)newValue);
- return;
- case Std_datatypesPackage.COLOR_RGBA__A:
- setA((Float)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Std_datatypesPackage.COLOR_RGBA__R:
- setR(R_EDEFAULT);
- return;
- case Std_datatypesPackage.COLOR_RGBA__G:
- setG(G_EDEFAULT);
- return;
- case Std_datatypesPackage.COLOR_RGBA__B:
- setB(B_EDEFAULT);
- return;
- case Std_datatypesPackage.COLOR_RGBA__A:
- setA(A_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Std_datatypesPackage.COLOR_RGBA__R:
- return r != R_EDEFAULT;
- case Std_datatypesPackage.COLOR_RGBA__G:
- return g != G_EDEFAULT;
- case Std_datatypesPackage.COLOR_RGBA__B:
- return b != B_EDEFAULT;
- case Std_datatypesPackage.COLOR_RGBA__A:
- return a != A_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (r: ");
- result.append(r);
- result.append(", g: ");
- result.append(g);
- result.append(", b: ");
- result.append(b);
- result.append(", a: ");
- result.append(a);
- result.append(')');
- return result.toString();
- }
-
-} //ColorRGBAImpl
+/**
+ */
+package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.ColorRGBA;
+import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Std_datatypesPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Color RGBA</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.ColorRGBAImpl#getR <em>R</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.ColorRGBAImpl#getG <em>G</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.ColorRGBAImpl#getB <em>B</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.ColorRGBAImpl#getA <em>A</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ColorRGBAImpl extends MinimalEObjectImpl.Container implements ColorRGBA {
+ /**
+ * The default value of the '{@link #getR() <em>R</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getR()
+ * @generated
+ * @ordered
+ */
+ protected static final float R_EDEFAULT = 0.0F;
+
+ /**
+ * The cached value of the '{@link #getR() <em>R</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getR()
+ * @generated
+ * @ordered
+ */
+ protected float r = R_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getG() <em>G</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getG()
+ * @generated
+ * @ordered
+ */
+ protected static final float G_EDEFAULT = 0.0F;
+
+ /**
+ * The cached value of the '{@link #getG() <em>G</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getG()
+ * @generated
+ * @ordered
+ */
+ protected float g = G_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getB() <em>B</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getB()
+ * @generated
+ * @ordered
+ */
+ protected static final float B_EDEFAULT = 0.0F;
+
+ /**
+ * The cached value of the '{@link #getB() <em>B</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getB()
+ * @generated
+ * @ordered
+ */
+ protected float b = B_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getA() <em>A</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getA()
+ * @generated
+ * @ordered
+ */
+ protected static final float A_EDEFAULT = 0.0F;
+
+ /**
+ * The cached value of the '{@link #getA() <em>A</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getA()
+ * @generated
+ * @ordered
+ */
+ protected float a = A_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ColorRGBAImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return Std_datatypesPackage.Literals.COLOR_RGBA;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public float getR() {
+ return r;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setR(float newR) {
+ float oldR = r;
+ r = newR;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Std_datatypesPackage.COLOR_RGBA__R, oldR, r));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public float getG() {
+ return g;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setG(float newG) {
+ float oldG = g;
+ g = newG;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Std_datatypesPackage.COLOR_RGBA__G, oldG, g));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public float getB() {
+ return b;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setB(float newB) {
+ float oldB = b;
+ b = newB;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Std_datatypesPackage.COLOR_RGBA__B, oldB, b));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public float getA() {
+ return a;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setA(float newA) {
+ float oldA = a;
+ a = newA;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Std_datatypesPackage.COLOR_RGBA__A, oldA, a));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case Std_datatypesPackage.COLOR_RGBA__R:
+ return getR();
+ case Std_datatypesPackage.COLOR_RGBA__G:
+ return getG();
+ case Std_datatypesPackage.COLOR_RGBA__B:
+ return getB();
+ case Std_datatypesPackage.COLOR_RGBA__A:
+ return getA();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case Std_datatypesPackage.COLOR_RGBA__R:
+ setR((Float)newValue);
+ return;
+ case Std_datatypesPackage.COLOR_RGBA__G:
+ setG((Float)newValue);
+ return;
+ case Std_datatypesPackage.COLOR_RGBA__B:
+ setB((Float)newValue);
+ return;
+ case Std_datatypesPackage.COLOR_RGBA__A:
+ setA((Float)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case Std_datatypesPackage.COLOR_RGBA__R:
+ setR(R_EDEFAULT);
+ return;
+ case Std_datatypesPackage.COLOR_RGBA__G:
+ setG(G_EDEFAULT);
+ return;
+ case Std_datatypesPackage.COLOR_RGBA__B:
+ setB(B_EDEFAULT);
+ return;
+ case Std_datatypesPackage.COLOR_RGBA__A:
+ setA(A_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case Std_datatypesPackage.COLOR_RGBA__R:
+ return r != R_EDEFAULT;
+ case Std_datatypesPackage.COLOR_RGBA__G:
+ return g != G_EDEFAULT;
+ case Std_datatypesPackage.COLOR_RGBA__B:
+ return b != B_EDEFAULT;
+ case Std_datatypesPackage.COLOR_RGBA__A:
+ return a != A_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (r: ");
+ result.append(r);
+ result.append(", g: ");
+ result.append(g);
+ result.append(", b: ");
+ result.append(b);
+ result.append(", a: ");
+ result.append(a);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ColorRGBAImpl

Back to the top