/** * <copyright> * </copyright> * * $Id$ */ package orgomg.cwm.objectmodel.core; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Expression</b></em>'. * <!-- end-user-doc --> * * <!-- begin-model-doc --> * In the metamodel an Expression defines a statement which will evaluate to a (possibly empty) set of instances when executed in a context. An Expression does not modify the environment in which it is evaluated. An expression contains an expression string and the name of an interpretation language with which to evaluate the string. * <!-- end-model-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link orgomg.cwm.objectmodel.core.Expression#getBody <em>Body</em>}</li> * <li>{@link orgomg.cwm.objectmodel.core.Expression#getLanguage <em>Language</em>}</li> * </ul> * </p> * * @see orgomg.cwm.objectmodel.core.CorePackage#getExpression() * @model * @generated */ public interface Expression extends Element { /** * Returns the value of the '<em><b>Body</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * The text of the expression expressed in the given language. * <!-- end-model-doc --> * @return the value of the '<em>Body</em>' attribute. * @see #setBody(String) * @see orgomg.cwm.objectmodel.core.CorePackage#getExpression_Body() * @model dataType="orgomg.cwm.objectmodel.core.String" * @generated */ String getBody(); /** * Sets the value of the '{@link orgomg.cwm.objectmodel.core.Expression#getBody <em>Body</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Body</em>' attribute. * @see #getBody() * @generated */ void setBody(String value); /** * Returns the value of the '<em><b>Language</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * Names the language in which the expression body is represented. The interpretation of the expression depends on the language. If the language name is omitted, no interpretation for the expression can be assumed. In general, a language name should be spelled and capitalized exactly as it appears in the document defining the language. For example, use COBOL, not Cobol; use Ada, not ADA; use PostScript, not Postscript. * <!-- end-model-doc --> * @return the value of the '<em>Language</em>' attribute. * @see #setLanguage(String) * @see orgomg.cwm.objectmodel.core.CorePackage#getExpression_Language() * @model dataType="orgomg.cwm.objectmodel.core.Name" * @generated */ String getLanguage(); /** * Sets the value of the '{@link orgomg.cwm.objectmodel.core.Expression#getLanguage <em>Language</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Language</em>' attribute. * @see #getLanguage() * @generated */ void setLanguage(String value); } // Expression