org.omg.cwm.objectmodel.core
Interface Expression
- All Superinterfaces:
- Element, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject
- All Known Subinterfaces:
- BooleanExpression, ProcedureExpression
- public interface Expression
- extends Element
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.
Method Summary |
java.lang.String |
getBody()
The text of the expression expressed in the given language. |
java.lang.String |
getLanguage()
Names the language in which the expression body is represented. |
void |
setBody(java.lang.String newValue)
The text of the expression expressed in the given language. |
void |
setLanguage(java.lang.String newValue)
Names the language in which the expression body is represented. |
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 |
getBody
public java.lang.String getBody()
throws javax.jmi.reflect.JmiException
- The text of the expression expressed in the given language.
setBody
public void setBody(java.lang.String newValue)
throws javax.jmi.reflect.JmiException
- The text of the expression expressed in the given language.
getLanguage
public java.lang.String getLanguage()
throws javax.jmi.reflect.JmiException
- 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.
setLanguage
public void setLanguage(java.lang.String newValue)
throws javax.jmi.reflect.JmiException
- 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.
Copyright 1997-2005 by Object Management Group, Inc. (http://www.omg.org/),
250 First Ave. Needham, MA 02494 U.S.A. All rights reserved.
Unless otherwise indicated, users may make a single copy of the contents,
in whole or in part, of this web site strictly for personal, non-commercial
use. In the event that all or part of this site is downloaded for personal
use, users shall maintain all proprietary notices including copyright notices
that appear on or in connection with that content. Other than creating a
single copy of contents for personal use as described herein, users may not
copy, reproduce, distribute, republish, download, display, post or transmit
in any form or by any means, including but not limited to electronic,
mechanical, photocopying, recording, or other means, any content found or
linked to the OMG web site without the prior express written permission of OMG.
Any unauthorized use of any content contained on the OMG web site may violate
the copyright laws, trademark laws, laws relating to publicity and privacy,
and other regulations and statutes in the U.S. and other countries.