Table of Contents

Interface IMultiplicityElement

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

The public interface for MultiplicityElement

[DefaultImplementationType(typeof(MultiplicityElement))]
[XmlDefaultImplementationType(typeof(MultiplicityElement))]
[ModelRepresentationClass("http://www.omg.org/spec/MOF/20131001/cmof.xmi#//MultiplicityElement")]
public interface IMultiplicityElement : IElement, IObject, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inherited Members

Properties

IsOrdered

For a multivalued multiplicity, this attribute specifies whether the values in an instantiation of this element are sequentially ordered.

[TypeConverter(typeof(LowercaseBooleanConverter))]
[XmlElementName("isOrdered")]
[XmlAttribute(true)]
bool IsOrdered { get; set; }

Property Value

bool

IsUnique

For a multivalued multiplicity, this attributes specifies whether the values in an instantiation of this element are unique.

[TypeConverter(typeof(LowercaseBooleanConverter))]
[XmlElementName("isUnique")]
[XmlAttribute(true)]
bool IsUnique { get; set; }

Property Value

bool

LowerValue

The specification of the lower bound for this multiplicity.

[Browsable(false)]
[XmlElementName("lowerValue")]
[XmlAttribute(false)]
[Containment]
IValueSpecification LowerValue { get; set; }

Property Value

IValueSpecification

UpperValue

The specification of the upper bound for this multiplicity.

[Browsable(false)]
[XmlElementName("upperValue")]
[XmlAttribute(false)]
[Containment]
IValueSpecification UpperValue { get; set; }

Property Value

IValueSpecification

Methods

IncludesCardinality(int)

The query includesCardinality() checks whether the specified cardinality is valid for this multiplicity. result = (lowerBound() <= C) and (upperBound() >= C) upperBound()->notEmpty() and lowerBound()->notEmpty()

bool IncludesCardinality(int c)

Parameters

c int

Returns

bool

IncludesMultiplicity(IMultiplicityElement)

The query includesMultiplicity() checks whether this multiplicity includes all the cardinalities allowed by the specified multiplicity. result = (self.lowerBound() <= M.lowerBound()) and (self.upperBound() >= M.upperBound()) self.upperBound()->notEmpty() and self.lowerBound()->notEmpty() and M.upperBound()->notEmpty() and M.lowerBound()->notEmpty()

bool IncludesMultiplicity(IMultiplicityElement m)

Parameters

m IMultiplicityElement

Returns

bool

IsMultivalued()

The query isMultivalued() checks whether this multiplicity has an upper bound greater than one. upperBound()->notEmpty() result = upperBound() > 1

bool IsMultivalued()

Returns

bool

LowerBound()

The query lowerBound() returns the lower bound of the multiplicity as an integer. result = if lowerValue->isEmpty() then 1 else lowerValue.integerValue() endif

int LowerBound()

Returns

int

Lower_ge_0(object, object)

The lower bound must be a non-negative integer literal. lowerBound()->notEmpty() implies lowerBound() >= 0

bool Lower_ge_0(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

UpperBound()

The query upperBound() returns the upper bound of the multiplicity for a bounded multiplicity as an unlimited natural. result = if upperValue->isEmpty() then 1 else upperValue.unlimitedValue() endif

void UpperBound()

Upper_ge_lower(object, object)

The upper bound must be greater than or equal to the lower bound. (upperBound()->notEmpty() and lowerBound()->notEmpty()) implies upperBound() >= lowerBound()

bool Upper_ge_lower(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

Value_specification_constant(object, object)

If a non-literal ValueSpecification is used for the lower or upper bound, then that specification must be a constant expression. true

bool Value_specification_constant(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

Value_specification_no_side_effects(object, object)

If a non-literal ValueSpecification is used for the lower or upper bound, then evaluating that specification must not have side effects. true

bool Value_specification_no_side_effects(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

Events

IncludesCardinalityCalled

Gets fired after the operation includesCardinality got called

event EventHandler<OperationCallEventArgs> IncludesCardinalityCalled

Event Type

EventHandler<OperationCallEventArgs>

IncludesCardinalityCalling

Gets fired before the operation includesCardinality gets called

event EventHandler<OperationCallEventArgs> IncludesCardinalityCalling

Event Type

EventHandler<OperationCallEventArgs>

IncludesMultiplicityCalled

Gets fired after the operation includesMultiplicity got called

event EventHandler<OperationCallEventArgs> IncludesMultiplicityCalled

Event Type

EventHandler<OperationCallEventArgs>

IncludesMultiplicityCalling

Gets fired before the operation includesMultiplicity gets called

event EventHandler<OperationCallEventArgs> IncludesMultiplicityCalling

Event Type

EventHandler<OperationCallEventArgs>

IsMultivaluedCalled

Gets fired after the operation isMultivalued got called

event EventHandler<OperationCallEventArgs> IsMultivaluedCalled

Event Type

EventHandler<OperationCallEventArgs>

IsMultivaluedCalling

Gets fired before the operation isMultivalued gets called

event EventHandler<OperationCallEventArgs> IsMultivaluedCalling

Event Type

EventHandler<OperationCallEventArgs>

IsOrderedChanged

Gets fired when the IsOrdered property changed its value

event EventHandler<ValueChangedEventArgs> IsOrderedChanged

Event Type

EventHandler<ValueChangedEventArgs>

IsOrderedChanging

Gets fired before the IsOrdered property changes its value

event EventHandler<ValueChangedEventArgs> IsOrderedChanging

Event Type

EventHandler<ValueChangedEventArgs>

IsUniqueChanged

Gets fired when the IsUnique property changed its value

event EventHandler<ValueChangedEventArgs> IsUniqueChanged

Event Type

EventHandler<ValueChangedEventArgs>

IsUniqueChanging

Gets fired before the IsUnique property changes its value

event EventHandler<ValueChangedEventArgs> IsUniqueChanging

Event Type

EventHandler<ValueChangedEventArgs>

LowerBoundCalled

Gets fired after the operation lowerBound got called

event EventHandler<OperationCallEventArgs> LowerBoundCalled

Event Type

EventHandler<OperationCallEventArgs>

LowerBoundCalling

Gets fired before the operation lowerBound gets called

event EventHandler<OperationCallEventArgs> LowerBoundCalling

Event Type

EventHandler<OperationCallEventArgs>

LowerValueChanged

Gets fired when the LowerValue property changed its value

event EventHandler<ValueChangedEventArgs> LowerValueChanged

Event Type

EventHandler<ValueChangedEventArgs>

LowerValueChanging

Gets fired before the LowerValue property changes its value

event EventHandler<ValueChangedEventArgs> LowerValueChanging

Event Type

EventHandler<ValueChangedEventArgs>

Lower_ge_0Called

Gets fired after the operation lower_ge_0 got called

event EventHandler<OperationCallEventArgs> Lower_ge_0Called

Event Type

EventHandler<OperationCallEventArgs>

Lower_ge_0Calling

Gets fired before the operation lower_ge_0 gets called

event EventHandler<OperationCallEventArgs> Lower_ge_0Calling

Event Type

EventHandler<OperationCallEventArgs>

UpperBoundCalled

Gets fired after the operation upperBound got called

event EventHandler<OperationCallEventArgs> UpperBoundCalled

Event Type

EventHandler<OperationCallEventArgs>

UpperBoundCalling

Gets fired before the operation upperBound gets called

event EventHandler<OperationCallEventArgs> UpperBoundCalling

Event Type

EventHandler<OperationCallEventArgs>

UpperValueChanged

Gets fired when the UpperValue property changed its value

event EventHandler<ValueChangedEventArgs> UpperValueChanged

Event Type

EventHandler<ValueChangedEventArgs>

UpperValueChanging

Gets fired before the UpperValue property changes its value

event EventHandler<ValueChangedEventArgs> UpperValueChanging

Event Type

EventHandler<ValueChangedEventArgs>

Upper_ge_lowerCalled

Gets fired after the operation upper_ge_lower got called

event EventHandler<OperationCallEventArgs> Upper_ge_lowerCalled

Event Type

EventHandler<OperationCallEventArgs>

Upper_ge_lowerCalling

Gets fired before the operation upper_ge_lower gets called

event EventHandler<OperationCallEventArgs> Upper_ge_lowerCalling

Event Type

EventHandler<OperationCallEventArgs>

Value_specification_constantCalled

Gets fired after the operation value_specification_constant got called

event EventHandler<OperationCallEventArgs> Value_specification_constantCalled

Event Type

EventHandler<OperationCallEventArgs>

Value_specification_constantCalling

Gets fired before the operation value_specification_constant gets called

event EventHandler<OperationCallEventArgs> Value_specification_constantCalling

Event Type

EventHandler<OperationCallEventArgs>

Value_specification_no_side_effectsCalled

Gets fired after the operation value_specification_no_side_effects got called

event EventHandler<OperationCallEventArgs> Value_specification_no_side_effectsCalled

Event Type

EventHandler<OperationCallEventArgs>

Value_specification_no_side_effectsCalling

Gets fired before the operation value_specification_no_side_effects gets called

event EventHandler<OperationCallEventArgs> Value_specification_no_side_effectsCalling

Event Type

EventHandler<OperationCallEventArgs>