org.eclipse.ocl.uml.impl
Class IfExpImpl

java.lang.Object
  extended by TypedElementImpl
      extended by org.eclipse.ocl.uml.impl.OCLExpressionImpl
          extended by org.eclipse.ocl.uml.impl.IfExpImpl
All Implemented Interfaces:
IfExp<Classifier>, OCLExpression<Classifier>, ASTNode, TypedElement<Classifier>, Visitable

public class IfExpImpl
extends OCLExpressionImpl
implements IfExp

An implementation of the model object 'If Exp'.

The following features are implemented:


Field Summary
protected  OCLExpression<Classifier> condition
          The cached value of the 'Condition' containment reference
protected  OCLExpression<Classifier> elseExpression
          The cached value of the 'Else Expression' containment reference
protected  OCLExpression<Classifier> thenExpression
          The cached value of the 'Then Expression' containment reference
 
Fields inherited from class org.eclipse.ocl.uml.impl.OCLExpressionImpl
END_POSITION_EDEFAULT, endPosition, START_POSITION_EDEFAULT, startPosition
 
Constructor Summary
protected IfExpImpl()
           
 
Method Summary
<T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>>
T
accept(U v)
           
 NotificationChain basicSetCondition(OCLExpression<Classifier> newCondition, NotificationChain msgs)
           
 NotificationChain basicSetElseExpression(OCLExpression<Classifier> newElseExpression, NotificationChain msgs)
           
 NotificationChain basicSetThenExpression(OCLExpression<Classifier> newThenExpression, NotificationChain msgs)
           
 boolean checkBooleanCondition(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 boolean checkIfType(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)
           
 OCLExpression<Classifier> getCondition()
           
 OCLExpression<Classifier> getElseExpression()
           
 OCLExpression<Classifier> getThenExpression()
           
 void setCondition(OCLExpression<Classifier> newCondition)
           
 void setElseExpression(OCLExpression<Classifier> newElseExpression)
           
 void setThenExpression(OCLExpression<Classifier> newThenExpression)
           
 
Methods inherited from class org.eclipse.ocl.uml.impl.OCLExpressionImpl
getEndPosition, getStartPosition, getType, setEndPosition, setStartPosition, setType, toString
 
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.IfExp
checkBooleanCondition, checkIfType, setCondition, setElseExpression, setThenExpression
 
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
 

Field Detail

condition

protected OCLExpression<Classifier> condition
The cached value of the 'Condition' containment reference.

See Also:
getCondition()

thenExpression

protected OCLExpression<Classifier> thenExpression
The cached value of the 'Then Expression' containment reference.

See Also:
getThenExpression()

elseExpression

protected OCLExpression<Classifier> elseExpression
The cached value of the 'Else Expression' containment reference.

See Also:
getElseExpression()
Constructor Detail

IfExpImpl

protected IfExpImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class OCLExpressionImpl

getCondition

public OCLExpression<Classifier> getCondition()

Specified by:
getCondition in interface IfExp<Classifier>
Returns:
the value of the 'Condition' containment reference.
See Also:
IfExp.setCondition(OCLExpression), ExpressionsPackage.getIfExp_Condition()

basicSetCondition

public NotificationChain basicSetCondition(OCLExpression<Classifier> newCondition,
                                           NotificationChain msgs)


setCondition

public void setCondition(OCLExpression<Classifier> newCondition)


getThenExpression

public OCLExpression<Classifier> getThenExpression()

Specified by:
getThenExpression in interface IfExp<Classifier>
Returns:
the value of the 'Then Expression' containment reference.
See Also:
IfExp.setThenExpression(OCLExpression), ExpressionsPackage.getIfExp_ThenExpression()

basicSetThenExpression

public NotificationChain basicSetThenExpression(OCLExpression<Classifier> newThenExpression,
                                                NotificationChain msgs)


setThenExpression

public void setThenExpression(OCLExpression<Classifier> newThenExpression)


getElseExpression

public OCLExpression<Classifier> getElseExpression()

Specified by:
getElseExpression in interface IfExp<Classifier>
Returns:
the value of the 'Else Expression' containment reference.
See Also:
IfExp.setElseExpression(OCLExpression), ExpressionsPackage.getIfExp_ElseExpression()

basicSetElseExpression

public NotificationChain basicSetElseExpression(OCLExpression<Classifier> newElseExpression,
                                                NotificationChain msgs)


setElseExpression

public void setElseExpression(OCLExpression<Classifier> newElseExpression)


checkBooleanCondition

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


checkIfType

public boolean checkIfType(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

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.