blob: fd7e3ea6588b497591bd1c4c6314cb0a6991c25c [file] [log] [blame]
/*
* Copyright (c) 2005 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: DestroyObjectAction.java,v 1.2 2005/12/12 16:58:34 khussey Exp $
*/
package org.eclipse.uml2.uml;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Destroy Object Action</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* This action destroys the object on its input pin at runtime. The object may be a link object, in which case the semantics of DestroyLinkAction also applies.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.DestroyObjectAction#isDestroyLinks <em>Is Destroy Links</em>}</li>
* <li>{@link org.eclipse.uml2.uml.DestroyObjectAction#isDestroyOwnedObjects <em>Is Destroy Owned Objects</em>}</li>
* <li>{@link org.eclipse.uml2.uml.DestroyObjectAction#getTarget <em>Target</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.uml.UMLPackage#getDestroyObjectAction()
* @model
* @generated
*/
public interface DestroyObjectAction
extends Action {
/**
* Returns the value of the '<em><b>Is Destroy Links</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Specifies whether links in which the object participates are destroyed along with the object.
* <!-- end-model-doc -->
* @return the value of the '<em>Is Destroy Links</em>' attribute.
* @see #setIsDestroyLinks(boolean)
* @see org.eclipse.uml2.uml.UMLPackage#getDestroyObjectAction_IsDestroyLinks()
* @model dataType="org.eclipse.uml2.uml.Boolean" required="true" ordered="false"
* @generated
*/
boolean isDestroyLinks();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.DestroyObjectAction#isDestroyLinks <em>Is Destroy Links</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Is Destroy Links</em>' attribute.
* @see #isDestroyLinks()
* @generated
*/
void setIsDestroyLinks(boolean value);
/**
* Returns the value of the '<em><b>Is Destroy Owned Objects</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Specifies whether objects owned by the object are destroyed along with the object.
* <!-- end-model-doc -->
* @return the value of the '<em>Is Destroy Owned Objects</em>' attribute.
* @see #setIsDestroyOwnedObjects(boolean)
* @see org.eclipse.uml2.uml.UMLPackage#getDestroyObjectAction_IsDestroyOwnedObjects()
* @model dataType="org.eclipse.uml2.uml.Boolean" required="true" ordered="false"
* @generated
*/
boolean isDestroyOwnedObjects();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.DestroyObjectAction#isDestroyOwnedObjects <em>Is Destroy Owned Objects</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Is Destroy Owned Objects</em>' attribute.
* @see #isDestroyOwnedObjects()
* @generated
*/
void setIsDestroyOwnedObjects(boolean value);
/**
* Returns the value of the '<em><b>Target</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The input pin providing the object to be destroyed.
* <!-- end-model-doc -->
* @return the value of the '<em>Target</em>' containment reference.
* @see #setTarget(InputPin)
* @see org.eclipse.uml2.uml.UMLPackage#getDestroyObjectAction_Target()
* @model containment="true" resolveProxies="false" required="true" ordered="false"
* @generated
*/
InputPin getTarget();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.DestroyObjectAction#getTarget <em>Target</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Target</em>' containment reference.
* @see #getTarget()
* @generated
*/
void setTarget(InputPin value);
/**
* Creates a {@link org.eclipse.uml2.uml.InputPin} and sets the '<em><b>Target</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.InputPin} to create.
* @return The new {@link org.eclipse.uml2.uml.InputPin}.
* @see #getTarget()
* @generated
*/
InputPin createTarget(EClass eClass);
/**
* Creates a {@link org.eclipse.uml2.uml.InputPin} and sets the '<em><b>Target</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return The new {@link org.eclipse.uml2.uml.InputPin}.
* @see #getTarget()
* @generated
*/
InputPin createTarget();
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The multiplicity of the input pin is 1..1.
* self.target.multiplicity.is(1,1)
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateMultiplicity(DiagnosticChain diagnostics, Map context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The input pin has no type.
* self.target.type->size() = 0
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateNoType(DiagnosticChain diagnostics, Map context);
} // DestroyObjectAction