org.eclipse.ocl.uml.impl
Class MessageExpImpl

java.lang.Object
  extended by TypedElementImpl
      extended by org.eclipse.ocl.uml.impl.OCLExpressionImpl
          extended by org.eclipse.ocl.uml.impl.MessageExpImpl
All Implemented Interfaces:
MessageExp<Classifier,CallOperationAction,SendSignalAction>, OCLExpression<Classifier>, ASTNode, CallingASTNode, TypedElement<Classifier>, Visitable

public class MessageExpImpl
extends OCLExpressionImpl
implements MessageExp

An implementation of the model object 'Message Exp'.

The following features are implemented:


Field Summary
protected   argument
          The cached value of the 'Argument' containment reference list
protected  CallOperationAction calledOperation
          The cached value of the 'Called Operation' containment reference
protected static int PROPERTY_END_POSITION_EDEFAULT
          The default value of the 'Property End Position' attribute
protected static int PROPERTY_START_POSITION_EDEFAULT
          The default value of the 'Property Start Position' attribute
protected  int propertyEndPosition
          The cached value of the 'Property End Position' attribute
protected  int propertyStartPosition
          The cached value of the 'Property Start Position' attribute
protected  SendSignalAction sentSignal
          The cached value of the 'Sent Signal' containment reference
protected  OCLExpression<Classifier> target
          The cached value of the 'Target' containment reference
 
Fields inherited from class org.eclipse.ocl.uml.impl.OCLExpressionImpl
END_POSITION_EDEFAULT, endPosition, START_POSITION_EDEFAULT, startPosition
 
Constructor Summary
protected MessageExpImpl()
           
 
Method Summary
<T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>>
T
accept(U v)
           
 NotificationChain basicSetCalledOperation(CallOperationAction newCalledOperation, NotificationChain msgs)
           
 NotificationChain basicSetSentSignal(SendSignalAction newSentSignal, NotificationChain msgs)
           
 NotificationChain basicSetTarget(OCLExpression<Classifier> newTarget, NotificationChain msgs)
           
 boolean checkHasOperationOrSignal(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 boolean checkOperationArguments(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 boolean checkSignalArguments(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 boolean checkTargetDefinesOperation(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 boolean checkTargetNotCollection(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 int eBaseStructuralFeatureID(int derivedFeatureID, java.lang.Class<?> baseClass)
           
 int eDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class<?> baseClass)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
  getArgument()
           
 CallOperationAction getCalledOperation()
           
 int getPropertyEndPosition()
           
 int getPropertyStartPosition()
           
 SendSignalAction getSentSignal()
           
 OCLExpression<Classifier> getTarget()
           
 void setCalledOperation(CallOperationAction newCalledOperation)
           
 void setPropertyEndPosition(int newPropertyEndPosition)
           
 void setPropertyStartPosition(int newPropertyStartPosition)
           
 void setSentSignal(SendSignalAction newSentSignal)
           
 void setTarget(OCLExpression<Classifier> newTarget)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ocl.uml.impl.OCLExpressionImpl
getEndPosition, getStartPosition, getType, setEndPosition, setStartPosition, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.utilities.TypedElement
getName, getType, setName, setType
 
Methods inherited from interface org.eclipse.ocl.utilities.ASTNode
getEndPosition, getStartPosition, setEndPosition, setStartPosition
 
Methods inherited from interface org.eclipse.ocl.expressions.MessageExp
checkHasOperationOrSignal, checkOperationArguments, checkSignalArguments, checkTargetDefinesOperation, checkTargetNotCollection, setTarget
 
Methods inherited from interface org.eclipse.ocl.utilities.TypedElement
getName, getType, setName, setType
 
Methods inherited from interface org.eclipse.ocl.utilities.ASTNode
getEndPosition, getStartPosition, setEndPosition, setStartPosition
 
Methods inherited from interface org.eclipse.ocl.utilities.ASTNode
getEndPosition, getStartPosition, setEndPosition, setStartPosition
 

Field Detail

PROPERTY_START_POSITION_EDEFAULT

protected static final int PROPERTY_START_POSITION_EDEFAULT
The default value of the 'Property Start Position' attribute.

See Also:
getPropertyStartPosition(), Constant Field Values

propertyStartPosition

protected int propertyStartPosition
The cached value of the 'Property Start Position' attribute.

See Also:
getPropertyStartPosition()

PROPERTY_END_POSITION_EDEFAULT

protected static final int PROPERTY_END_POSITION_EDEFAULT
The default value of the 'Property End Position' attribute.

See Also:
getPropertyEndPosition(), Constant Field Values

propertyEndPosition

protected int propertyEndPosition
The cached value of the 'Property End Position' attribute.

See Also:
getPropertyEndPosition()

target

protected OCLExpression<Classifier> target
The cached value of the 'Target' containment reference.

See Also:
getTarget()

argument

protected  argument
The cached value of the 'Argument' containment reference list.

See Also:
getArgument()

calledOperation

protected CallOperationAction calledOperation
The cached value of the 'Called Operation' containment reference.

See Also:
getCalledOperation()

sentSignal

protected SendSignalAction sentSignal
The cached value of the 'Sent Signal' containment reference.

See Also:
getSentSignal()
Constructor Detail

MessageExpImpl

protected MessageExpImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class OCLExpressionImpl

getPropertyStartPosition

public int getPropertyStartPosition()

Specified by:
getPropertyStartPosition in interface CallingASTNode
Returns:
the value of the 'Property Start Position' attribute.
See Also:
CallingASTNode.setPropertyStartPosition(int), UtilitiesPackage.getCallingASTNode_PropertyStartPosition()

setPropertyStartPosition

public void setPropertyStartPosition(int newPropertyStartPosition)

Specified by:
setPropertyStartPosition in interface CallingASTNode
Parameters:
newPropertyStartPosition - the new value of the 'Property Start Position' attribute.
See Also:
CallingASTNode.getPropertyStartPosition()

getPropertyEndPosition

public int getPropertyEndPosition()

Specified by:
getPropertyEndPosition in interface CallingASTNode
Returns:
the value of the 'Property End Position' attribute.
See Also:
CallingASTNode.setPropertyEndPosition(int), UtilitiesPackage.getCallingASTNode_PropertyEndPosition()

setPropertyEndPosition

public void setPropertyEndPosition(int newPropertyEndPosition)

Specified by:
setPropertyEndPosition in interface CallingASTNode
Parameters:
newPropertyEndPosition - the new value of the 'Property End Position' attribute.
See Also:
CallingASTNode.getPropertyEndPosition()

getTarget

public OCLExpression<Classifier> getTarget()

Specified by:
getTarget in interface MessageExp<Classifier,CallOperationAction,SendSignalAction>
Returns:
the value of the 'Target' containment reference.
See Also:
MessageExp.setTarget(OCLExpression), ExpressionsPackage.getMessageExp_Target()

basicSetTarget

public NotificationChain basicSetTarget(OCLExpression<Classifier> newTarget,
                                        NotificationChain msgs)


setTarget

public void setTarget(OCLExpression<Classifier> newTarget)


getArgument

public  getArgument()

Specified by:
getArgument in interface MessageExp<Classifier,CallOperationAction,SendSignalAction>
Returns:
the value of the 'Argument' containment reference list.
See Also:
ExpressionsPackage.getMessageExp_Argument()

getCalledOperation

public CallOperationAction getCalledOperation()

Specified by:
getCalledOperation in interface MessageExp<Classifier,CallOperationAction,SendSignalAction>
Returns:
the value of the 'Called Operation' containment reference.
See Also:
MessageExp.setCalledOperation(Object), ExpressionsPackage.getMessageExp_CalledOperation()

basicSetCalledOperation

public NotificationChain basicSetCalledOperation(CallOperationAction newCalledOperation,
                                                 NotificationChain msgs)


setCalledOperation

public void setCalledOperation(CallOperationAction newCalledOperation)

Specified by:
setCalledOperation in interface MessageExp<Classifier,CallOperationAction,SendSignalAction>
Parameters:
newCalledOperation - the new value of the 'Called Operation' containment reference.
See Also:
MessageExp.getCalledOperation()

getSentSignal

public SendSignalAction getSentSignal()

Specified by:
getSentSignal in interface MessageExp<Classifier,CallOperationAction,SendSignalAction>
Returns:
the value of the 'Sent Signal' containment reference.
See Also:
MessageExp.setSentSignal(Object), ExpressionsPackage.getMessageExp_SentSignal()

basicSetSentSignal

public NotificationChain basicSetSentSignal(SendSignalAction newSentSignal,
                                            NotificationChain msgs)


setSentSignal

public void setSentSignal(SendSignalAction newSentSignal)

Specified by:
setSentSignal in interface MessageExp<Classifier,CallOperationAction,SendSignalAction>
Parameters:
newSentSignal - the new value of the 'Sent Signal' containment reference.
See Also:
MessageExp.getSentSignal()

checkOperationArguments

public boolean checkOperationArguments(DiagnosticChain diagnostics,
                                       java.util.Map<java.lang.Object,java.lang.Object> context)


checkSignalArguments

public boolean checkSignalArguments(DiagnosticChain diagnostics,
                                    java.util.Map<java.lang.Object,java.lang.Object> context)


checkTargetDefinesOperation

public boolean checkTargetDefinesOperation(DiagnosticChain diagnostics,
                                           java.util.Map<java.lang.Object,java.lang.Object> context)


checkHasOperationOrSignal

public boolean checkHasOperationOrSignal(DiagnosticChain diagnostics,
                                         java.util.Map<java.lang.Object,java.lang.Object> context)


checkTargetNotCollection

public boolean checkTargetNotCollection(DiagnosticChain diagnostics,
                                        java.util.Map<java.lang.Object,java.lang.Object> context)


eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)


eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Overrides:
eGet in class OCLExpressionImpl

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Overrides:
eSet in class OCLExpressionImpl

eUnset

public void eUnset(int featureID)

Overrides:
eUnset in class OCLExpressionImpl

eIsSet

public boolean eIsSet(int featureID)

Overrides:
eIsSet in class OCLExpressionImpl

eBaseStructuralFeatureID

public int eBaseStructuralFeatureID(int derivedFeatureID,
                                    java.lang.Class<?> baseClass)

Overrides:
eBaseStructuralFeatureID in class OCLExpressionImpl

eDerivedStructuralFeatureID

public int eDerivedStructuralFeatureID(int baseFeatureID,
                                       java.lang.Class<?> baseClass)

Overrides:
eDerivedStructuralFeatureID in class OCLExpressionImpl

toString

public java.lang.String toString()

Overrides:
toString in class OCLExpressionImpl

accept

public <T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>> T accept(U v)

Specified by:
accept in interface Visitable
Overrides:
accept in class OCLExpressionImpl

Copyright 2002, 2007 IBM Corporation and others.
All Rights Reserved.