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/geometry_datatypes/impl/PoseStampedImpl.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseStampedImpl.java115
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/PoseStampedImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseStampedImpl.java
index 6bbca3e4935..3225b2e52f5 100644
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseStampedImpl.java
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseStampedImpl.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.PoseStampedImpl#getHeader <em>Header</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseStampedImpl#getPose <em>Pose</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseStampedImpl#getHeader <em>Header</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseStampedImpl#getPose <em>Pose</em>}</li>
* </ul>
* </p>
*
@@ -36,6 +36,7 @@ public class PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
* 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 PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
* The cached value of the '{@link #getPose() <em>Pose</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getPose()
* @generated
* @ordered
@@ -55,6 +57,7 @@ public class PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected PoseStampedImpl() {
@@ -64,6 +67,7 @@ public class PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -74,6 +78,7 @@ public class PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Header getHeader() {
@@ -83,6 +88,7 @@ public class PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) {
@@ -90,7 +96,11 @@ public class PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
header = newHeader;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_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 PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
/**
* <!-- 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.POSE_STAMPED__HEADER, null, msgs);
- if (newHeader != null)
- msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_STAMPED__HEADER, null, msgs);
+ if (header != null) {
+ msgs = ((InternalEObject) header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_STAMPED__HEADER, null, msgs);
+ }
+ if (newHeader != null) {
+ msgs = ((InternalEObject) newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_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.POSE_STAMPED__HEADER, newHeader, newHeader));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public Pose getPose() {
@@ -126,6 +143,7 @@ public class PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetPose(Pose newPose, NotificationChain msgs) {
@@ -133,7 +151,11 @@ public class PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
pose = newPose;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_STAMPED__POSE, oldPose, newPose);
- 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 PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setPose(Pose newPose) {
if (newPose != pose) {
NotificationChain msgs = null;
- if (pose != null)
- msgs = ((InternalEObject)pose).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_STAMPED__POSE, null, msgs);
- if (newPose != null)
- msgs = ((InternalEObject)newPose).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_STAMPED__POSE, null, msgs);
+ if (pose != null) {
+ msgs = ((InternalEObject) pose).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_STAMPED__POSE, null, msgs);
+ }
+ if (newPose != null) {
+ msgs = ((InternalEObject) newPose).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_STAMPED__POSE, null, msgs);
+ }
msgs = basicSetPose(newPose, 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.POSE_STAMPED__POSE, newPose, newPose));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
- return basicSetHeader(null, msgs);
- case Geometry_datatypesPackage.POSE_STAMPED__POSE:
- return basicSetPose(null, msgs);
+ case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
+ return basicSetHeader(null, msgs);
+ case Geometry_datatypesPackage.POSE_STAMPED__POSE:
+ return basicSetPose(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -176,15 +205,16 @@ public class PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
- return getHeader();
- case Geometry_datatypesPackage.POSE_STAMPED__POSE:
- return getPose();
+ case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
+ return getHeader();
+ case Geometry_datatypesPackage.POSE_STAMPED__POSE:
+ return getPose();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -192,17 +222,18 @@ public class PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
- setHeader((Header)newValue);
- return;
- case Geometry_datatypesPackage.POSE_STAMPED__POSE:
- setPose((Pose)newValue);
- return;
+ case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
+ setHeader((Header) newValue);
+ return;
+ case Geometry_datatypesPackage.POSE_STAMPED__POSE:
+ setPose((Pose) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -210,17 +241,18 @@ public class PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
- setHeader((Header)null);
- return;
- case Geometry_datatypesPackage.POSE_STAMPED__POSE:
- setPose((Pose)null);
- return;
+ case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
+ setHeader((Header) null);
+ return;
+ case Geometry_datatypesPackage.POSE_STAMPED__POSE:
+ setPose((Pose) null);
+ return;
}
super.eUnset(featureID);
}
@@ -228,17 +260,18 @@ public class PoseStampedImpl extends MinimalEObjectImpl.Container implements Pos
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
- return header != null;
- case Geometry_datatypesPackage.POSE_STAMPED__POSE:
- return pose != null;
+ case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
+ return header != null;
+ case Geometry_datatypesPackage.POSE_STAMPED__POSE:
+ return pose != null;
}
return super.eIsSet(featureID);
}
-} //PoseStampedImpl
+} // PoseStampedImpl

Back to the top