Class OpaqueExpression
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
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
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
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
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { 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
GetExpressionForReference(string)
Gets the property expression for the given reference
protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)
Parameters
reference
stringThe 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
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
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
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
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
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
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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)
Parameters
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()