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

OnBooleanValueCalled(OperationCallEventArgs)

Raises the BooleanValueCalled event

protected virtual void OnBooleanValueCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnBooleanValueCalling(OperationCallEventArgs)

Raises the BooleanValueCalling event

protected virtual void OnBooleanValueCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIntegerValueCalled(OperationCallEventArgs)

Raises the IntegerValueCalled event

protected virtual void OnIntegerValueCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIntegerValueCalling(OperationCallEventArgs)

Raises the IntegerValueCalling event

protected virtual void OnIntegerValueCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsComputableCalled(OperationCallEventArgs)

Raises the IsComputableCalled event

protected virtual void OnIsComputableCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsComputableCalling(OperationCallEventArgs)

Raises the IsComputableCalling event

protected virtual void OnIsComputableCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsNullCalled(OperationCallEventArgs)

Raises the IsNullCalled event

protected virtual void OnIsNullCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsNullCalling(OperationCallEventArgs)

Raises the IsNullCalling event

protected virtual void OnIsNullCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnRealValueCalled(OperationCallEventArgs)

Raises the RealValueCalled event

protected virtual void OnRealValueCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnRealValueCalling(OperationCallEventArgs)

Raises the RealValueCalling event

protected virtual void OnRealValueCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnStringValueCalled(OperationCallEventArgs)

Raises the StringValueCalled event

protected virtual void OnStringValueCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnStringValueCalling(OperationCallEventArgs)

Raises the StringValueCalling event

protected virtual void OnStringValueCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnUnlimitedValueCalled(OperationCallEventArgs)

Raises the UnlimitedValueCalled event

protected virtual void OnUnlimitedValueCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnUnlimitedValueCalling(OperationCallEventArgs)

Raises the UnlimitedValueCalling event

protected virtual void OnUnlimitedValueCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

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

Events

BooleanValueCalled

Gets fired after the operation booleanValue got called

public event EventHandler<OperationCallEventArgs> BooleanValueCalled

Event Type

EventHandler<OperationCallEventArgs>

BooleanValueCalling

Gets fired before the operation booleanValue gets called

public event EventHandler<OperationCallEventArgs> BooleanValueCalling

Event Type

EventHandler<OperationCallEventArgs>

IntegerValueCalled

Gets fired after the operation integerValue got called

public event EventHandler<OperationCallEventArgs> IntegerValueCalled

Event Type

EventHandler<OperationCallEventArgs>

IntegerValueCalling

Gets fired before the operation integerValue gets called

public event EventHandler<OperationCallEventArgs> IntegerValueCalling

Event Type

EventHandler<OperationCallEventArgs>

IsComputableCalled

Gets fired after the operation isComputable got called

public event EventHandler<OperationCallEventArgs> IsComputableCalled

Event Type

EventHandler<OperationCallEventArgs>

IsComputableCalling

Gets fired before the operation isComputable gets called

public event EventHandler<OperationCallEventArgs> IsComputableCalling

Event Type

EventHandler<OperationCallEventArgs>

IsNullCalled

Gets fired after the operation isNull got called

public event EventHandler<OperationCallEventArgs> IsNullCalled

Event Type

EventHandler<OperationCallEventArgs>

IsNullCalling

Gets fired before the operation isNull gets called

public event EventHandler<OperationCallEventArgs> IsNullCalling

Event Type

EventHandler<OperationCallEventArgs>

RealValueCalled

Gets fired after the operation realValue got called

public event EventHandler<OperationCallEventArgs> RealValueCalled

Event Type

EventHandler<OperationCallEventArgs>

RealValueCalling

Gets fired before the operation realValue gets called

public event EventHandler<OperationCallEventArgs> RealValueCalling

Event Type

EventHandler<OperationCallEventArgs>

StringValueCalled

Gets fired after the operation stringValue got called

public event EventHandler<OperationCallEventArgs> StringValueCalled

Event Type

EventHandler<OperationCallEventArgs>

StringValueCalling

Gets fired before the operation stringValue gets called

public event EventHandler<OperationCallEventArgs> StringValueCalling

Event Type

EventHandler<OperationCallEventArgs>

UnlimitedValueCalled

Gets fired after the operation unlimitedValue got called

public event EventHandler<OperationCallEventArgs> UnlimitedValueCalled

Event Type

EventHandler<OperationCallEventArgs>

UnlimitedValueCalling

Gets fired before the operation unlimitedValue gets called

public event EventHandler<OperationCallEventArgs> UnlimitedValueCalling

Event Type

EventHandler<OperationCallEventArgs>