Table of Contents

Class OpaqueExpression

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

An opaque expression contains language-specific text strings used to describe a value or values, and an optional specification of the languages.

[AlternativeNamespace("http://schema.omg.org/spec/mof/2.0/emof.xmi")]
[XmlNamespace("http://schema.omg.org/spec/MOF/2.0/cmof.xml")]
[XmlNamespacePrefix("cmof")]
[ModelRepresentationClass("http://schema.omg.org/spec/MOF/2.0/cmof.xml#//OpaqueExpression")]
public class OpaqueExpression : ValueSpecification, IOpaqueExpression, IValueSpecification, IPackageableElement, ITypedElement, INamedElement, IElement, 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.

[LowerBound(1)]
[XmlElementName("body")]
[XmlAttribute(true)]
public IOrderedSetExpression<string> Body { get; }

Property Value

IOrderedSetExpression<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 language. If languages are unspecified, it 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