Table of Contents

Interface IOpaqueExpression

Namespace
NMF.Interop.Uml
Assembly
NMF.UMLInterop.dll

The public interface for OpaqueExpression

[DefaultImplementationType(typeof(OpaqueExpression))]
[XmlDefaultImplementationType(typeof(OpaqueExpression))]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//OpaqueExpression")]
public interface IOpaqueExpression : IValueSpecification, ITypedElement, IPackageableElement, IParameterableElement, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inherited Members

Properties

Behavior

Specifies the behavior of the OpaqueExpression as a UML Behavior. <p>From package UML::Values.</p>

[XmlElementName("behavior")]
[XmlAttribute(true)]
IBehavior Behavior { get; set; }

Property Value

IBehavior

Body

A textual definition of the behavior of the OpaqueExpression, possibly in multiple languages. <p>From package UML::Values.</p>

[XmlElementName("body")]
[XmlAttribute(true)]
IListExpression<string> Body { get; }

Property Value

IListExpression<string>

Language

Specifies the languages used to express the textual bodies of the OpaqueExpression. Languages are matched to body Strings by order. The interpretation of the body depends on the languages. If the languages are unspecified, they may be implicit from the expression body or the context. <p>From package UML::Values.</p>

[XmlElementName("language")]
[XmlAttribute(true)]
IOrderedSetExpression<string> Language { get; }

Property Value

IOrderedSetExpression<string>

Methods

GetResult()

Derivation for OpaqueExpression::/result result = (if behavior = null then null else behavior.ownedParameter->first() endif) <p>From package UML::Values.</p>

IParameter GetResult()

Returns

IParameter

IsIntegral()

The query isIntegral() tells whether an expression is intended to produce an Integer. result = (false) <p>From package UML::Values.</p>

bool IsIntegral()

Returns

bool

IsNonNegative()

The query isNonNegative() tells whether an integer expression has a non-negative value. self.isIntegral() result = (false) <p>From package UML::Values.</p>

bool IsNonNegative()

Returns

bool

IsPositive()

The query isPositive() tells whether an integer expression has a positive value. self.isIntegral() result = (false) <p>From package UML::Values.</p>

bool IsPositive()

Returns

bool

Language_body_size(object, object)

If the language attribute is not empty, then the size of the body and language arrays must be the same. language->notEmpty() implies (_'body'->size() = language->size())

bool Language_body_size(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

One_return_result_parameter(object, object)

The behavior must have exactly one return result parameter. behavior <> null implies behavior.ownedParameter->select(direction=ParameterDirectionKind::return)->size() = 1

bool One_return_result_parameter(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

Only_return_result_parameters(object, object)

The behavior may only have return result parameters. behavior <> null implies behavior.ownedParameter->select(direction<>ParameterDirectionKind::return)->isEmpty()

bool Only_return_result_parameters(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

Value()

The query value() gives an integer value for an expression intended to produce one. self.isIntegral() result = (0) <p>From package UML::Values.</p>

int Value()

Returns

int