| /* |
| * 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: VariableAction.java,v 1.2 2006/12/14 15:49:28 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>Variable Action</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * <!-- begin-model-doc --> |
| * VariableAction is an abstract class for actions that operate on a statically specified variable. |
| * <!-- end-model-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.VariableAction#getVariable <em>Variable</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @see org.eclipse.uml2.uml.UMLPackage#getVariableAction() |
| * @model abstract="true" |
| * @generated |
| */ |
| public interface VariableAction |
| extends Action { |
| |
| /** |
| * Returns the value of the '<em><b>Variable</b></em>' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Variable to be read. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Variable</em>' reference. |
| * @see #setVariable(Variable) |
| * @see org.eclipse.uml2.uml.UMLPackage#getVariableAction_Variable() |
| * @model required="true" ordered="false" |
| * @generated |
| */ |
| Variable getVariable(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.uml2.uml.VariableAction#getVariable <em>Variable</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Variable</em>' reference. |
| * @see #getVariable() |
| * @generated |
| */ |
| void setVariable(Variable value); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The action must be in the scope of the variable. |
| * self.variable.isAccessibleBy(self) |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateScopeOfVariable(DiagnosticChain diagnostics, |
| Map<Object, Object> context); |
| |
| } // VariableAction |