blob: 31bb0b930cd1fff1af927a91a40dddafa8390794 [file] [log] [blame]
/*
* 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: Continuation.java,v 1.5 2006/12/14 15:49:27 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>Continuation</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A continuation is a syntactic way to define continuations of different branches of an alternative combined fragment. Continuations is intuitively similar to labels representing intermediate points in a flow of control.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.uml.Continuation#isSetting <em>Setting</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.uml.UMLPackage#getContinuation()
* @model
* @generated
*/
public interface Continuation
extends InteractionFragment {
/**
* Returns the value of the '<em><b>Setting</b></em>' attribute.
* The default value is <code>"true"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* True: when the Continuation is at the end of the enclosing InteractionFragment and False when it is in the beginning.
* <!-- end-model-doc -->
* @return the value of the '<em>Setting</em>' attribute.
* @see #setSetting(boolean)
* @see org.eclipse.uml2.uml.UMLPackage#getContinuation_Setting()
* @model default="true" dataType="org.eclipse.uml2.uml.Boolean" required="true" ordered="false"
* @generated
*/
boolean isSetting();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.Continuation#isSetting <em>Setting</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Setting</em>' attribute.
* @see #isSetting()
* @generated
*/
void setSetting(boolean value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Continuations with the same name may only cover the same set of Lifelines (within one Classifier).
* true
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateSameName(DiagnosticChain diagnostics,
Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Continuations are always global in the enclosing InteractionFragment e.g. it always covers all Lifelines covered by the enclosing InteractionFragment.
* true
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateGlobal(DiagnosticChain diagnostics,
Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* Continuations always occur as the very first InteractionFragment or the very last InteractionFragment of the enclosing InteractionFragment.
* true
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateFirstOrLastInteractionFragment(DiagnosticChain diagnostics,
Map<Object, Object> context);
} // Continuation