org.eclipse.uml2
Interface OpaqueExpression

All Superinterfaces:
Element, EModelElement, EObject, NamedElement, Notifier, ParameterableElement, TemplateableElement, TypedElement, ValueSpecification
All Known Subinterfaces:
Expression

public interface OpaqueExpression
extends ValueSpecification

A representation of the model object 'Opaque Expression'. An expression contains a language-specific text string used to describe a value or values, and an optional specification of the language. One predefined language for specifying expressions is OCL. Natural language or programming languages may also be used.

The following features are supported:

See Also:
UML2Package.getOpaqueExpression()

Field Summary
static String copyright
           
 
Fields inherited from interface org.eclipse.uml2.NamedElement
SEPARATOR
 
Method Summary
 Behavior getBehavior()
          Returns the value of the 'Behavior' reference
 String getBody()
          Returns the value of the 'Body' attribute.
 String getLanguage()
          Returns the value of the 'Language' attribute.
 Parameter getResult()
          Returns the value of the 'Result' reference
 void setBehavior(Behavior value)
          Sets the value of the 'Behavior' reference
 void setBody(String value)
          Sets the value of the 'Body' attribute
 void setLanguage(String value)
          Sets the value of the 'Language' attribute
 
Methods inherited from interface org.eclipse.uml2.ValueSpecification
booleanValue, integerValue, isComputable, isNull, stringValue, unlimitedValue
 
Methods inherited from interface org.eclipse.uml2.TypedElement
getType, setType
 
Methods inherited from interface org.eclipse.uml2.NamedElement
allNamespaces, createNameExpression, getClientDependencies, getClientDependency, getName, getNameExpression, getNamespace, getOwnedElements, getOwner, getQualifiedName, getVisibility, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, setVisibility, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership
 
Methods inherited from interface org.eclipse.uml2.TemplateableElement
createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, parameterableElements, setOwnedTemplateSignature
 
Methods inherited from interface org.eclipse.uml2.Element
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getValue, hasKeyword, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, validateHasOwner, validateNotOwnSelf
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.uml2.ParameterableElement
getOwner, getOwningParameter, getTemplateParameter, setOwningParameter, setTemplateParameter
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values
Method Detail

getBody

public String getBody()
Returns the value of the 'Body' attribute. The default value is "".

If the meaning of the 'Body' attribute isn't clear, there really should be more of a description here...

The text of the expression.

Returns:
the value of the 'Body' attribute.
See Also:
setBody(String), UML2Package.getOpaqueExpression_Body()

setBody

public void setBody(String value)
Sets the value of the 'Body' attribute.

Parameters:
value - the new value of the 'Body' attribute.
See Also:
getBody()

getLanguage

public String getLanguage()
Returns the value of the 'Language' attribute. The default value is "".

If the meaning of the 'Language' attribute isn't clear, there really should be more of a description here...

Specifies the language in which the expression is stated. The interpretation of the expression body depends on the language. If language is unspecified, it might be implicit from the expression body or the context.

Returns:
the value of the 'Language' attribute.
See Also:
setLanguage(String), UML2Package.getOpaqueExpression_Language()

setLanguage

public void setLanguage(String value)
Sets the value of the 'Language' attribute.

Parameters:
value - the new value of the 'Language' attribute.
See Also:
getLanguage()

getResult

public Parameter getResult()
Returns the value of the 'Result' reference.

If the meaning of the 'Result' reference isn't clear, there really should be more of a description here...

Restricts an opaque expression to return exactly one return result. When the invocation of the opaque expression completes, a single set of values is returned to its owner. This association is derived from the single return result parameter of the associated behavior.

Returns:
the value of the 'Result' reference.
See Also:
UML2Package.getOpaqueExpression_Result()

getBehavior

public Behavior getBehavior()
Returns the value of the 'Behavior' reference.

If the meaning of the 'Behavior' reference isn't clear, there really should be more of a description here...

Specifies the behavior of the opaque expression.

Returns:
the value of the 'Behavior' reference.
See Also:
setBehavior(Behavior), UML2Package.getOpaqueExpression_Behavior()

setBehavior

public void setBehavior(Behavior value)
Sets the value of the 'Behavior' reference.

Parameters:
value - the new value of the 'Behavior' reference.
See Also:
getBehavior()

Copyright 2003, 2004 IBM Corporation and others.
All Rights Reserved.