org.eclipse.ocl.uml.impl
Class ExpressionInOCLImpl

java.lang.Object
  extended by OpaqueExpressionImpl
      extended by org.eclipse.ocl.uml.impl.ExpressionInOCLImpl
All Implemented Interfaces:
ExpressionInOCL<Classifier,Parameter>, Visitable

public class ExpressionInOCLImpl
extends OpaqueExpressionImpl
implements ExpressionInOCL

An implementation of the model object 'Expression In OCL'.

The following features are implemented:


Field Summary
protected  OCLExpression<Classifier> bodyExpression
          The cached value of the 'Body Expression' containment reference
protected  Variable<Classifier,Parameter> contextVariable
          The cached value of the 'Context Variable' containment reference
protected   generatedType
          The cached value of the 'Generated Type' containment reference list
protected   parameterVariable
          The cached value of the 'Parameter Variable' containment reference list
protected  Variable<Classifier,Parameter> resultVariable
          The cached value of the 'Result Variable' containment reference
 
Constructor Summary
protected ExpressionInOCLImpl()
           
 
Method Summary
<T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>>
T
accept(U v)
           
 NotificationChain basicSetBodyExpression(OCLExpression<Classifier> newBodyExpression, NotificationChain msgs)
           
 NotificationChain basicSetContextVariable(Variable<Classifier,Parameter> newContextVariable, NotificationChain msgs)
           
 NotificationChain basicSetResultVariable(Variable<Classifier,Parameter> newResultVariable, NotificationChain msgs)
           
 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)
           
 OCLExpression<Classifier> getBodyExpression()
           
 Variable<Classifier,Parameter> getContextVariable()
           
  getGeneratedType()
           
  getParameterVariable()
           
 Variable<Classifier,Parameter> getResultVariable()
           
 void setBodyExpression(OCLExpression<Classifier> newBodyExpression)
           
 void setContextVariable(Variable<Classifier,Parameter> newContextVariable)
           
 void setResultVariable(Variable<Classifier,Parameter> newResultVariable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.utilities.ExpressionInOCL
setBodyExpression, setContextVariable, setResultVariable
 

Field Detail

bodyExpression

protected OCLExpression<Classifier> bodyExpression
The cached value of the 'Body Expression' containment reference.

See Also:
getBodyExpression()

contextVariable

protected Variable<Classifier,Parameter> contextVariable
The cached value of the 'Context Variable' containment reference.

See Also:
getContextVariable()

resultVariable

protected Variable<Classifier,Parameter> resultVariable
The cached value of the 'Result Variable' containment reference.

See Also:
getResultVariable()

parameterVariable

protected  parameterVariable
The cached value of the 'Parameter Variable' containment reference list.

See Also:
getParameterVariable()

generatedType

protected  generatedType
The cached value of the 'Generated Type' containment reference list.

Since:
3.0
See Also:
getGeneratedType()
Constructor Detail

ExpressionInOCLImpl

protected ExpressionInOCLImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()


getBodyExpression

public OCLExpression<Classifier> getBodyExpression()

Specified by:
getBodyExpression in interface ExpressionInOCL<Classifier,Parameter>
Returns:
the value of the 'Body Expression' containment reference.
See Also:
ExpressionInOCL.setBodyExpression(OCLExpression), UtilitiesPackage.getExpressionInOCL_BodyExpression()

basicSetBodyExpression

public NotificationChain basicSetBodyExpression(OCLExpression<Classifier> newBodyExpression,
                                                NotificationChain msgs)


setBodyExpression

public void setBodyExpression(OCLExpression<Classifier> newBodyExpression)


getContextVariable

public Variable<Classifier,Parameter> getContextVariable()

Specified by:
getContextVariable in interface ExpressionInOCL<Classifier,Parameter>
Returns:
the value of the 'Context Variable' containment reference.
See Also:
ExpressionInOCL.setContextVariable(Variable), UtilitiesPackage.getExpressionInOCL_ContextVariable()

basicSetContextVariable

public NotificationChain basicSetContextVariable(Variable<Classifier,Parameter> newContextVariable,
                                                 NotificationChain msgs)


setContextVariable

public void setContextVariable(Variable<Classifier,Parameter> newContextVariable)


getResultVariable

public Variable<Classifier,Parameter> getResultVariable()

Specified by:
getResultVariable in interface ExpressionInOCL<Classifier,Parameter>
Returns:
the value of the 'Result Variable' containment reference.
See Also:
ExpressionInOCL.setResultVariable(Variable), UtilitiesPackage.getExpressionInOCL_ResultVariable()

basicSetResultVariable

public NotificationChain basicSetResultVariable(Variable<Classifier,Parameter> newResultVariable,
                                                NotificationChain msgs)


setResultVariable

public void setResultVariable(Variable<Classifier,Parameter> newResultVariable)


getParameterVariable

public  getParameterVariable()

Specified by:
getParameterVariable in interface ExpressionInOCL<Classifier,Parameter>
Returns:
the value of the 'Parameter Variable' containment reference list.
See Also:
UtilitiesPackage.getExpressionInOCL_ParameterVariable()

getGeneratedType

public  getGeneratedType()

Specified by:
getGeneratedType in interface ExpressionInOCL<Classifier,Parameter>
Returns:
the value of the 'Generated Type' containment reference list.
Since:
3.0
See Also:
UtilitiesPackage.getExpressionInOCL_GeneratedType()

accept

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

Specified by:
accept in interface Visitable

eInverseRemove

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


eGet

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


eSet

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


eUnset

public void eUnset(int featureID)


eIsSet

public boolean eIsSet(int featureID)


eBaseStructuralFeatureID

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


eDerivedStructuralFeatureID

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


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