/**
* <copyright>
* </copyright>
*
* $Id: NamedValue.java,v 1.2 2011/03/05 21:37:37 auhl Exp $
*/
package data.classes;
import behavioral.actions.Block;
import modelmanagement.NamedElement;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Named Value</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A value that can be used by name in the scope of a Block. Specializations are, e.g., Constant and Variable. Specializations may have different rules for initialization expressions.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link data.classes.NamedValue#getOwner <em>Owner</em>}</li>
* </ul>
* </p>
*
* @see data.classes.ClassesPackage#getNamedValue()
* @model abstract="true"
* @generated
*/
public interface NamedValue extends NamedElement, TypedElement {
/**
* Returns the value of the '<em><b>Owner</b></em>' container reference.
* It is bidirectional and its opposite is '{@link behavioral.actions.Block#getVariables <em>Variables</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Owner</em>' container reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Owner</em>' container reference.
* @see #setOwner(Block)
* @see data.classes.ClassesPackage#getNamedValue_Owner()
* @see behavioral.actions.Block#getVariables
* @model opposite="variables"
* @generated
*/
Block getOwner();
/**
* Sets the value of the '{@link data.classes.NamedValue#getOwner <em>Owner</em>}' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Owner</em>' container reference.
* @see #getOwner()
* @generated
*/
void setOwner(Block value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model kind="operation" ordered="false"
* annotation="http://www.eclipse.org/emf/2002/Ecore/OCL body='self.owner.getNamedValuesInScope()->union(\n if self.oclIsKindOf(Parameter) then\n self.oclAsType(Parameter).ownerSignature.getNamedValuesInScope()\n else\n if self.oclIsKindOf(behavioral::actions::Iterator) then\n self.oclAsType(behavioral::actions::Iterator).boundToFor.getNamedValuesInScope()->asSet()->union(\n self.oclAsType(behavioral::actions::Iterator)._iterate.getNamedValuesInScope()->asSet())\n else\n if self.oclIsKindOf(behavioral::actions::Constant) then\n self.oclAsType(behavioral::actions::Constant)._iterate.getNamedValuesInScope()\n else\n Set{} -- TODO further cases?\n endif\n endif\n endif\n )'"
* annotation="http://www.eclipse.org/emf/2002/Ecore constraints='body'"
* @generated
*/
EList<NamedValue> getNamedValuesInScope();
} // NamedValue