diff options
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/AssociationEdgeImpl.java')
-rw-r--r-- | extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/AssociationEdgeImpl.java | 146 |
1 files changed, 80 insertions, 66 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/AssociationEdgeImpl.java b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/AssociationEdgeImpl.java index a1542cd5481..761b0667aff 100644 --- a/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/AssociationEdgeImpl.java +++ b/extraplugins/diagram-definition/org.eclipse.papyrus.umldi/src-gen/org/eclipse/papyrus/umldi/impl/AssociationEdgeImpl.java @@ -40,19 +40,21 @@ import org.eclipse.uml2.common.util.DerivedUnionEObjectEList; * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.umldi.impl.AssociationEdgeImpl#getOwnedUmlDiagramElement <em>Owned Uml Diagram Element</em>}</li> - * <li>{@link org.eclipse.papyrus.umldi.impl.AssociationEdgeImpl#getEndMultiplicityLabel <em>End Multiplicity Label</em>}</li> - * <li>{@link org.eclipse.papyrus.umldi.impl.AssociationEdgeImpl#getEndConstraintLabel <em>End Constraint Label</em>}</li> - * <li>{@link org.eclipse.papyrus.umldi.impl.AssociationEdgeImpl#getEndRoleLabel <em>End Role Label</em>}</li> + * <li>{@link org.eclipse.papyrus.umldi.impl.AssociationEdgeImpl#getOwnedUmlDiagramElement <em>Owned Uml Diagram Element</em>}</li> + * <li>{@link org.eclipse.papyrus.umldi.impl.AssociationEdgeImpl#getEndMultiplicityLabel <em>End Multiplicity Label</em>}</li> + * <li>{@link org.eclipse.papyrus.umldi.impl.AssociationEdgeImpl#getEndConstraintLabel <em>End Constraint Label</em>}</li> + * <li>{@link org.eclipse.papyrus.umldi.impl.AssociationEdgeImpl#getEndRoleLabel <em>End Role Label</em>}</li> * </ul> * * @generated */ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationEdge { + /** * The cached value of the '{@link #getEndMultiplicityLabel() <em>End Multiplicity Label</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getEndMultiplicityLabel() * @generated * @ordered @@ -63,6 +65,7 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE * The cached value of the '{@link #getEndConstraintLabel() <em>End Constraint Label</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getEndConstraintLabel() * @generated * @ordered @@ -73,6 +76,7 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE * The cached value of the '{@link #getEndRoleLabel() <em>End Role Label</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getEndRoleLabel() * @generated * @ordered @@ -82,6 +86,7 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ protected AssociationEdgeImpl() { @@ -91,6 +96,7 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -101,6 +107,7 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -112,19 +119,21 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE * 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.ASSOCIATION_EDGE__MAIN_LABEL, UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL, UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL, UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL}; + protected static final int[] OWNED_UML_DIAGRAM_ELEMENT_ESUBSETS = new int[]{ UMLDIPackage.ASSOCIATION_EDGE__STEREOTYPE_LABEL, UMLDIPackage.ASSOCIATION_EDGE__MAIN_LABEL, UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL, UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL, UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL }; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public EList<MultiplicityLabel> getEndMultiplicityLabel() { - if (endMultiplicityLabel == null) { + if(endMultiplicityLabel == null) { endMultiplicityLabel = new EObjectContainmentWithInverseEList<MultiplicityLabel>(MultiplicityLabel.class, this, UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL, UMLDIPackage.MULTIPLICITY_LABEL__ASSOCIATION_EDGE); } return endMultiplicityLabel; @@ -133,10 +142,11 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public EList<ConstraintLabel> getEndConstraintLabel() { - if (endConstraintLabel == null) { + if(endConstraintLabel == null) { endConstraintLabel = new EObjectContainmentWithInverseEList<ConstraintLabel>(ConstraintLabel.class, this, UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL, UMLDIPackage.CONSTRAINT_LABEL__ASSOCIATION_EDGE); } return endConstraintLabel; @@ -145,10 +155,11 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public EList<RoleLabel> getEndRoleLabel() { - if (endRoleLabel == null) { + if(endRoleLabel == null) { endRoleLabel = new EObjectContainmentWithInverseEList<RoleLabel>(RoleLabel.class, this, UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL, UMLDIPackage.ROLE_LABEL__ASSOCIATION_EDGE); } return endRoleLabel; @@ -157,18 +168,19 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL: - return ((InternalEList<InternalEObject>)(InternalEList<?>)getEndMultiplicityLabel()).basicAdd(otherEnd, msgs); - case UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL: - return ((InternalEList<InternalEObject>)(InternalEList<?>)getEndConstraintLabel()).basicAdd(otherEnd, msgs); - case UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL: - return ((InternalEList<InternalEObject>)(InternalEList<?>)getEndRoleLabel()).basicAdd(otherEnd, msgs); + switch(featureID) { + case UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL: + return ((InternalEList<InternalEObject>)(InternalEList<?>)getEndMultiplicityLabel()).basicAdd(otherEnd, msgs); + case UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL: + return ((InternalEList<InternalEObject>)(InternalEList<?>)getEndConstraintLabel()).basicAdd(otherEnd, msgs); + case UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL: + return ((InternalEList<InternalEObject>)(InternalEList<?>)getEndRoleLabel()).basicAdd(otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); } @@ -176,17 +188,18 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL: - return ((InternalEList<?>)getEndMultiplicityLabel()).basicRemove(otherEnd, msgs); - case UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL: - return ((InternalEList<?>)getEndConstraintLabel()).basicRemove(otherEnd, msgs); - case UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL: - return ((InternalEList<?>)getEndRoleLabel()).basicRemove(otherEnd, msgs); + switch(featureID) { + case UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL: + return ((InternalEList<?>)getEndMultiplicityLabel()).basicRemove(otherEnd, msgs); + case UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL: + return ((InternalEList<?>)getEndConstraintLabel()).basicRemove(otherEnd, msgs); + case UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL: + return ((InternalEList<?>)getEndRoleLabel()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } @@ -194,17 +207,18 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL: - return getEndMultiplicityLabel(); - case UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL: - return getEndConstraintLabel(); - case UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL: - return getEndRoleLabel(); + switch(featureID) { + case UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL: + return getEndMultiplicityLabel(); + case UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL: + return getEndConstraintLabel(); + case UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL: + return getEndRoleLabel(); } return super.eGet(featureID, resolve, coreType); } @@ -212,24 +226,25 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { - switch (featureID) { - case UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL: - getEndMultiplicityLabel().clear(); - getEndMultiplicityLabel().addAll((Collection<? extends MultiplicityLabel>)newValue); - return; - case UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL: - getEndConstraintLabel().clear(); - getEndConstraintLabel().addAll((Collection<? extends ConstraintLabel>)newValue); - return; - case UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL: - getEndRoleLabel().clear(); - getEndRoleLabel().addAll((Collection<? extends RoleLabel>)newValue); - return; + switch(featureID) { + case UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL: + getEndMultiplicityLabel().clear(); + getEndMultiplicityLabel().addAll((Collection<? extends MultiplicityLabel>)newValue); + return; + case UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL: + getEndConstraintLabel().clear(); + getEndConstraintLabel().addAll((Collection<? extends ConstraintLabel>)newValue); + return; + case UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL: + getEndRoleLabel().clear(); + getEndRoleLabel().addAll((Collection<? extends RoleLabel>)newValue); + return; } super.eSet(featureID, newValue); } @@ -237,20 +252,21 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { - switch (featureID) { - case UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL: - getEndMultiplicityLabel().clear(); - return; - case UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL: - getEndConstraintLabel().clear(); - return; - case UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL: - getEndRoleLabel().clear(); - return; + switch(featureID) { + case UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL: + getEndMultiplicityLabel().clear(); + return; + case UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL: + getEndConstraintLabel().clear(); + return; + case UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL: + getEndRoleLabel().clear(); + return; } super.eUnset(featureID); } @@ -258,19 +274,20 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { - switch (featureID) { - case UMLDIPackage.ASSOCIATION_EDGE__OWNED_UML_DIAGRAM_ELEMENT: - return isSetOwnedUmlDiagramElement(); - case UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL: - return endMultiplicityLabel != null && !endMultiplicityLabel.isEmpty(); - case UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL: - return endConstraintLabel != null && !endConstraintLabel.isEmpty(); - case UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL: - return endRoleLabel != null && !endRoleLabel.isEmpty(); + switch(featureID) { + case UMLDIPackage.ASSOCIATION_EDGE__OWNED_UML_DIAGRAM_ELEMENT: + return isSetOwnedUmlDiagramElement(); + case UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL: + return endMultiplicityLabel != null && !endMultiplicityLabel.isEmpty(); + case UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL: + return endConstraintLabel != null && !endConstraintLabel.isEmpty(); + case UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL: + return endRoleLabel != null && !endRoleLabel.isEmpty(); } return super.eIsSet(featureID); } @@ -278,14 +295,11 @@ public class AssociationEdgeImpl extends ElementEdgeImpl implements AssociationE /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public boolean isSetOwnedUmlDiagramElement() { - return super.isSetOwnedUmlDiagramElement() - || eIsSet(UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL) - || eIsSet(UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL) - || eIsSet(UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL); + return super.isSetOwnedUmlDiagramElement() || eIsSet(UMLDIPackage.ASSOCIATION_EDGE__END_MULTIPLICITY_LABEL) || eIsSet(UMLDIPackage.ASSOCIATION_EDGE__END_CONSTRAINT_LABEL) || eIsSet(UMLDIPackage.ASSOCIATION_EDGE__END_ROLE_LABEL); } - } //AssociationEdgeImpl |