Table of Contents

Class OpaqueExpression

Namespace
NMF.Interop.Cmof
Assembly
NMF.UMLInterop.dll

An opaque expression is an uninterpreted textual statement that denotes a (possibly empty) set of values when evaluated in a context.

[XmlNamespace("http://www.omg.org/spec/MOF/20131001/cmof.xmi")]
[XmlNamespacePrefix("cmof")]
[ModelRepresentationClass("http://www.omg.org/spec/MOF/20131001/cmof.xmi#//OpaqueExpression")]
public class OpaqueExpression : ValueSpecification, IOpaqueExpression, IValueSpecification, IPackageableElement, ITypedElement, INamedElement, IElement, IObject, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
OpaqueExpression
Implements
Inherited Members

Constructors

OpaqueExpression()

Creates a new instance

public OpaqueExpression()

Properties

Body

The text of the expression, possibly in multiple languages.

[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 in which the expression is stated. The interpretation of the expression body depends on the languages. If the languages are unspecified, they might be implicit from the expression body or the context. Languages are matched to body strings by order.

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

Property Value

IOrderedSetExpression<string>

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

IsIntegral()

The query isIntegral() tells whether an expression is intended to produce an integer. result = false

public bool IsIntegral()

Returns

bool

IsNonNegative()

The query isNonNegative() tells whether an integer expression has a non-negative value. self.isIntegral() result = false

public bool IsNonNegative()

Returns

bool

IsPositive()

The query isPositive() tells whether an integer expression has a positive value. self.isIntegral() result = false

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

OnIsIntegralCalled(OperationCallEventArgs)

Raises the IsIntegralCalled event

protected virtual void OnIsIntegralCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsIntegralCalling(OperationCallEventArgs)

Raises the IsIntegralCalling event

protected virtual void OnIsIntegralCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsNonNegativeCalled(OperationCallEventArgs)

Raises the IsNonNegativeCalled event

protected virtual void OnIsNonNegativeCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsNonNegativeCalling(OperationCallEventArgs)

Raises the IsNonNegativeCalling event

protected virtual void OnIsNonNegativeCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsPositiveCalled(OperationCallEventArgs)

Raises the IsPositiveCalled event

protected virtual void OnIsPositiveCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsPositiveCalling(OperationCallEventArgs)

Raises the IsPositiveCalling event

protected virtual void OnIsPositiveCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnLanguage_body_sizeCalled(OperationCallEventArgs)

Raises the Language_body_sizeCalled event

protected virtual void OnLanguage_body_sizeCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnLanguage_body_sizeCalling(OperationCallEventArgs)

Raises the Language_body_sizeCalling event

protected virtual void OnLanguage_body_sizeCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnValueCalled(OperationCallEventArgs)

Raises the ValueCalled event

protected virtual void OnValueCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnValueCalling(OperationCallEventArgs)

Raises the ValueCalling event

protected virtual void OnValueCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

Value()

The query value() gives an integer value for an expression intended to produce one. true self.isIntegral()

public int Value()

Returns

int

Events

IsIntegralCalled

Gets fired after the operation isIntegral got called

public event EventHandler<OperationCallEventArgs> IsIntegralCalled

Event Type

EventHandler<OperationCallEventArgs>

IsIntegralCalling

Gets fired before the operation isIntegral gets called

public event EventHandler<OperationCallEventArgs> IsIntegralCalling

Event Type

EventHandler<OperationCallEventArgs>

IsNonNegativeCalled

Gets fired after the operation isNonNegative got called

public event EventHandler<OperationCallEventArgs> IsNonNegativeCalled

Event Type

EventHandler<OperationCallEventArgs>

IsNonNegativeCalling

Gets fired before the operation isNonNegative gets called

public event EventHandler<OperationCallEventArgs> IsNonNegativeCalling

Event Type

EventHandler<OperationCallEventArgs>

IsPositiveCalled

Gets fired after the operation isPositive got called

public event EventHandler<OperationCallEventArgs> IsPositiveCalled

Event Type

EventHandler<OperationCallEventArgs>

IsPositiveCalling

Gets fired before the operation isPositive gets called

public event EventHandler<OperationCallEventArgs> IsPositiveCalling

Event Type

EventHandler<OperationCallEventArgs>

Language_body_sizeCalled

Gets fired after the operation language_body_size got called

public event EventHandler<OperationCallEventArgs> Language_body_sizeCalled

Event Type

EventHandler<OperationCallEventArgs>

Language_body_sizeCalling

Gets fired before the operation language_body_size gets called

public event EventHandler<OperationCallEventArgs> Language_body_sizeCalling

Event Type

EventHandler<OperationCallEventArgs>

ValueCalled

Gets fired after the operation value got called

public event EventHandler<OperationCallEventArgs> ValueCalled

Event Type

EventHandler<OperationCallEventArgs>

ValueCalling

Gets fired before the operation value gets called

public event EventHandler<OperationCallEventArgs> ValueCalling

Event Type

EventHandler<OperationCallEventArgs>