Class OpaqueExpression
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
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
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
Methods
GetAttributeValue(string, int)
Resolves the given attribute name
protected override object GetAttributeValue(string attribute, int index)
Parameters
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
GetCollectionForFeature(string)
Gets the Model element collection for the given feature
protected override IList GetCollectionForFeature(string feature)
Parameters
feature
stringThe 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
IsNonNegative()
The query isNonNegative() tells whether an integer expression has a non-negative value. self.isIntegral() result = false
public bool IsNonNegative()
Returns
IsPositive()
The query isPositive() tells whether an integer expression has a positive value. self.isIntegral() result = false
public bool IsPositive()
Returns
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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
Value()
The query value() gives an integer value for an expression intended to produce one. true self.isIntegral()
public int Value()