org.eclipse.ocl.expressions.IfExp Maven / Gradle / Ivy
/**
*
*
* Copyright (c) 2006, 2008 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
*
*
*
* $Id: IfExp.java,v 1.8 2009/12/22 18:53:30 ewillink Exp $
*/
package org.eclipse.ocl.expressions;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
/**
*
* A representation of the model object 'If Exp'.
*
*
*
* The following features are supported:
*
* - {@link org.eclipse.ocl.expressions.IfExp#getCondition Condition}
* - {@link org.eclipse.ocl.expressions.IfExp#getThenExpression Then Expression}
* - {@link org.eclipse.ocl.expressions.IfExp#getElseExpression Else Expression}
*
*
*
* @see org.eclipse.ocl.expressions.ExpressionsPackage#getIfExp()
* @model
* @generated
*/
public interface IfExp
extends OCLExpression {
/**
* Returns the value of the 'Condition' containment reference.
*
*
* If the meaning of the 'Condition' containment reference isn't clear,
* there really should be more of a description here...
*
*
* @return the value of the 'Condition' containment reference.
* @see #setCondition(OCLExpression)
* @see org.eclipse.ocl.expressions.ExpressionsPackage#getIfExp_Condition()
* @model containment="true"
* @generated
*/
OCLExpression getCondition();
/**
* Sets the value of the '{@link org.eclipse.ocl.expressions.IfExp#getCondition Condition}' containment reference.
*
*
* @param value the new value of the 'Condition' containment reference.
* @see #getCondition()
* @generated
*/
void setCondition(OCLExpression value);
/**
* Returns the value of the 'Then Expression' containment reference.
*
*
* If the meaning of the 'Then Expression' containment reference isn't clear,
* there really should be more of a description here...
*
*
* @return the value of the 'Then Expression' containment reference.
* @see #setThenExpression(OCLExpression)
* @see org.eclipse.ocl.expressions.ExpressionsPackage#getIfExp_ThenExpression()
* @model containment="true"
* @generated
*/
OCLExpression getThenExpression();
/**
* Sets the value of the '{@link org.eclipse.ocl.expressions.IfExp#getThenExpression Then Expression}' containment reference.
*
*
* @param value the new value of the 'Then Expression' containment reference.
* @see #getThenExpression()
* @generated
*/
void setThenExpression(OCLExpression value);
/**
* Returns the value of the 'Else Expression' containment reference.
*
*
* If the meaning of the 'Else Expression' containment reference isn't clear,
* there really should be more of a description here...
*
*
* @return the value of the 'Else Expression' containment reference.
* @see #setElseExpression(OCLExpression)
* @see org.eclipse.ocl.expressions.ExpressionsPackage#getIfExp_ElseExpression()
* @model containment="true"
* @generated
*/
OCLExpression getElseExpression();
/**
* Sets the value of the '{@link org.eclipse.ocl.expressions.IfExp#getElseExpression Else Expression}' containment reference.
*
*
* @param value the new value of the 'Else Expression' containment reference.
* @see #getElseExpression()
* @generated
*/
void setElseExpression(OCLExpression value);
/**
*
*
*
* self.condition.type.oclIsKindOf(PrimitiveType) and self.condition.type.name = 'Boolean'
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
*
* @model
* @generated
*/
boolean checkBooleanCondition(DiagnosticChain diagnostics,
Map