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/actionlib_datatypes/impl/GoalStatusImpl.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/actionlib_datatypes/impl/GoalStatusImpl.java389
1 files changed, 157 insertions, 232 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/actionlib_datatypes/impl/GoalStatusImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/actionlib_datatypes/impl/GoalStatusImpl.java
index cf95cf9424a..f716300c1b8 100644
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/actionlib_datatypes/impl/GoalStatusImpl.java
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/actionlib_datatypes/impl/GoalStatusImpl.java
@@ -1,20 +1,14 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Saadia Dhouib (CEA LIST) saadia.dhouib@cea.fr - Initial API and implementation
- *****************************************************************************/
+/**
+ */
package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_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.EObjectImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.Actionlib_datatypesPackage;
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.GoalStatus;
@@ -25,42 +19,28 @@ 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.actionlib_datatypes.impl.GoalStatusImpl#getPENDING <em>
- * PENDING</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getACTIVE <em>ACTIVE
- * </em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getPREEMPTED <em>
- * PREEMPTED</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getSUCCEEDED <em>
- * SUCCEEDED</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getABORTED <em>
- * ABORTED</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getREJECTED <em>
- * REJECTED</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getPREEMPTING <em>
- * PREEMPTING</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getRECALLING <em>
- * RECALLING</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getRECALLED <em>
- * RECALLED</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getLOST <em>LOST
- * </em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getText <em>Text
- * </em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getStatus <em>Status
- * </em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getPENDING <em>PENDING</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getACTIVE <em>ACTIVE</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getPREEMPTED <em>PREEMPTED</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getSUCCEEDED <em>SUCCEEDED</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getABORTED <em>ABORTED</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getREJECTED <em>REJECTED</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getPREEMPTING <em>PREEMPTING</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getRECALLING <em>RECALLING</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getRECALLED <em>RECALLED</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getLOST <em>LOST</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getText <em>Text</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.GoalStatusImpl#getStatus <em>Status</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
-public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
-
+public class GoalStatusImpl extends MinimalEObjectImpl.Container implements GoalStatus {
/**
* The default value of the '{@link #getPENDING() <em>PENDING</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getPENDING()
* @generated
* @ordered
@@ -71,7 +51,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The cached value of the '{@link #getPENDING() <em>PENDING</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getPENDING()
* @generated
* @ordered
@@ -82,7 +61,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The default value of the '{@link #getACTIVE() <em>ACTIVE</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getACTIVE()
* @generated
* @ordered
@@ -93,7 +71,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The cached value of the '{@link #getACTIVE() <em>ACTIVE</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getACTIVE()
* @generated
* @ordered
@@ -104,7 +81,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The default value of the '{@link #getPREEMPTED() <em>PREEMPTED</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getPREEMPTED()
* @generated
* @ordered
@@ -115,7 +91,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The cached value of the '{@link #getPREEMPTED() <em>PREEMPTED</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getPREEMPTED()
* @generated
* @ordered
@@ -126,7 +101,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The default value of the '{@link #getSUCCEEDED() <em>SUCCEEDED</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getSUCCEEDED()
* @generated
* @ordered
@@ -137,7 +111,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The cached value of the '{@link #getSUCCEEDED() <em>SUCCEEDED</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getSUCCEEDED()
* @generated
* @ordered
@@ -148,7 +121,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The default value of the '{@link #getABORTED() <em>ABORTED</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getABORTED()
* @generated
* @ordered
@@ -159,7 +131,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The cached value of the '{@link #getABORTED() <em>ABORTED</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getABORTED()
* @generated
* @ordered
@@ -170,7 +141,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The default value of the '{@link #getREJECTED() <em>REJECTED</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getREJECTED()
* @generated
* @ordered
@@ -181,7 +151,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The cached value of the '{@link #getREJECTED() <em>REJECTED</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getREJECTED()
* @generated
* @ordered
@@ -192,7 +161,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The default value of the '{@link #getPREEMPTING() <em>PREEMPTING</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getPREEMPTING()
* @generated
* @ordered
@@ -203,7 +171,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The cached value of the '{@link #getPREEMPTING() <em>PREEMPTING</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getPREEMPTING()
* @generated
* @ordered
@@ -214,7 +181,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The default value of the '{@link #getRECALLING() <em>RECALLING</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getRECALLING()
* @generated
* @ordered
@@ -225,7 +191,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The cached value of the '{@link #getRECALLING() <em>RECALLING</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getRECALLING()
* @generated
* @ordered
@@ -236,7 +201,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The default value of the '{@link #getRECALLED() <em>RECALLED</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getRECALLED()
* @generated
* @ordered
@@ -247,7 +211,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The cached value of the '{@link #getRECALLED() <em>RECALLED</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getRECALLED()
* @generated
* @ordered
@@ -258,7 +221,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The default value of the '{@link #getLOST() <em>LOST</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getLOST()
* @generated
* @ordered
@@ -269,7 +231,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The cached value of the '{@link #getLOST() <em>LOST</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getLOST()
* @generated
* @ordered
@@ -280,7 +241,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The default value of the '{@link #getText() <em>Text</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getText()
* @generated
* @ordered
@@ -291,7 +251,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The cached value of the '{@link #getText() <em>Text</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getText()
* @generated
* @ordered
@@ -302,7 +261,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The default value of the '{@link #getStatus() <em>Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getStatus()
* @generated
* @ordered
@@ -313,7 +271,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
* The cached value of the '{@link #getStatus() <em>Status</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getStatus()
* @generated
* @ordered
@@ -323,7 +280,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected GoalStatusImpl() {
@@ -333,7 +289,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -344,7 +299,6 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public char getPENDING() {
@@ -354,20 +308,18 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setPENDING(char newPENDING) {
char oldPENDING = pending;
pending = newPENDING;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Actionlib_datatypesPackage.GOAL_STATUS__PENDING, oldPENDING, pending));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public char getACTIVE() {
@@ -377,20 +329,18 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setACTIVE(char newACTIVE) {
char oldACTIVE = active;
active = newACTIVE;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Actionlib_datatypesPackage.GOAL_STATUS__ACTIVE, oldACTIVE, active));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public char getPREEMPTED() {
@@ -400,20 +350,18 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setPREEMPTED(char newPREEMPTED) {
char oldPREEMPTED = preempted;
preempted = newPREEMPTED;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTED, oldPREEMPTED, preempted));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public char getSUCCEEDED() {
@@ -423,20 +371,18 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setSUCCEEDED(char newSUCCEEDED) {
char oldSUCCEEDED = succeeded;
succeeded = newSUCCEEDED;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Actionlib_datatypesPackage.GOAL_STATUS__SUCCEEDED, oldSUCCEEDED, succeeded));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public char getABORTED() {
@@ -446,20 +392,18 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setABORTED(char newABORTED) {
char oldABORTED = aborted;
aborted = newABORTED;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Actionlib_datatypesPackage.GOAL_STATUS__ABORTED, oldABORTED, aborted));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public char getREJECTED() {
@@ -469,20 +413,18 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setREJECTED(char newREJECTED) {
char oldREJECTED = rejected;
rejected = newREJECTED;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Actionlib_datatypesPackage.GOAL_STATUS__REJECTED, oldREJECTED, rejected));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public char getPREEMPTING() {
@@ -492,20 +434,18 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setPREEMPTING(char newPREEMPTING) {
char oldPREEMPTING = preempting;
preempting = newPREEMPTING;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTING, oldPREEMPTING, preempting));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public char getRECALLING() {
@@ -515,20 +455,18 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setRECALLING(char newRECALLING) {
char oldRECALLING = recalling;
recalling = newRECALLING;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Actionlib_datatypesPackage.GOAL_STATUS__RECALLING, oldRECALLING, recalling));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public char getRECALLED() {
@@ -538,20 +476,18 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setRECALLED(char newRECALLED) {
char oldRECALLED = recalled;
recalled = newRECALLED;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Actionlib_datatypesPackage.GOAL_STATUS__RECALLED, oldRECALLED, recalled));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public char getLOST() {
@@ -561,20 +497,18 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setLOST(char newLOST) {
char oldLOST = lost;
lost = newLOST;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Actionlib_datatypesPackage.GOAL_STATUS__LOST, oldLOST, lost));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String getText() {
@@ -584,20 +518,18 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setText(String newText) {
String oldText = text;
text = newText;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Actionlib_datatypesPackage.GOAL_STATUS__TEXT, oldText, text));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public char getStatus() {
@@ -607,49 +539,47 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setStatus(char newStatus) {
char oldStatus = status;
status = newStatus;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Actionlib_datatypesPackage.GOAL_STATUS__STATUS, oldStatus, status));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case Actionlib_datatypesPackage.GOAL_STATUS__PENDING:
- return getPENDING();
- case Actionlib_datatypesPackage.GOAL_STATUS__ACTIVE:
- return getACTIVE();
- case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTED:
- return getPREEMPTED();
- case Actionlib_datatypesPackage.GOAL_STATUS__SUCCEEDED:
- return getSUCCEEDED();
- case Actionlib_datatypesPackage.GOAL_STATUS__ABORTED:
- return getABORTED();
- case Actionlib_datatypesPackage.GOAL_STATUS__REJECTED:
- return getREJECTED();
- case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTING:
- return getPREEMPTING();
- case Actionlib_datatypesPackage.GOAL_STATUS__RECALLING:
- return getRECALLING();
- case Actionlib_datatypesPackage.GOAL_STATUS__RECALLED:
- return getRECALLED();
- case Actionlib_datatypesPackage.GOAL_STATUS__LOST:
- return getLOST();
- case Actionlib_datatypesPackage.GOAL_STATUS__TEXT:
- return getText();
- case Actionlib_datatypesPackage.GOAL_STATUS__STATUS:
- return getStatus();
+ switch (featureID) {
+ case Actionlib_datatypesPackage.GOAL_STATUS__PENDING:
+ return getPENDING();
+ case Actionlib_datatypesPackage.GOAL_STATUS__ACTIVE:
+ return getACTIVE();
+ case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTED:
+ return getPREEMPTED();
+ case Actionlib_datatypesPackage.GOAL_STATUS__SUCCEEDED:
+ return getSUCCEEDED();
+ case Actionlib_datatypesPackage.GOAL_STATUS__ABORTED:
+ return getABORTED();
+ case Actionlib_datatypesPackage.GOAL_STATUS__REJECTED:
+ return getREJECTED();
+ case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTING:
+ return getPREEMPTING();
+ case Actionlib_datatypesPackage.GOAL_STATUS__RECALLING:
+ return getRECALLING();
+ case Actionlib_datatypesPackage.GOAL_STATUS__RECALLED:
+ return getRECALLED();
+ case Actionlib_datatypesPackage.GOAL_STATUS__LOST:
+ return getLOST();
+ case Actionlib_datatypesPackage.GOAL_STATUS__TEXT:
+ return getText();
+ case Actionlib_datatypesPackage.GOAL_STATUS__STATUS:
+ return getStatus();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -657,48 +587,47 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case Actionlib_datatypesPackage.GOAL_STATUS__PENDING:
- setPENDING((Character)newValue);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__ACTIVE:
- setACTIVE((Character)newValue);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTED:
- setPREEMPTED((Character)newValue);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__SUCCEEDED:
- setSUCCEEDED((Character)newValue);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__ABORTED:
- setABORTED((Character)newValue);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__REJECTED:
- setREJECTED((Character)newValue);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTING:
- setPREEMPTING((Character)newValue);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__RECALLING:
- setRECALLING((Character)newValue);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__RECALLED:
- setRECALLED((Character)newValue);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__LOST:
- setLOST((Character)newValue);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__TEXT:
- setText((String)newValue);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__STATUS:
- setStatus((Character)newValue);
- return;
+ switch (featureID) {
+ case Actionlib_datatypesPackage.GOAL_STATUS__PENDING:
+ setPENDING((Character)newValue);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__ACTIVE:
+ setACTIVE((Character)newValue);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTED:
+ setPREEMPTED((Character)newValue);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__SUCCEEDED:
+ setSUCCEEDED((Character)newValue);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__ABORTED:
+ setABORTED((Character)newValue);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__REJECTED:
+ setREJECTED((Character)newValue);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTING:
+ setPREEMPTING((Character)newValue);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__RECALLING:
+ setRECALLING((Character)newValue);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__RECALLED:
+ setRECALLED((Character)newValue);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__LOST:
+ setLOST((Character)newValue);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__TEXT:
+ setText((String)newValue);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__STATUS:
+ setStatus((Character)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -706,48 +635,47 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
- case Actionlib_datatypesPackage.GOAL_STATUS__PENDING:
- setPENDING(PENDING_EDEFAULT);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__ACTIVE:
- setACTIVE(ACTIVE_EDEFAULT);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTED:
- setPREEMPTED(PREEMPTED_EDEFAULT);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__SUCCEEDED:
- setSUCCEEDED(SUCCEEDED_EDEFAULT);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__ABORTED:
- setABORTED(ABORTED_EDEFAULT);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__REJECTED:
- setREJECTED(REJECTED_EDEFAULT);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTING:
- setPREEMPTING(PREEMPTING_EDEFAULT);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__RECALLING:
- setRECALLING(RECALLING_EDEFAULT);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__RECALLED:
- setRECALLED(RECALLED_EDEFAULT);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__LOST:
- setLOST(LOST_EDEFAULT);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__TEXT:
- setText(TEXT_EDEFAULT);
- return;
- case Actionlib_datatypesPackage.GOAL_STATUS__STATUS:
- setStatus(STATUS_EDEFAULT);
- return;
+ switch (featureID) {
+ case Actionlib_datatypesPackage.GOAL_STATUS__PENDING:
+ setPENDING(PENDING_EDEFAULT);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__ACTIVE:
+ setACTIVE(ACTIVE_EDEFAULT);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTED:
+ setPREEMPTED(PREEMPTED_EDEFAULT);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__SUCCEEDED:
+ setSUCCEEDED(SUCCEEDED_EDEFAULT);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__ABORTED:
+ setABORTED(ABORTED_EDEFAULT);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__REJECTED:
+ setREJECTED(REJECTED_EDEFAULT);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTING:
+ setPREEMPTING(PREEMPTING_EDEFAULT);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__RECALLING:
+ setRECALLING(RECALLING_EDEFAULT);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__RECALLED:
+ setRECALLED(RECALLED_EDEFAULT);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__LOST:
+ setLOST(LOST_EDEFAULT);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__TEXT:
+ setText(TEXT_EDEFAULT);
+ return;
+ case Actionlib_datatypesPackage.GOAL_STATUS__STATUS:
+ setStatus(STATUS_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -755,36 +683,35 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case Actionlib_datatypesPackage.GOAL_STATUS__PENDING:
- return pending != PENDING_EDEFAULT;
- case Actionlib_datatypesPackage.GOAL_STATUS__ACTIVE:
- return active != ACTIVE_EDEFAULT;
- case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTED:
- return preempted != PREEMPTED_EDEFAULT;
- case Actionlib_datatypesPackage.GOAL_STATUS__SUCCEEDED:
- return succeeded != SUCCEEDED_EDEFAULT;
- case Actionlib_datatypesPackage.GOAL_STATUS__ABORTED:
- return aborted != ABORTED_EDEFAULT;
- case Actionlib_datatypesPackage.GOAL_STATUS__REJECTED:
- return rejected != REJECTED_EDEFAULT;
- case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTING:
- return preempting != PREEMPTING_EDEFAULT;
- case Actionlib_datatypesPackage.GOAL_STATUS__RECALLING:
- return recalling != RECALLING_EDEFAULT;
- case Actionlib_datatypesPackage.GOAL_STATUS__RECALLED:
- return recalled != RECALLED_EDEFAULT;
- case Actionlib_datatypesPackage.GOAL_STATUS__LOST:
- return lost != LOST_EDEFAULT;
- case Actionlib_datatypesPackage.GOAL_STATUS__TEXT:
- return TEXT_EDEFAULT == null ? text != null : !TEXT_EDEFAULT.equals(text);
- case Actionlib_datatypesPackage.GOAL_STATUS__STATUS:
- return status != STATUS_EDEFAULT;
+ switch (featureID) {
+ case Actionlib_datatypesPackage.GOAL_STATUS__PENDING:
+ return pending != PENDING_EDEFAULT;
+ case Actionlib_datatypesPackage.GOAL_STATUS__ACTIVE:
+ return active != ACTIVE_EDEFAULT;
+ case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTED:
+ return preempted != PREEMPTED_EDEFAULT;
+ case Actionlib_datatypesPackage.GOAL_STATUS__SUCCEEDED:
+ return succeeded != SUCCEEDED_EDEFAULT;
+ case Actionlib_datatypesPackage.GOAL_STATUS__ABORTED:
+ return aborted != ABORTED_EDEFAULT;
+ case Actionlib_datatypesPackage.GOAL_STATUS__REJECTED:
+ return rejected != REJECTED_EDEFAULT;
+ case Actionlib_datatypesPackage.GOAL_STATUS__PREEMPTING:
+ return preempting != PREEMPTING_EDEFAULT;
+ case Actionlib_datatypesPackage.GOAL_STATUS__RECALLING:
+ return recalling != RECALLING_EDEFAULT;
+ case Actionlib_datatypesPackage.GOAL_STATUS__RECALLED:
+ return recalled != RECALLED_EDEFAULT;
+ case Actionlib_datatypesPackage.GOAL_STATUS__LOST:
+ return lost != LOST_EDEFAULT;
+ case Actionlib_datatypesPackage.GOAL_STATUS__TEXT:
+ return TEXT_EDEFAULT == null ? text != null : !TEXT_EDEFAULT.equals(text);
+ case Actionlib_datatypesPackage.GOAL_STATUS__STATUS:
+ return status != STATUS_EDEFAULT;
}
return super.eIsSet(featureID);
}
@@ -792,13 +719,11 @@ public class GoalStatusImpl extends EObjectImpl implements GoalStatus {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String toString() {
- if(eIsProxy())
- return super.toString();
+ if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (PENDING: ");

Back to the top