| /* |
| * Copyright (c) 2005, 2006 IBM Corporation 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 |
| * |
| * $Id: LinkEndDestructionData.java,v 1.4 2006/04/05 13:49:57 khussey Exp $ |
| */ |
| 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 --> |
| * This class is required when using DestroyLinkAction, to specify links to destroy for nonunique ordered ends. A link cannot be passed as a runtime value to or from an action. |
| * |
| * Qualifier values are used in CompleteActions to identify links to destroy. |
| * <!-- end-model-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.LinkEndDestructionData#isDestroyDuplicates <em>Is Destroy Duplicates</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.LinkEndDestructionData#getDestroyAt <em>Destroy At</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. |
| * <!-- 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.uml.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. |
| * <!-- 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 |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateDestroyLinkAction(DiagnosticChain diagnostics, Map 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 |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateUnlimitedNaturalAndMultiplicity( |
| DiagnosticChain diagnostics, Map context); |
| |
| } // LinkEndDestructionData |