Table of Contents

Class OpaqueExpression

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

An OpaqueExpression is a ValueSpecification that specifies the computation of a collection of values either in terms of a UML Behavior or based on a textual statement in a language other than UML <p>From package UML::Values.</p>

[XmlNamespace("http://www.eclipse.org/uml2/5.0.0/UML")]
[XmlNamespacePrefix("uml")]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//OpaqueExpression")]
public class OpaqueExpression : ValueSpecification, IOpaqueExpression, IValueSpecification, ITypedElement, IPackageableElement, IParameterableElement, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
OpaqueExpression
Implements
Inherited Members

Constructors

OpaqueExpression()

Creates a new instance

public OpaqueExpression()

Properties

Behavior

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

[XmlElementName("behavior")]
[XmlAttribute(true)]
public 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)]
public IListExpression<string> Body { get; }

Property Value

IListExpression<string>

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

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)]
public IOrderedSetExpression<string> Language { get; }

Property Value

IOrderedSetExpression<string>

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Methods

GetAttributeValue(string, int)

Resolves the given attribute name

protected override object GetAttributeValue(string attribute, int index)

Parameters

attribute string

The requested attribute name

index int

The index of this attribute

Returns

object

The attribute value or null if it could not be found

GetClass()

Gets the Class for this model element

public override IClass GetClass()

Returns

IClass

GetCollectionForFeature(string)

Gets the Model element collection for the given feature

protected override IList GetCollectionForFeature(string feature)

Parameters

feature string

The requested feature

Returns

IList

A non-generic list of elements

GetExpressionForReference(string)

Gets the property expression for the given reference

protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)

Parameters

reference string

The requested reference in upper case

Returns

INotifyExpression<IModelElement>

An incremental property expression

GetModelElementForReference(string, int)

Resolves the given URI to a child model element

protected override IModelElement GetModelElementForReference(string reference, int index)

Parameters

reference string

The requested reference name

index int

The index of this reference

Returns

IModelElement

The model element or null if it could not be found

GetResult()

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

public 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>

public 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>

public 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>

public 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())

public 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

public 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()

public 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

SetFeature(string, object)

Sets a value to the given feature

protected override void SetFeature(string feature, object value)

Parameters

feature string

The requested feature

value object

The value that should be set to that feature

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>

public int Value()

Returns

int