net.sf.farrago.cwm.core
Interface CwmExpressionClass
- All Superinterfaces:
- RefBaseObject, RefClass, RefFeatured
- All Known Implementing Classes:
- CwmExpressionClass$Hib
public interface CwmExpressionClass
- extends RefClass
Expression class proxy interface.
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.
Note: This type should not be subclassed,
implemented or directly instantiated by clients. It is generated from a
MOF metamodel and implemented by Enki or MDR.
createCwmExpression
CwmExpression createCwmExpression()
- The default factory operation used to create an instance object.
- Returns:
- The created instance object.
createCwmExpression
CwmExpression createCwmExpression(String body,
String language)
- Creates an instance object having attributes initialized by the passed
values.
- Parameters:
body
- The text of the expression expressed in the given
language.language
- 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.
- Returns:
- The created instance object.