diff options
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/InformationFlowEdgeImpl.java')
-rw-r--r-- | extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/InformationFlowEdgeImpl.java | 93 |
1 files changed, 55 insertions, 38 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/InformationFlowEdgeImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/InformationFlowEdgeImpl.java index fc0809eb381..c24b56cae1e 100644 --- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/InformationFlowEdgeImpl.java +++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/InformationFlowEdgeImpl.java @@ -36,17 +36,19 @@ import org.eclipse.uml2.common.util.DerivedUnionEObjectEList; * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.umldi.impl.InformationFlowEdgeImpl#getOwnedUmlDiagramElement <em>Owned Uml Diagram Element</em>}</li> - * <li>{@link org.eclipse.papyrus.umldi.impl.InformationFlowEdgeImpl#getConveyedLabel <em>Conveyed Label</em>}</li> + * <li>{@link org.eclipse.papyrus.umldi.impl.InformationFlowEdgeImpl#getOwnedUmlDiagramElement <em>Owned Uml Diagram Element</em>}</li> + * <li>{@link org.eclipse.papyrus.umldi.impl.InformationFlowEdgeImpl#getConveyedLabel <em>Conveyed Label</em>}</li> * </ul> * * @generated */ public class InformationFlowEdgeImpl extends ElementEdgeImpl implements InformationFlowEdge { + /** * The cached value of the '{@link #getConveyedLabel() <em>Conveyed Label</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getConveyedLabel() * @generated * @ordered @@ -56,6 +58,7 @@ public class InformationFlowEdgeImpl extends ElementEdgeImpl implements Informat /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ protected InformationFlowEdgeImpl() { @@ -65,6 +68,7 @@ public class InformationFlowEdgeImpl extends ElementEdgeImpl implements Informat /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -75,6 +79,7 @@ public class InformationFlowEdgeImpl extends ElementEdgeImpl implements Informat /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -86,15 +91,17 @@ public class InformationFlowEdgeImpl extends ElementEdgeImpl implements Informat * The array of subset feature identifiers for the '{@link #getOwnedUmlDiagramElement() <em>Owned Uml Diagram Element</em>}' reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getOwnedUmlDiagramElement() * @generated * @ordered */ - protected static final int[] OWNED_UML_DIAGRAM_ELEMENT_ESUBSETS = new int[] {UMLDIPackage.INFORMATION_FLOW_EDGE__MAIN_LABEL, UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL}; + protected static final int[] OWNED_UML_DIAGRAM_ELEMENT_ESUBSETS = new int[]{ UMLDIPackage.INFORMATION_FLOW_EDGE__STEREOTYPE_LABEL, UMLDIPackage.INFORMATION_FLOW_EDGE__MAIN_LABEL, UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL }; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public ConveyedLabel getConveyedLabel() { @@ -104,14 +111,18 @@ public class InformationFlowEdgeImpl extends ElementEdgeImpl implements Informat /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public NotificationChain basicSetConveyedLabel(ConveyedLabel newConveyedLabel, NotificationChain msgs) { ConveyedLabel oldConveyedLabel = conveyedLabel; conveyedLabel = newConveyedLabel; - if (eNotificationRequired()) { + if(eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL, oldConveyedLabel, newConveyedLabel); - if (msgs == null) msgs = notification; else msgs.add(notification); + if(msgs == null) + msgs = notification; + else + msgs.add(notification); } return msgs; } @@ -119,34 +130,36 @@ public class InformationFlowEdgeImpl extends ElementEdgeImpl implements Informat /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public void setConveyedLabel(ConveyedLabel newConveyedLabel) { - if (newConveyedLabel != conveyedLabel) { + if(newConveyedLabel != conveyedLabel) { NotificationChain msgs = null; - if (conveyedLabel != null) + if(conveyedLabel != null) msgs = ((InternalEObject)conveyedLabel).eInverseRemove(this, UMLDIPackage.CONVEYED_LABEL__INFORMATION_FLOW_EDGE, ConveyedLabel.class, msgs); - if (newConveyedLabel != null) + if(newConveyedLabel != null) msgs = ((InternalEObject)newConveyedLabel).eInverseAdd(this, UMLDIPackage.CONVEYED_LABEL__INFORMATION_FLOW_EDGE, ConveyedLabel.class, msgs); msgs = basicSetConveyedLabel(newConveyedLabel, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) + if(msgs != null) + msgs.dispatch(); + } else if(eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL, newConveyedLabel, newConveyedLabel)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL: - if (conveyedLabel != null) - msgs = ((InternalEObject)conveyedLabel).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL, null, msgs); - return basicSetConveyedLabel((ConveyedLabel)otherEnd, msgs); + switch(featureID) { + case UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL: + if(conveyedLabel != null) + msgs = ((InternalEObject)conveyedLabel).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL, null, msgs); + return basicSetConveyedLabel((ConveyedLabel)otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); } @@ -154,13 +167,14 @@ public class InformationFlowEdgeImpl extends ElementEdgeImpl implements Informat /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL: - return basicSetConveyedLabel(null, msgs); + switch(featureID) { + case UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL: + return basicSetConveyedLabel(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } @@ -168,13 +182,14 @@ public class InformationFlowEdgeImpl extends ElementEdgeImpl implements Informat /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL: - return getConveyedLabel(); + switch(featureID) { + case UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL: + return getConveyedLabel(); } return super.eGet(featureID, resolve, coreType); } @@ -182,14 +197,15 @@ public class InformationFlowEdgeImpl extends ElementEdgeImpl implements Informat /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public void eSet(int featureID, Object newValue) { - switch (featureID) { - case UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL: - setConveyedLabel((ConveyedLabel)newValue); - return; + switch(featureID) { + case UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL: + setConveyedLabel((ConveyedLabel)newValue); + return; } super.eSet(featureID, newValue); } @@ -197,14 +213,15 @@ public class InformationFlowEdgeImpl extends ElementEdgeImpl implements Informat /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { - switch (featureID) { - case UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL: - setConveyedLabel((ConveyedLabel)null); - return; + switch(featureID) { + case UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL: + setConveyedLabel((ConveyedLabel)null); + return; } super.eUnset(featureID); } @@ -212,15 +229,16 @@ public class InformationFlowEdgeImpl extends ElementEdgeImpl implements Informat /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { - switch (featureID) { - case UMLDIPackage.INFORMATION_FLOW_EDGE__OWNED_UML_DIAGRAM_ELEMENT: - return isSetOwnedUmlDiagramElement(); - case UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL: - return conveyedLabel != null; + switch(featureID) { + case UMLDIPackage.INFORMATION_FLOW_EDGE__OWNED_UML_DIAGRAM_ELEMENT: + return isSetOwnedUmlDiagramElement(); + case UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL: + return conveyedLabel != null; } return super.eIsSet(featureID); } @@ -228,12 +246,11 @@ public class InformationFlowEdgeImpl extends ElementEdgeImpl implements Informat /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public boolean isSetOwnedUmlDiagramElement() { - return super.isSetOwnedUmlDiagramElement() - || eIsSet(UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL); + return super.isSetOwnedUmlDiagramElement() || eIsSet(UMLDIPackage.INFORMATION_FLOW_EDGE__CONVEYED_LABEL); } - } //InformationFlowEdgeImpl |