UML.Semantic.Foundation.DataTypes
Class Expression

java.lang.Object
  |
  +--UML.Semantic.Foundation.DataTypes.Expression
Direct Known Subclasses:
BooleanExpression, ObjectSetExpression, ProcedureExpression, TimeExpression

public class Expression
extends java.lang.Object

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.


Constructor Summary
Expression()
           
Expression(java.lang.String lang, java.lang.String body)
           
 
Method Summary
 java.lang.String getBody()
          Returns the expression body.
 java.lang.String getElementType()
           
 java.lang.String getLanguage()
          Returns a string representing the expression language.
 void setBody(java.lang.String body)
          Sets the expression body.
 void setElementType(java.lang.String type)
           
 void setLanguage(java.lang.String lang)
          Sets the language of the expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Expression

public Expression()

Expression

public Expression(java.lang.String lang,
                  java.lang.String body)
Method Detail

setLanguage

public void setLanguage(java.lang.String lang)
Sets the language of the expression.


getLanguage

public java.lang.String getLanguage()
Returns a string representing the expression language.

Returns:
The expression language.

setBody

public void setBody(java.lang.String body)
Sets the expression body.


getBody

public java.lang.String getBody()
Returns the expression body.

Returns:
A string representing the expression body.

setElementType

public void setElementType(java.lang.String type)

getElementType

public java.lang.String getElementType()