public interface IfExp<C> extends OCLExpression<C>
The following features are supported:
ExpressionsPackage.getIfExp()| Modifier and Type | Method and Description |
|---|---|
boolean |
checkBooleanCondition(DiagnosticChain diagnostics,
Map<Object,Object> context)
self.condition.type.oclIsKindOf(PrimitiveType) and self.condition.type.name = 'Boolean'
|
boolean |
checkIfType(DiagnosticChain diagnostics,
Map<Object,Object> context)
self.type = thenExpression.type.commonSuperType(elseExpression.type)
|
OCLExpression<C> |
getCondition()
Returns the value of the 'Condition' containment reference.
|
OCLExpression<C> |
getElseExpression()
Returns the value of the 'Else Expression' containment reference.
|
OCLExpression<C> |
getThenExpression()
Returns the value of the 'Then Expression' containment reference.
|
void |
setCondition(OCLExpression<C> value)
Sets the value of the '
Condition' containment reference. |
void |
setElseExpression(OCLExpression<C> value)
Sets the value of the '
Else Expression' containment reference. |
void |
setThenExpression(OCLExpression<C> value)
Sets the value of the '
Then Expression' containment reference. |
getName, getType, setName, setTypegetEndPosition, getStartPosition, setEndPosition, setStartPositionOCLExpression<C> getCondition()
If the meaning of the 'Condition' containment reference isn't clear, there really should be more of a description here...
setCondition(OCLExpression),
ExpressionsPackage.getIfExp_Condition()void setCondition(OCLExpression<C> value)
Condition' containment reference.
value - the new value of the 'Condition' containment reference.getCondition()OCLExpression<C> getThenExpression()
If the meaning of the 'Then Expression' containment reference isn't clear, there really should be more of a description here...
setThenExpression(OCLExpression),
ExpressionsPackage.getIfExp_ThenExpression()void setThenExpression(OCLExpression<C> value)
Then Expression' containment reference.
value - the new value of the 'Then Expression' containment reference.getThenExpression()OCLExpression<C> getElseExpression()
If the meaning of the 'Else Expression' containment reference isn't clear, there really should be more of a description here...
setElseExpression(OCLExpression),
ExpressionsPackage.getIfExp_ElseExpression()void setElseExpression(OCLExpression<C> value)
Else Expression' containment reference.
value - the new value of the 'Else Expression' containment reference.getElseExpression()boolean checkBooleanCondition(DiagnosticChain diagnostics,
Map<Object,Object> context)
diagnostics - The chain of diagnostics to which problems are to be appended.context - The cache of context-specific information.
Copyright © 2015 Open eHealth Foundation. All rights reserved.