| /******************************************************************************* |
| * Copyright (c) 2009, 2015 Xored Software 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: |
| * Xored Software Inc - initial API and implementation and/or initial documentation |
| *******************************************************************************/ |
| package org.eclipse.rcptt.ecl.core; |
| |
| import org.eclipse.emf.ecore.EObject; |
| |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the model object '<em><b>If</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.rcptt.ecl.core.If#getCondition <em>Condition</em>}</li> |
| * <li>{@link org.eclipse.rcptt.ecl.core.If#getThen <em>Then</em>}</li> |
| * <li>{@link org.eclipse.rcptt.ecl.core.If#getElse <em>Else</em>}</li> |
| * </ul> |
| * |
| * @see org.eclipse.rcptt.ecl.core.CorePackage#getIf() |
| * @model annotation="http://www.eclipse.org/ecl/docs description='Based on a condition corresponds either command either from <code>then</code> or <code>else</code> branch. ' returns='Output of executed branch' example='if [get-property caption -raw | not-eq \"Test\" ] {\r\n\tselect-item\r\n\tget-menu Delete | click\r\n\tget-window \"Delete Resources\" | get-button OK | click\r\n}'" |
| * @generated |
| */ |
| public interface If extends Command { |
| /** |
| * Returns the value of the '<em><b>Condition</b></em>' reference. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Condition</em>' reference isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Condition</em>' reference. |
| * @see #setCondition(EObject) |
| * @see org.eclipse.rcptt.ecl.core.CorePackage#getIf_Condition() |
| * @model annotation="http://www.eclipse.org/ecl/docs description='Accepted values are boolean, string (<code>true</code> when case-insensitive equals to <code>true</code>, <code>false</code> otherwise) and number (<code>0</code> for <code>false</code>, <code>true</code> otherwise). '" |
| * @generated |
| */ |
| EObject getCondition(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.rcptt.ecl.core.If#getCondition <em>Condition</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Condition</em>' reference. |
| * @see #getCondition() |
| * @generated |
| */ |
| void setCondition(EObject value); |
| |
| /** |
| * Returns the value of the '<em><b>Then</b></em>' containment reference. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Then</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>Then</em>' containment reference. |
| * @see #setThen(Command) |
| * @see org.eclipse.rcptt.ecl.core.CorePackage#getIf_Then() |
| * @model containment="true" |
| * annotation="http://www.eclipse.org/ecl/docs description='Branch being executed on <code>true</code> input. Can be omitted.'" |
| * @generated |
| */ |
| Command getThen(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.rcptt.ecl.core.If#getThen <em>Then</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Then</em>' containment reference. |
| * @see #getThen() |
| * @generated |
| */ |
| void setThen(Command value); |
| |
| /** |
| * Returns the value of the '<em><b>Else</b></em>' containment reference. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Else</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>Else</em>' containment reference. |
| * @see #setElse(Command) |
| * @see org.eclipse.rcptt.ecl.core.CorePackage#getIf_Else() |
| * @model containment="true" |
| * annotation="http://www.eclipse.org/ecl/docs description='Branch being executed on <code>false</code> input. Can be omitted.'" |
| * @generated |
| */ |
| Command getElse(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.rcptt.ecl.core.If#getElse <em>Else</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Else</em>' containment reference. |
| * @see #getElse() |
| * @generated |
| */ |
| void setElse(Command value); |
| |
| } // If |