diff options
Diffstat (limited to 'extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/QuaternionStampedImpl.java')
-rw-r--r-- | extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/QuaternionStampedImpl.java | 115 |
1 files changed, 74 insertions, 41 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/QuaternionStampedImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/QuaternionStampedImpl.java index 75327bb464b..1c51d7548bb 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/QuaternionStampedImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/QuaternionStampedImpl.java @@ -24,8 +24,8 @@ import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTyp * <p> * The following features are implemented: * <ul> - * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionStampedImpl#getHeader <em>Header</em>}</li> - * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionStampedImpl#getQuaternion <em>Quaternion</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionStampedImpl#getHeader <em>Header</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionStampedImpl#getQuaternion <em>Quaternion</em>}</li> * </ul> * </p> * @@ -36,6 +36,7 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getHeader() * @generated * @ordered @@ -46,6 +47,7 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen * The cached value of the '{@link #getQuaternion() <em>Quaternion</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getQuaternion() * @generated * @ordered @@ -55,6 +57,7 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ protected QuaternionStampedImpl() { @@ -64,6 +67,7 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -74,6 +78,7 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public Header getHeader() { @@ -83,6 +88,7 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) { @@ -90,7 +96,11 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen header = newHeader; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER, oldHeader, newHeader); - if (msgs == null) msgs = notification; else msgs.add(notification); + if (msgs == null) { + msgs = notification; + } else { + msgs.add(notification); + } } return msgs; } @@ -98,25 +108,32 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public void setHeader(Header newHeader) { if (newHeader != header) { NotificationChain msgs = null; - if (header != null) - msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER, null, msgs); - if (newHeader != null) - msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER, null, msgs); + if (header != null) { + msgs = ((InternalEObject) header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER, null, msgs); + } + if (newHeader != null) { + msgs = ((InternalEObject) newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER, null, msgs); + } msgs = basicSetHeader(newHeader, msgs); - if (msgs != null) msgs.dispatch(); + if (msgs != null) { + msgs.dispatch(); + } } - else if (eNotificationRequired()) + else if (eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER, newHeader, newHeader)); + } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public Quaternion getQuaternion() { @@ -126,6 +143,7 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public NotificationChain basicSetQuaternion(Quaternion newQuaternion, NotificationChain msgs) { @@ -133,7 +151,11 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen quaternion = newQuaternion; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION, oldQuaternion, newQuaternion); - if (msgs == null) msgs = notification; else msgs.add(notification); + if (msgs == null) { + msgs = notification; + } else { + msgs.add(notification); + } } return msgs; } @@ -141,34 +163,41 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public void setQuaternion(Quaternion newQuaternion) { if (newQuaternion != quaternion) { NotificationChain msgs = null; - if (quaternion != null) - msgs = ((InternalEObject)quaternion).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION, null, msgs); - if (newQuaternion != null) - msgs = ((InternalEObject)newQuaternion).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION, null, msgs); + if (quaternion != null) { + msgs = ((InternalEObject) quaternion).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION, null, msgs); + } + if (newQuaternion != null) { + msgs = ((InternalEObject) newQuaternion).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION, null, msgs); + } msgs = basicSetQuaternion(newQuaternion, msgs); - if (msgs != null) msgs.dispatch(); + if (msgs != null) { + msgs.dispatch(); + } } - else if (eNotificationRequired()) + else if (eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION, newQuaternion, newQuaternion)); + } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { - case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: - return basicSetHeader(null, msgs); - case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: - return basicSetQuaternion(null, msgs); + case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: + return basicSetHeader(null, msgs); + case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: + return basicSetQuaternion(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } @@ -176,15 +205,16 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { - case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: - return getHeader(); - case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: - return getQuaternion(); + case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: + return getHeader(); + case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: + return getQuaternion(); } return super.eGet(featureID, resolve, coreType); } @@ -192,17 +222,18 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { - case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: - setHeader((Header)newValue); - return; - case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: - setQuaternion((Quaternion)newValue); - return; + case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: + setHeader((Header) newValue); + return; + case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: + setQuaternion((Quaternion) newValue); + return; } super.eSet(featureID, newValue); } @@ -210,17 +241,18 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { - case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: - setHeader((Header)null); - return; - case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: - setQuaternion((Quaternion)null); - return; + case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: + setHeader((Header) null); + return; + case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: + setQuaternion((Quaternion) null); + return; } super.eUnset(featureID); } @@ -228,17 +260,18 @@ public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implemen /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { - case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: - return header != null; - case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: - return quaternion != null; + case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: + return header != null; + case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: + return quaternion != null; } return super.eIsSet(featureID); } -} //QuaternionStampedImpl +} // QuaternionStampedImpl |