blob: ad198ed2d8666bb688e367ce5672e5234014b7c4 [file] [log] [blame]
/*
* Copyright (c) 2005, 2015 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
* Christian W. Damus (CEA) - 251963
* Kenn Hussey (CEA) - 418466, 451350
*
*/
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 specified Variable.
* <p>From package UML::Actions.</p>
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.uml2.uml.VariableAction#getVariable <em>Variable</em>}</li>
* </ul>
*
* @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 -->
* The Variable to be read or written.
* <p>From package UML::Actions.</p>
* <!-- 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 VariableAction must be in the scope of the variable.
* variable.isAccessibleBy(self)
* @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 validateScopeOfVariable(DiagnosticChain diagnostics,
Map<Object, Object> context);
} // VariableAction