blob: f7653ac9f07a288bc76cb69a459c79d3d8d85220 [file] [log] [blame]
/*
* Copyright (c) 2005, 2011 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
*
* $Id: ExpansionNode.java,v 1.1 2005/11/14 22:25:58 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>Expansion Node</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* An expansion node is an object node used to indicate a flow across the boundary of an expansion region. A flow into a region contains a collection that is broken into its individual elements inside the region, which is executed once per element. A flow out of a region combines individual elements into a collection for use outside the region.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.ExpansionNode#getRegionAsInput <em>Region As Input</em>}</li>
* <li>{@link org.eclipse.uml2.uml.ExpansionNode#getRegionAsOutput <em>Region As Output</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.uml.UMLPackage#getExpansionNode()
* @model
* @generated
*/
public interface ExpansionNode
extends ObjectNode {
/**
* Returns the value of the '<em><b>Region As Output</b></em>' reference.
* It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.ExpansionRegion#getOutputElements <em>Output Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The expansion region for which the node is an output.
* <!-- end-model-doc -->
* @return the value of the '<em>Region As Output</em>' reference.
* @see #setRegionAsOutput(ExpansionRegion)
* @see org.eclipse.uml2.uml.UMLPackage#getExpansionNode_RegionAsOutput()
* @see org.eclipse.uml2.uml.ExpansionRegion#getOutputElements
* @model opposite="outputElement" ordered="false"
* @generated
*/
ExpansionRegion getRegionAsOutput();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.ExpansionNode#getRegionAsOutput <em>Region As Output</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Region As Output</em>' reference.
* @see #getRegionAsOutput()
* @generated
*/
void setRegionAsOutput(ExpansionRegion value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* One of regionAsInput or regionAsOutput must be non-empty, but not both.
* 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 validateRegionAsInputOrOutput(DiagnosticChain diagnostics,
Map<Object, Object> context);
/**
* Returns the value of the '<em><b>Region As Input</b></em>' reference.
* It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.ExpansionRegion#getInputElements <em>Input Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The expansion region for which the node is an input.
* <!-- end-model-doc -->
* @return the value of the '<em>Region As Input</em>' reference.
* @see #setRegionAsInput(ExpansionRegion)
* @see org.eclipse.uml2.uml.UMLPackage#getExpansionNode_RegionAsInput()
* @see org.eclipse.uml2.uml.ExpansionRegion#getInputElements
* @model opposite="inputElement" ordered="false"
* @generated
*/
ExpansionRegion getRegionAsInput();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.ExpansionNode#getRegionAsInput <em>Region As Input</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Region As Input</em>' reference.
* @see #getRegionAsInput()
* @generated
*/
void setRegionAsInput(ExpansionRegion value);
} // ExpansionNode