Table of Contents

Class ValueSpecification

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

ValueSpecification is an abstract metaclass used to identify a value or values in a model. It may reference an instance or it may be an expression denoting an instance or instances when evaluated. It adds a specialization to Constructs::TypedElement.

[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#//ValueSpecification")]
public abstract class ValueSpecification : TypedElement, IValueSpecification, IPackageableElement, ITypedElement, INamedElement, IElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
ValueSpecification
Implements
Derived
Inherited Members

Properties

Children

Gets the child model elements of this model element

public override IEnumerableExpression<IModelElement> Children { get; }

Property Value

IEnumerableExpression<IModelElement>

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

Methods

BooleanValue()

The query booleanValue() gives a single Boolean value when one can be computed. result = Set{}

public bool BooleanValue()

Returns

bool

GetClass()

Gets the Class for this model element

public override IClass GetClass()

Returns

IClass

IntegerValue()

The query integerValue() gives a single Integer value when one can be computed. result = Set{}

public int IntegerValue()

Returns

int

IsComputable()

The query isComputable() determines whether a value specification can be computed in a model. This operation cannot be fully defined in OCL. A conforming implementation is expected to deliver true for this operation for all value specifications that it can compute, and to compute all of those for which the operation is true. A conforming implementation is expected to be able to compute the value of all literals. result = false

public bool IsComputable()

Returns

bool

IsNull()

The query isNull() returns true when it can be computed that the value is null. result = false

public bool IsNull()

Returns

bool

StringValue()

The query stringValue() gives a single String value when one can be computed. result = Set{}

public string StringValue()

Returns

string

UnlimitedValue()

The query unlimitedValue() gives a single UnlimitedNatural value when one can be computed. result = Set{}

public int UnlimitedValue()

Returns

int