/******************************************************************************* * Copyright (c) 2006, 2009 IBM Corporation, Zeligsoft Inc., 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 * Zeligsoft - Bug 207365 *******************************************************************************/ package org.eclipse.ocl.expressions; import java.util.Map; import org.eclipse.emf.common.util.DiagnosticChain; import org.eclipse.emf.common.util.EList; import org.eclipse.ocl.utilities.CallingASTNode; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Message Exp</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{@link org.eclipse.ocl.expressions.MessageExp#getTarget <em>Target</em>}</li> * <li>{@link org.eclipse.ocl.expressions.MessageExp#getArgument <em>Argument</em>}</li> * <li>{@link org.eclipse.ocl.expressions.MessageExp#getCalledOperation <em>Called Operation</em>}</li> * <li>{@link org.eclipse.ocl.expressions.MessageExp#getSentSignal <em>Sent Signal</em>}</li> * </ul> * * @see org.eclipse.ocl.expressions.ExpressionsPackage#getMessageExp() * @model * @generated */ public interface MessageExp<C, COA, SSA> extends OCLExpression<C>, CallingASTNode { /** * Returns the value of the '<em><b>Target</b></em>' containment reference. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Target</em>' containment reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Target</em>' containment reference. * @see #setTarget(OCLExpression) * @see org.eclipse.ocl.expressions.ExpressionsPackage#getMessageExp_Target() * @model containment="true" * @generated */ OCLExpression<C> getTarget(); /** * Sets the value of the '{@link org.eclipse.ocl.expressions.MessageExp#getTarget <em>Target</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Target</em>' containment reference. * @see #getTarget() * @generated */ void setTarget(OCLExpression<C> value); /** * Returns the value of the '<em><b>Argument</b></em>' containment reference list. * The list contents are of type {@link org.eclipse.ocl.expressions.OCLExpression}<C>. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Argument</em>' containment reference list isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Argument</em>' containment reference list. * @see org.eclipse.ocl.expressions.ExpressionsPackage#getMessageExp_Argument() * @model containment="true" * @generated */ EList<OCLExpression<C>> getArgument(); /** * Returns the value of the '<em><b>Called Operation</b></em>' containment reference. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Called Operation</em>' containment reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Called Operation</em>' containment reference. * @see #setCalledOperation(Object) * @see org.eclipse.ocl.expressions.ExpressionsPackage#getMessageExp_CalledOperation() * @model kind="reference" containment="true" * @generated */ COA getCalledOperation(); /** * Sets the value of the '{@link org.eclipse.ocl.expressions.MessageExp#getCalledOperation <em>Called Operation</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Called Operation</em>' containment reference. * @see #getCalledOperation() * @generated */ void setCalledOperation(COA value); /** * Returns the value of the '<em><b>Sent Signal</b></em>' containment reference. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Sent Signal</em>' containment reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Sent Signal</em>' containment reference. * @see #setSentSignal(Object) * @see org.eclipse.ocl.expressions.ExpressionsPackage#getMessageExp_SentSignal() * @model kind="reference" containment="true" * @generated */ SSA getSentSignal(); /** * Sets the value of the '{@link org.eclipse.ocl.expressions.MessageExp#getSentSignal <em>Sent Signal</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Sent Signal</em>' containment reference. * @see #getSentSignal() * @generated */ void setSentSignal(SSA value); /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * calledOperation->notEmpty() implies * argument->forall (a | a.type.conformsTo * (self.calledOperation.operation.ownedParameter-> * select( kind = ParameterDirectionKind::in ) * ->at (argument->indexOf (a)).type)) * @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 checkOperationArguments(DiagnosticChain diagnostics, Map<Object, Object> context); /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * sentSignal->notEmpty() implies * argument->forall (a | a.type.conformsTo * (self.sentSignal.signal.ownedAttribute * ->at (argument->indexOf (a)).type)) * @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 checkSignalArguments(DiagnosticChain diagnostics, Map<Object, Object> context); /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * calledOperation->notEmpty() implies * target.type.allOperations()->includes(calledOperation.operation) * @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 checkTargetDefinesOperation(DiagnosticChain diagnostics, Map<Object, Object> context); /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * calledOperation->size() + sentSignal->size() = 1 * @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 checkHasOperationOrSignal(DiagnosticChain diagnostics, Map<Object, Object> context); /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * not target.type.oclIsKindOf(CollectionType) * @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 checkTargetNotCollection(DiagnosticChain diagnostics, Map<Object, Object> context); } // MessageExp