net.sf.farrago.cwm.core
Interface CwmExpression

All Superinterfaces:
CwmElement, RefBaseObject, RefFeatured, RefObject
All Known Subinterfaces:
CwmBooleanExpression, CwmProcedureExpression, CwmQueryExpression
All Known Implementing Classes:
CwmBooleanExpression$Hib, CwmExpression$Hib, CwmProcedureExpression$Hib, CwmQueryExpression$Hib

public interface CwmExpression
extends CwmElement

Expression object instance 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.


Method Summary
 String getBody()
          Returns the value of attribute body.
 String getLanguage()
          Returns the value of attribute language.
 void setBody(String newValue)
          Sets the value of body attribute.
 void setLanguage(String newValue)
          Sets the value of language attribute.
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getBody

String getBody()
Returns the value of attribute body. The text of the expression expressed in the given language.

Returns:
Value of attribute body.

setBody

void setBody(String newValue)
Sets the value of body attribute. See getBody() for description on the attribute.

Parameters:
newValue - New value to be set.

getLanguage

String getLanguage()
Returns the value of attribute 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:
Value of attribute language.

setLanguage

void setLanguage(String newValue)
Sets the value of language attribute. See getLanguage() for description on the attribute.

Parameters:
newValue - New value to be set.