Table of Contents

Class ValueSpecification

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

A value specification is the specification of a (possibly empty) set of instances, including both objects and data values.

[XmlNamespace("http://www.omg.org/spec/MOF/20131001/cmof.xmi")]
[XmlNamespacePrefix("cmof")]
[ModelRepresentationClass("http://www.omg.org/spec/MOF/20131001/cmof.xmi#//ValueSpecification")]
public abstract class ValueSpecification : TypedElement, IValueSpecification, IPackageableElement, ITypedElement, INamedElement, IElement, IObject, 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

RealValue()

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

public double RealValue()

Returns

double

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 void UnlimitedValue()