Table of Contents

Class Parameter

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

A parameter is a specification of an argument used to pass information into or out of an invocation of a behavioral feature.

[XmlNamespace("http://www.omg.org/spec/MOF/20131001/cmof.xmi")]
[XmlNamespacePrefix("cmof")]
[ModelRepresentationClass("http://www.omg.org/spec/MOF/20131001/cmof.xmi#//Parameter")]
public class Parameter : MultiplicityElement, IParameter, ITypedElement, INamedElement, IMultiplicityElement, IElement, IObject, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
Parameter
Implements
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

DefaultValue

Specifies a ValueSpecification that represents a value to be used when no argument is supplied for the Parameter.

[Browsable(false)]
[XmlElementName("defaultValue")]
[XmlAttribute(false)]
[Containment]
public IValueSpecification DefaultValue { get; set; }

Property Value

IValueSpecification

Direction

Indicates whether a parameter is being sent into or out of a behavioral element.

[XmlElementName("direction")]
[XmlAttribute(true)]
public ParameterDirectionKind Direction { get; set; }

Property Value

ParameterDirectionKind

IsIdentified

Gets a value indicating whether the current model element can be identified by an attribute value

public override bool IsIdentified { get; }

Property Value

bool

Name

The name of the NamedElement.

[XmlElementName("name")]
[Id]
[XmlAttribute(true)]
public string Name { get; set; }

Property Value

string

Operation

References the Operation owning this parameter.

[XmlElementName("operation")]
[XmlAttribute(true)]
public IOperation Operation { get; set; }

Property Value

IOperation

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Type

This information is derived from the return result for this Operation. The type of the TypedElement.

[XmlElementName("type")]
[XmlAttribute(true)]
public IType Type { get; set; }

Property Value

IType

Visibility

Determines where the NamedElement appears within different Namespaces within the overall model, and its accessibility.

[XmlElementName("visibility")]
[XmlAttribute(true)]
public VisibilityKind? Visibility { get; set; }

Property Value

VisibilityKind?

Methods

AllNamespaces()

The query allNamespaces() gives the sequence of namespaces in which the NamedElement is nested, working outwards. result = if self.namespace->isEmpty() then Sequence{} else self.namespace.allNamespaces()->prepend(self.namespace) endif

public IOrderedSetExpression<INamespace> AllNamespaces()

Returns

IOrderedSetExpression<INamespace>

GetAttributeValue(string, int)

Resolves the given attribute name

protected override object GetAttributeValue(string attribute, int index)

Parameters

attribute string

The requested attribute name

index int

The index of this attribute

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

IClass

GetExpressionForAttribute(string)

Gets the property expression for the given attribute

protected override INotifyExpression<object> GetExpressionForAttribute(string attribute)

Parameters

attribute string

The requested attribute in upper case

Returns

INotifyExpression<object>

An incremental property expression

GetExpressionForReference(string)

Gets the property expression for the given reference

protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)

Parameters

reference string

The 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

reference string

The requested reference name

index int

The index of this reference

Returns

IModelElement

The model element or null if it could not be found

GetRelativePathForNonIdentifiedChild(IModelElement)

Gets the relative URI fragment for the given child model element

protected override string GetRelativePathForNonIdentifiedChild(IModelElement element)

Parameters

element IModelElement

The element that should be looked for

Returns

string

A fragment of the relative URI

Has_no_qualified_name(object, object)

If there is no name, or one of the containing namespaces has no name, there is no qualified name. (self.name->isEmpty() or self.allNamespaces()->select(ns | ns.name->isEmpty())->notEmpty()) implies self.qualifiedName->isEmpty()

public bool Has_no_qualified_name(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

Has_qualified_name(object, object)

When there is a name, and all of the containing namespaces have a name, the qualified name is constructed from the names of the containing namespaces. (self.name->notEmpty() and self.allNamespaces()->select(ns | ns.name->isEmpty())->isEmpty()) implies self.qualifiedName = self.allNamespaces()->iterate( ns : Namespace; result: String = self.name | ns.name->union(self.separator())->union(result))

public bool Has_qualified_name(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

IsDistinguishableFrom(INamedElement, INamespace)

The query isDistinguishableFrom() determines whether two NamedElements may logically co-exist within a Namespace. By default, two named elements are distinguishable if (a) they have unrelated types or (b) they have related types but different names. result = if self.oclIsKindOf(n.oclType) or n.oclIsKindOf(self.oclType) then ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->isEmpty() else true endif

public bool IsDistinguishableFrom(INamedElement n, INamespace ns)

Parameters

n INamedElement
ns INamespace

Returns

bool

OnAllNamespacesCalled(OperationCallEventArgs)

Raises the AllNamespacesCalled event

protected virtual void OnAllNamespacesCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnAllNamespacesCalling(OperationCallEventArgs)

Raises the AllNamespacesCalling event

protected virtual void OnAllNamespacesCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnDefaultValueChanged(ValueChangedEventArgs)

Raises the DefaultValueChanged event

protected virtual void OnDefaultValueChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnDefaultValueChanging(ValueChangedEventArgs)

Raises the DefaultValueChanging event

protected virtual void OnDefaultValueChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnDirectionChanged(ValueChangedEventArgs)

Raises the DirectionChanged event

protected virtual void OnDirectionChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnDirectionChanging(ValueChangedEventArgs)

Raises the DirectionChanging event

protected virtual void OnDirectionChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnHas_no_qualified_nameCalled(OperationCallEventArgs)

Raises the Has_no_qualified_nameCalled event

protected virtual void OnHas_no_qualified_nameCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnHas_no_qualified_nameCalling(OperationCallEventArgs)

Raises the Has_no_qualified_nameCalling event

protected virtual void OnHas_no_qualified_nameCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnHas_qualified_nameCalled(OperationCallEventArgs)

Raises the Has_qualified_nameCalled event

protected virtual void OnHas_qualified_nameCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnHas_qualified_nameCalling(OperationCallEventArgs)

Raises the Has_qualified_nameCalling event

protected virtual void OnHas_qualified_nameCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsDistinguishableFromCalled(OperationCallEventArgs)

Raises the IsDistinguishableFromCalled event

protected virtual void OnIsDistinguishableFromCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsDistinguishableFromCalling(OperationCallEventArgs)

Raises the IsDistinguishableFromCalling event

protected virtual void OnIsDistinguishableFromCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnNameChanged(ValueChangedEventArgs)

Raises the NameChanged event

protected virtual void OnNameChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnNameChanging(ValueChangedEventArgs)

Raises the NameChanging event

protected virtual void OnNameChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnOperationChanged(ValueChangedEventArgs)

Raises the OperationChanged event

protected virtual void OnOperationChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnOperationChanging(ValueChangedEventArgs)

Raises the OperationChanging event

protected virtual void OnOperationChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnSeparatorCalled(OperationCallEventArgs)

Raises the SeparatorCalled event

protected virtual void OnSeparatorCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnSeparatorCalling(OperationCallEventArgs)

Raises the SeparatorCalling event

protected virtual void OnSeparatorCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnTypeChanged(ValueChangedEventArgs)

Raises the TypeChanged event

protected virtual void OnTypeChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnTypeChanging(ValueChangedEventArgs)

Raises the TypeChanging event

protected virtual void OnTypeChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnVisibilityChanged(ValueChangedEventArgs)

Raises the VisibilityChanged event

protected virtual void OnVisibilityChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnVisibilityChanging(ValueChangedEventArgs)

Raises the VisibilityChanging event

protected virtual void OnVisibilityChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnVisibility_needs_ownershipCalled(OperationCallEventArgs)

Raises the Visibility_needs_ownershipCalled event

protected virtual void OnVisibility_needs_ownershipCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnVisibility_needs_ownershipCalling(OperationCallEventArgs)

Raises the Visibility_needs_ownershipCalling event

protected virtual void OnVisibility_needs_ownershipCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

Separator()

The query separator() gives the string that is used to separate names when constructing a qualified name. result = '::'

public string Separator()

Returns

string

SetFeature(string, object)

Sets a value to the given feature

protected override void SetFeature(string feature, object value)

Parameters

feature string

The requested feature

value object

The value that should be set to that feature

ToIdentifierString()

Gets the identifier string for this model element

public override string ToIdentifierString()

Returns

string

The identifier string

Visibility_needs_ownership(object, object)

If a NamedElement is not owned by a Namespace, it does not have a visibility. namespace->isEmpty() implies visibility->isEmpty()

public bool Visibility_needs_ownership(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

AllNamespacesCalled

Gets fired after the operation allNamespaces got called

public event EventHandler<OperationCallEventArgs> AllNamespacesCalled

Event Type

EventHandler<OperationCallEventArgs>

AllNamespacesCalling

Gets fired before the operation allNamespaces gets called

public event EventHandler<OperationCallEventArgs> AllNamespacesCalling

Event Type

EventHandler<OperationCallEventArgs>

DefaultValueChanged

Gets fired when the DefaultValue property changed its value

public event EventHandler<ValueChangedEventArgs> DefaultValueChanged

Event Type

EventHandler<ValueChangedEventArgs>

DefaultValueChanging

Gets fired before the DefaultValue property changes its value

public event EventHandler<ValueChangedEventArgs> DefaultValueChanging

Event Type

EventHandler<ValueChangedEventArgs>

DirectionChanged

Gets fired when the Direction property changed its value

public event EventHandler<ValueChangedEventArgs> DirectionChanged

Event Type

EventHandler<ValueChangedEventArgs>

DirectionChanging

Gets fired before the Direction property changes its value

public event EventHandler<ValueChangedEventArgs> DirectionChanging

Event Type

EventHandler<ValueChangedEventArgs>

Has_no_qualified_nameCalled

Gets fired after the operation has_no_qualified_name got called

public event EventHandler<OperationCallEventArgs> Has_no_qualified_nameCalled

Event Type

EventHandler<OperationCallEventArgs>

Has_no_qualified_nameCalling

Gets fired before the operation has_no_qualified_name gets called

public event EventHandler<OperationCallEventArgs> Has_no_qualified_nameCalling

Event Type

EventHandler<OperationCallEventArgs>

Has_qualified_nameCalled

Gets fired after the operation has_qualified_name got called

public event EventHandler<OperationCallEventArgs> Has_qualified_nameCalled

Event Type

EventHandler<OperationCallEventArgs>

Has_qualified_nameCalling

Gets fired before the operation has_qualified_name gets called

public event EventHandler<OperationCallEventArgs> Has_qualified_nameCalling

Event Type

EventHandler<OperationCallEventArgs>

IsDistinguishableFromCalled

Gets fired after the operation isDistinguishableFrom got called

public event EventHandler<OperationCallEventArgs> IsDistinguishableFromCalled

Event Type

EventHandler<OperationCallEventArgs>

IsDistinguishableFromCalling

Gets fired before the operation isDistinguishableFrom gets called

public event EventHandler<OperationCallEventArgs> IsDistinguishableFromCalling

Event Type

EventHandler<OperationCallEventArgs>

NameChanged

Gets fired when the Name property changed its value

public event EventHandler<ValueChangedEventArgs> NameChanged

Event Type

EventHandler<ValueChangedEventArgs>

NameChanging

Gets fired before the Name property changes its value

public event EventHandler<ValueChangedEventArgs> NameChanging

Event Type

EventHandler<ValueChangedEventArgs>

OperationChanged

Gets fired when the Operation property changed its value

public event EventHandler<ValueChangedEventArgs> OperationChanged

Event Type

EventHandler<ValueChangedEventArgs>

OperationChanging

Gets fired before the Operation property changes its value

public event EventHandler<ValueChangedEventArgs> OperationChanging

Event Type

EventHandler<ValueChangedEventArgs>

SeparatorCalled

Gets fired after the operation separator got called

public event EventHandler<OperationCallEventArgs> SeparatorCalled

Event Type

EventHandler<OperationCallEventArgs>

SeparatorCalling

Gets fired before the operation separator gets called

public event EventHandler<OperationCallEventArgs> SeparatorCalling

Event Type

EventHandler<OperationCallEventArgs>

TypeChanged

Gets fired when the Type property changed its value

public event EventHandler<ValueChangedEventArgs> TypeChanged

Event Type

EventHandler<ValueChangedEventArgs>

TypeChanging

Gets fired before the Type property changes its value

public event EventHandler<ValueChangedEventArgs> TypeChanging

Event Type

EventHandler<ValueChangedEventArgs>

VisibilityChanged

Gets fired when the Visibility property changed its value

public event EventHandler<ValueChangedEventArgs> VisibilityChanged

Event Type

EventHandler<ValueChangedEventArgs>

VisibilityChanging

Gets fired before the Visibility property changes its value

public event EventHandler<ValueChangedEventArgs> VisibilityChanging

Event Type

EventHandler<ValueChangedEventArgs>

Visibility_needs_ownershipCalled

Gets fired after the operation visibility_needs_ownership got called

public event EventHandler<OperationCallEventArgs> Visibility_needs_ownershipCalled

Event Type

EventHandler<OperationCallEventArgs>

Visibility_needs_ownershipCalling

Gets fired before the operation visibility_needs_ownership gets called

public event EventHandler<OperationCallEventArgs> Visibility_needs_ownershipCalling

Event Type

EventHandler<OperationCallEventArgs>