| /* |
| * 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: ActivityNode.java,v 1.7 2006/03/15 19:33:56 khussey Exp $ |
| */ |
| package org.eclipse.uml2.uml; |
| |
| import java.util.Map; |
| |
| import org.eclipse.emf.common.util.DiagnosticChain; |
| |
| import org.eclipse.emf.common.util.EList; |
| |
| import org.eclipse.emf.ecore.EClass; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the model object '<em><b>Activity Node</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * <!-- begin-model-doc --> |
| * An activity node is an abstract class for the steps of an activity. It covers executable nodes, control nodes, and object nodes. Nodes can be replaced in generalization. |
| * An activity node is an abstract class for the steps of an activity. It covers executable nodes, control nodes, and object nodes. |
| * An activity node is an abstract class for the steps of an activity. It covers executable nodes, control nodes, and object nodes. Nodes can be contained in interruptible regions. |
| * <!-- end-model-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.ActivityNode#getInStructuredNode <em>In Structured Node</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.ActivityNode#getActivity <em>Activity</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.ActivityNode#getOutgoings <em>Outgoing</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.ActivityNode#getIncomings <em>Incoming</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.ActivityNode#getInPartitions <em>In Partition</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.ActivityNode#getInInterruptibleRegions <em>In Interruptible Region</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.ActivityNode#getInGroups <em>In Group</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.ActivityNode#getRedefinedNodes <em>Redefined Node</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @see org.eclipse.uml2.uml.UMLPackage#getActivityNode() |
| * @model abstract="true" |
| * @generated |
| */ |
| public interface ActivityNode |
| extends RedefinableElement { |
| |
| /** |
| * Returns the value of the '<em><b>Outgoing</b></em>' reference list. |
| * The list contents are of type {@link org.eclipse.uml2.uml.ActivityEdge}. |
| * It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.ActivityEdge#getSource <em>Source</em>}'. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Edges that have the node as source. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Outgoing</em>' reference list. |
| * @see org.eclipse.uml2.uml.UMLPackage#getActivityNode_Outgoing() |
| * @see org.eclipse.uml2.uml.ActivityEdge#getSource |
| * @model type="org.eclipse.uml2.uml.ActivityEdge" opposite="source" ordered="false" |
| * @generated |
| */ |
| EList getOutgoings(); |
| |
| /** |
| * Retrieves the first {@link org.eclipse.uml2.uml.ActivityEdge} with the specified '<em><b>Name</b></em>' from the '<em><b>Outgoing</b></em>' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.ActivityEdge} to retrieve, or <code>null</code>. |
| * @return The first {@link org.eclipse.uml2.uml.ActivityEdge} with the specified '<em><b>Name</b></em>', or <code>null</code>. |
| * @see #getOutgoings() |
| * @generated |
| */ |
| ActivityEdge getOutgoing(String name); |
| |
| /** |
| * Retrieves the first {@link org.eclipse.uml2.uml.ActivityEdge} with the specified '<em><b>Name</b></em>' from the '<em><b>Outgoing</b></em>' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.ActivityEdge} to retrieve, or <code>null</code>. |
| * @param ignoreCase Whether to ignore case in {@link java.lang.String} comparisons. |
| * @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.ActivityEdge} to retrieve, or <code>null</code>. |
| * @return The first {@link org.eclipse.uml2.uml.ActivityEdge} with the specified '<em><b>Name</b></em>', or <code>null</code>. |
| * @see #getOutgoings() |
| * @generated |
| */ |
| ActivityEdge getOutgoing(String name, boolean ignoreCase, EClass eClass); |
| |
| /** |
| * Returns the value of the '<em><b>In Group</b></em>' reference list. |
| * The list contents are of type {@link org.eclipse.uml2.uml.ActivityGroup}. |
| * It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.ActivityGroup#getContainedNodes <em>Contained Node</em>}'. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Groups containing the node. Multiplicity specialized to [0..1] for StructuredActivity-Group. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>In Group</em>' reference list. |
| * @see org.eclipse.uml2.uml.UMLPackage#getActivityNode_InGroup() |
| * @see org.eclipse.uml2.uml.ActivityGroup#getContainedNodes |
| * @model type="org.eclipse.uml2.uml.ActivityGroup" opposite="containedNode" transient="true" changeable="false" derived="true" ordered="false" |
| * @generated |
| */ |
| EList getInGroups(); |
| |
| /** |
| * Returns the value of the '<em><b>In Partition</b></em>' reference list. |
| * The list contents are of type {@link org.eclipse.uml2.uml.ActivityPartition}. |
| * It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.ActivityPartition#getNodes <em>Node</em>}'. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Partitions containing the node. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>In Partition</em>' reference list. |
| * @see org.eclipse.uml2.uml.UMLPackage#getActivityNode_InPartition() |
| * @see org.eclipse.uml2.uml.ActivityPartition#getNodes |
| * @model type="org.eclipse.uml2.uml.ActivityPartition" opposite="node" ordered="false" |
| * @generated |
| */ |
| EList getInPartitions(); |
| |
| /** |
| * Retrieves the first {@link org.eclipse.uml2.uml.ActivityPartition} with the specified '<em><b>Name</b></em>' from the '<em><b>In Partition</b></em>' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.ActivityPartition} to retrieve, or <code>null</code>. |
| * @return The first {@link org.eclipse.uml2.uml.ActivityPartition} with the specified '<em><b>Name</b></em>', or <code>null</code>. |
| * @see #getInPartitions() |
| * @generated |
| */ |
| ActivityPartition getInPartition(String name); |
| |
| /** |
| * Retrieves the first {@link org.eclipse.uml2.uml.ActivityPartition} with the specified '<em><b>Name</b></em>' from the '<em><b>In Partition</b></em>' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.ActivityPartition} to retrieve, or <code>null</code>. |
| * @param ignoreCase Whether to ignore case in {@link java.lang.String} comparisons. |
| * @return The first {@link org.eclipse.uml2.uml.ActivityPartition} with the specified '<em><b>Name</b></em>', or <code>null</code>. |
| * @see #getInPartitions() |
| * @generated |
| */ |
| ActivityPartition getInPartition(String name, boolean ignoreCase); |
| |
| /** |
| * Returns the value of the '<em><b>In Structured Node</b></em>' container reference. |
| * It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.StructuredActivityNode#getNodes <em>Node</em>}'. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Structured activity node containing the node. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>In Structured Node</em>' container reference. |
| * @see #setInStructuredNode(StructuredActivityNode) |
| * @see org.eclipse.uml2.uml.UMLPackage#getActivityNode_InStructuredNode() |
| * @see org.eclipse.uml2.uml.StructuredActivityNode#getNodes |
| * @model opposite="node" ordered="false" |
| * @generated |
| */ |
| StructuredActivityNode getInStructuredNode(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.uml2.uml.ActivityNode#getInStructuredNode <em>In Structured Node</em>}' container reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>In Structured Node</em>' container reference. |
| * @see #getInStructuredNode() |
| * @generated |
| */ |
| void setInStructuredNode(StructuredActivityNode value); |
| |
| /** |
| * Returns the value of the '<em><b>Activity</b></em>' container reference. |
| * It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.Activity#getNodes <em>Node</em>}'. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Activity containing the node. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Activity</em>' container reference. |
| * @see #setActivity(Activity) |
| * @see org.eclipse.uml2.uml.UMLPackage#getActivityNode_Activity() |
| * @see org.eclipse.uml2.uml.Activity#getNodes |
| * @model opposite="node" ordered="false" |
| * @generated |
| */ |
| Activity getActivity(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.uml2.uml.ActivityNode#getActivity <em>Activity</em>}' container reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Activity</em>' container reference. |
| * @see #getActivity() |
| * @generated |
| */ |
| void setActivity(Activity value); |
| |
| /** |
| * Returns the value of the '<em><b>Incoming</b></em>' reference list. |
| * The list contents are of type {@link org.eclipse.uml2.uml.ActivityEdge}. |
| * It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.ActivityEdge#getTarget <em>Target</em>}'. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Edges that have the node as target. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Incoming</em>' reference list. |
| * @see org.eclipse.uml2.uml.UMLPackage#getActivityNode_Incoming() |
| * @see org.eclipse.uml2.uml.ActivityEdge#getTarget |
| * @model type="org.eclipse.uml2.uml.ActivityEdge" opposite="target" ordered="false" |
| * @generated |
| */ |
| EList getIncomings(); |
| |
| /** |
| * Retrieves the first {@link org.eclipse.uml2.uml.ActivityEdge} with the specified '<em><b>Name</b></em>' from the '<em><b>Incoming</b></em>' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.ActivityEdge} to retrieve, or <code>null</code>. |
| * @return The first {@link org.eclipse.uml2.uml.ActivityEdge} with the specified '<em><b>Name</b></em>', or <code>null</code>. |
| * @see #getIncomings() |
| * @generated |
| */ |
| ActivityEdge getIncoming(String name); |
| |
| /** |
| * Retrieves the first {@link org.eclipse.uml2.uml.ActivityEdge} with the specified '<em><b>Name</b></em>' from the '<em><b>Incoming</b></em>' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.ActivityEdge} to retrieve, or <code>null</code>. |
| * @param ignoreCase Whether to ignore case in {@link java.lang.String} comparisons. |
| * @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.ActivityEdge} to retrieve, or <code>null</code>. |
| * @return The first {@link org.eclipse.uml2.uml.ActivityEdge} with the specified '<em><b>Name</b></em>', or <code>null</code>. |
| * @see #getIncomings() |
| * @generated |
| */ |
| ActivityEdge getIncoming(String name, boolean ignoreCase, EClass eClass); |
| |
| /** |
| * Returns the value of the '<em><b>In Interruptible Region</b></em>' reference list. |
| * The list contents are of type {@link org.eclipse.uml2.uml.InterruptibleActivityRegion}. |
| * It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.InterruptibleActivityRegion#getNodes <em>Node</em>}'. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Interruptible regions containing the node. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>In Interruptible Region</em>' reference list. |
| * @see org.eclipse.uml2.uml.UMLPackage#getActivityNode_InInterruptibleRegion() |
| * @see org.eclipse.uml2.uml.InterruptibleActivityRegion#getNodes |
| * @model type="org.eclipse.uml2.uml.InterruptibleActivityRegion" opposite="node" ordered="false" |
| * @generated |
| */ |
| EList getInInterruptibleRegions(); |
| |
| /** |
| * Returns the value of the '<em><b>Redefined Node</b></em>' reference list. |
| * The list contents are of type {@link org.eclipse.uml2.uml.ActivityNode}. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Inherited nodes replaced by this node in a specialization of the activity. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Redefined Node</em>' reference list. |
| * @see org.eclipse.uml2.uml.UMLPackage#getActivityNode_RedefinedNode() |
| * @model type="org.eclipse.uml2.uml.ActivityNode" ordered="false" |
| * @generated |
| */ |
| EList getRedefinedNodes(); |
| |
| /** |
| * Retrieves the first {@link org.eclipse.uml2.uml.ActivityNode} with the specified '<em><b>Name</b></em>' from the '<em><b>Redefined Node</b></em>' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.ActivityNode} to retrieve, or <code>null</code>. |
| * @return The first {@link org.eclipse.uml2.uml.ActivityNode} with the specified '<em><b>Name</b></em>', or <code>null</code>. |
| * @see #getRedefinedNodes() |
| * @generated |
| */ |
| ActivityNode getRedefinedNode(String name); |
| |
| /** |
| * Retrieves the first {@link org.eclipse.uml2.uml.ActivityNode} with the specified '<em><b>Name</b></em>' from the '<em><b>Redefined Node</b></em>' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.ActivityNode} to retrieve, or <code>null</code>. |
| * @param ignoreCase Whether to ignore case in {@link java.lang.String} comparisons. |
| * @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.ActivityNode} to retrieve, or <code>null</code>. |
| * @return The first {@link org.eclipse.uml2.uml.ActivityNode} with the specified '<em><b>Name</b></em>', or <code>null</code>. |
| * @see #getRedefinedNodes() |
| * @generated |
| */ |
| ActivityNode getRedefinedNode(String name, boolean ignoreCase, EClass eClass); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Activity nodes can only be owned by activities or groups. |
| * true |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateOwned(DiagnosticChain diagnostics, Map context); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Activity nodes may be owned by at most one structured node. |
| * true |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateOwnedStructuredNode(DiagnosticChain diagnostics, Map context); |
| |
| } // ActivityNode |