| /* |
| * Copyright (c) 2005, 2013 IBM Corporation, CEA, and others. |
| * 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: |
| * IBM - initial API and implementation |
| * Kenn Hussey (CEA) - 327039 |
| * Christian W. Damus (CEA) - 251963 |
| * |
| */ |
| package org.eclipse.uml2.uml; |
| |
| import java.util.Map; |
| |
| import org.eclipse.emf.common.util.DiagnosticChain; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the model object '<em><b>Link End Destruction Data</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * <!-- begin-model-doc --> |
| * A link end destruction data is not an action. It is an element that identifies links. It identifies one end of a link to be destroyed by destroy link action. |
| * <p>From package UML (URI {@literal http://www.omg.org/spec/UML/20110701}).</p> |
| * <!-- end-model-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.LinkEndDestructionData#getDestroyAt <em>Destroy At</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.LinkEndDestructionData#isDestroyDuplicates <em>Is Destroy Duplicates</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @see org.eclipse.uml2.uml.UMLPackage#getLinkEndDestructionData() |
| * @model |
| * @generated |
| */ |
| public interface LinkEndDestructionData |
| extends LinkEndData { |
| |
| /** |
| * Returns the value of the '<em><b>Is Destroy Duplicates</b></em>' attribute. |
| * The default value is <code>"false"</code>. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Specifies whether to destroy duplicates of the value in nonunique association ends. |
| * <p>From package UML (URI {@literal http://www.omg.org/spec/UML/20110701}).</p> |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Is Destroy Duplicates</em>' attribute. |
| * @see #setIsDestroyDuplicates(boolean) |
| * @see org.eclipse.uml2.uml.UMLPackage#getLinkEndDestructionData_IsDestroyDuplicates() |
| * @model default="false" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false" |
| * @generated |
| */ |
| boolean isDestroyDuplicates(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.uml2.uml.LinkEndDestructionData#isDestroyDuplicates <em>Is Destroy Duplicates</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Is Destroy Duplicates</em>' attribute. |
| * @see #isDestroyDuplicates() |
| * @generated |
| */ |
| void setIsDestroyDuplicates(boolean value); |
| |
| /** |
| * Returns the value of the '<em><b>Destroy At</b></em>' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Specifies the position of an existing link to be destroyed in ordered nonunique association ends. The type of the pin is UnlimitedNatural, but the value cannot be zero or unlimited. |
| * <p>From package UML (URI {@literal http://www.omg.org/spec/UML/20110701}).</p> |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Destroy At</em>' reference. |
| * @see #setDestroyAt(InputPin) |
| * @see org.eclipse.uml2.uml.UMLPackage#getLinkEndDestructionData_DestroyAt() |
| * @model ordered="false" |
| * @generated |
| */ |
| InputPin getDestroyAt(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.uml2.uml.LinkEndDestructionData#getDestroyAt <em>Destroy At</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Destroy At</em>' reference. |
| * @see #getDestroyAt() |
| * @generated |
| */ |
| void setDestroyAt(InputPin value); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * LinkEndDestructionData can only be end data for DestroyLinkAction or one of its specializations. |
| * true |
| * @param diagnostics The chain of diagnostics to which problems are to be appended. |
| * @param context The cache of context-specific information. |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateDestroyLinkAction(DiagnosticChain diagnostics, |
| Map<Object, Object> context); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * LinkEndDestructionData for ordered nonunique association ends must have a single destroyAt input pin if isDestroyDuplicates is false. It must be of type UnlimitedNatural and have a multiplicity of 1..1. Otherwise, the action has no input pin for the removal position. |
| * true |
| * @param diagnostics The chain of diagnostics to which problems are to be appended. |
| * @param context The cache of context-specific information. |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateUnlimitedNaturalAndMultiplicity( |
| DiagnosticChain diagnostics, Map<Object, Object> context); |
| |
| } // LinkEndDestructionData |