/******************************************************************************* * Copyright (c) 2010, 2015 Willink Transformations 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: * E.D.Willink - Initial API and implementation *******************************************************************************/ package org.eclipse.ocl.pivot; import java.util.Map; import org.eclipse.emf.common.util.DiagnosticChain; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>If Exp</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{@link org.eclipse.ocl.pivot.IfExp#getOwnedCondition <em>Owned Condition</em>}</li> * <li>{@link org.eclipse.ocl.pivot.IfExp#getOwnedElse <em>Owned Else</em>}</li> * <li>{@link org.eclipse.ocl.pivot.IfExp#getOwnedThen <em>Owned Then</em>}</li> * </ul> * * @see org.eclipse.ocl.pivot.PivotPackage#getIfExp() * @generated */ public interface IfExp extends OCLExpression { /** * Returns the value of the '<em><b>Owned Condition</b></em>' containment reference. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Condition</em>' containment reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Owned Condition</em>' containment reference. * @see #setOwnedCondition(OCLExpression) * @see org.eclipse.ocl.pivot.PivotPackage#getIfExp_OwnedCondition() * @generated */ OCLExpression getOwnedCondition(); /** * Sets the value of the '{@link org.eclipse.ocl.pivot.IfExp#getOwnedCondition <em>Owned Condition</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Owned Condition</em>' containment reference. * @see #getOwnedCondition() * @generated */ void setOwnedCondition(OCLExpression value); /** * Returns the value of the '<em><b>Owned Then</b></em>' containment reference. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Then Expression</em>' containment reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Owned Then</em>' containment reference. * @see #setOwnedThen(OCLExpression) * @see org.eclipse.ocl.pivot.PivotPackage#getIfExp_OwnedThen() * @generated */ OCLExpression getOwnedThen(); /** * Sets the value of the '{@link org.eclipse.ocl.pivot.IfExp#getOwnedThen <em>Owned Then</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Owned Then</em>' containment reference. * @see #getOwnedThen() * @generated */ void setOwnedThen(OCLExpression value); /** * Returns the value of the '<em><b>Owned Else</b></em>' containment reference. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Else Expression</em>' containment reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Owned Else</em>' containment reference. * @see #setOwnedElse(OCLExpression) * @see org.eclipse.ocl.pivot.PivotPackage#getIfExp_OwnedElse() * @generated */ OCLExpression getOwnedElse(); /** * Sets the value of the '{@link org.eclipse.ocl.pivot.IfExp#getOwnedElse <em>Owned Else</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Owned Else</em>' containment reference. * @see #getOwnedElse() * @generated */ void setOwnedElse(OCLExpression value); /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ boolean validateConditionTypeIsBoolean(DiagnosticChain diagnostics, Map<Object, Object> context); /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ boolean validateTypeIsNotInvalid(DiagnosticChain diagnostics, Map<Object, Object> context); } // IfExp