diff options
Diffstat (limited to 'extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/OnPropertyImpl.java')
-rw-r--r-- | extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/OnPropertyImpl.java | 88 |
1 files changed, 55 insertions, 33 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/OnPropertyImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/OnPropertyImpl.java index 63483c483ae..0ff4394da89 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/OnPropertyImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/OnPropertyImpl.java @@ -23,8 +23,8 @@ import org.eclipse.uml2.uml.Property; * <p> * The following features are implemented: * <ul> - * <li>{@link org.eclipse.papyrus.RobotML.impl.OnPropertyImpl#getProperty <em>Property</em>}</li> - * <li>{@link org.eclipse.papyrus.RobotML.impl.OnPropertyImpl#getBase_Parameter <em>Base Parameter</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotML.impl.OnPropertyImpl#getProperty <em>Property</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotML.impl.OnPropertyImpl#getBase_Parameter <em>Base Parameter</em>}</li> * </ul> * </p> * @@ -35,6 +35,7 @@ public class OnPropertyImpl extends MinimalEObjectImpl.Container implements OnPr * The cached value of the '{@link #getProperty() <em>Property</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getProperty() * @generated * @ordered @@ -45,6 +46,7 @@ public class OnPropertyImpl extends MinimalEObjectImpl.Container implements OnPr * The cached value of the '{@link #getBase_Parameter() <em>Base Parameter</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getBase_Parameter() * @generated * @ordered @@ -54,6 +56,7 @@ public class OnPropertyImpl extends MinimalEObjectImpl.Container implements OnPr /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ protected OnPropertyImpl() { @@ -63,6 +66,7 @@ public class OnPropertyImpl extends MinimalEObjectImpl.Container implements OnPr /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -73,15 +77,17 @@ public class OnPropertyImpl extends MinimalEObjectImpl.Container implements OnPr /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public Property getProperty() { if (property != null && property.eIsProxy()) { - InternalEObject oldProperty = (InternalEObject)property; - property = (Property)eResolveProxy(oldProperty); + InternalEObject oldProperty = (InternalEObject) property; + property = (Property) eResolveProxy(oldProperty); if (property != oldProperty) { - if (eNotificationRequired()) + if (eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.RESOLVE, RobotMLPackage.ON_PROPERTY__PROPERTY, oldProperty, property)); + } } } return property; @@ -90,6 +96,7 @@ public class OnPropertyImpl extends MinimalEObjectImpl.Container implements OnPr /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public Property basicGetProperty() { @@ -99,27 +106,31 @@ public class OnPropertyImpl extends MinimalEObjectImpl.Container implements OnPr /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public void setProperty(Property newProperty) { Property oldProperty = property; property = newProperty; - if (eNotificationRequired()) + if (eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.ON_PROPERTY__PROPERTY, oldProperty, property)); + } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public Parameter getBase_Parameter() { if (base_Parameter != null && base_Parameter.eIsProxy()) { - InternalEObject oldBase_Parameter = (InternalEObject)base_Parameter; - base_Parameter = (Parameter)eResolveProxy(oldBase_Parameter); + InternalEObject oldBase_Parameter = (InternalEObject) base_Parameter; + base_Parameter = (Parameter) eResolveProxy(oldBase_Parameter); if (base_Parameter != oldBase_Parameter) { - if (eNotificationRequired()) + if (eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.RESOLVE, RobotMLPackage.ON_PROPERTY__BASE_PARAMETER, oldBase_Parameter, base_Parameter)); + } } } return base_Parameter; @@ -128,6 +139,7 @@ public class OnPropertyImpl extends MinimalEObjectImpl.Container implements OnPr /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public Parameter basicGetBase_Parameter() { @@ -137,29 +149,36 @@ public class OnPropertyImpl extends MinimalEObjectImpl.Container implements OnPr /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public void setBase_Parameter(Parameter newBase_Parameter) { Parameter oldBase_Parameter = base_Parameter; base_Parameter = newBase_Parameter; - if (eNotificationRequired()) + if (eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.ON_PROPERTY__BASE_PARAMETER, oldBase_Parameter, base_Parameter)); + } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { - case RobotMLPackage.ON_PROPERTY__PROPERTY: - if (resolve) return getProperty(); - return basicGetProperty(); - case RobotMLPackage.ON_PROPERTY__BASE_PARAMETER: - if (resolve) return getBase_Parameter(); - return basicGetBase_Parameter(); + case RobotMLPackage.ON_PROPERTY__PROPERTY: + if (resolve) { + return getProperty(); + } + return basicGetProperty(); + case RobotMLPackage.ON_PROPERTY__BASE_PARAMETER: + if (resolve) { + return getBase_Parameter(); + } + return basicGetBase_Parameter(); } return super.eGet(featureID, resolve, coreType); } @@ -167,17 +186,18 @@ public class OnPropertyImpl extends MinimalEObjectImpl.Container implements OnPr /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { - case RobotMLPackage.ON_PROPERTY__PROPERTY: - setProperty((Property)newValue); - return; - case RobotMLPackage.ON_PROPERTY__BASE_PARAMETER: - setBase_Parameter((Parameter)newValue); - return; + case RobotMLPackage.ON_PROPERTY__PROPERTY: + setProperty((Property) newValue); + return; + case RobotMLPackage.ON_PROPERTY__BASE_PARAMETER: + setBase_Parameter((Parameter) newValue); + return; } super.eSet(featureID, newValue); } @@ -185,17 +205,18 @@ public class OnPropertyImpl extends MinimalEObjectImpl.Container implements OnPr /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { - case RobotMLPackage.ON_PROPERTY__PROPERTY: - setProperty((Property)null); - return; - case RobotMLPackage.ON_PROPERTY__BASE_PARAMETER: - setBase_Parameter((Parameter)null); - return; + case RobotMLPackage.ON_PROPERTY__PROPERTY: + setProperty((Property) null); + return; + case RobotMLPackage.ON_PROPERTY__BASE_PARAMETER: + setBase_Parameter((Parameter) null); + return; } super.eUnset(featureID); } @@ -203,17 +224,18 @@ public class OnPropertyImpl extends MinimalEObjectImpl.Container implements OnPr /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { - case RobotMLPackage.ON_PROPERTY__PROPERTY: - return property != null; - case RobotMLPackage.ON_PROPERTY__BASE_PARAMETER: - return base_Parameter != null; + case RobotMLPackage.ON_PROPERTY__PROPERTY: + return property != null; + case RobotMLPackage.ON_PROPERTY__BASE_PARAMETER: + return base_Parameter != null; } return super.eIsSet(featureID); } -} //OnPropertyImpl +} // OnPropertyImpl |