Table of Contents

Class BehavioralFeature

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

A behavioral feature is a feature of a classifier that specifies an aspect of the behavior of its instances.

[XmlNamespace("http://www.omg.org/spec/MOF/20131001/cmof.xmi")]
[XmlNamespacePrefix("cmof")]
[ModelRepresentationClass("http://www.omg.org/spec/MOF/20131001/cmof.xmi#//BehavioralFeature")]
public abstract class BehavioralFeature : Namespace, IBehavioralFeature, IFeature, IRedefinableElement, INamespace, INamedElement, IElement, IObject, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
BehavioralFeature
Implements
Inherited Members

Constructors

BehavioralFeature()

Creates a new instance

public BehavioralFeature()

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

IsLeaf

Indicates whether it is possible to further redefine a RedefinableElement. If the value is true, then it is not possible to further redefine the RedefinableElement. Note that this property is preserved through package merge operations; that is, the capability to redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in the resulting RedefinableElement of a package merge operation where a RedefinableElement with isLeaf=false is merged with a matching RedefinableElement with isLeaf=true: the resulting RedefinableElement will have isLeaf=false. Default value is false.

[TypeConverter(typeof(LowercaseBooleanConverter))]
[XmlElementName("isLeaf")]
[XmlAttribute(true)]
public bool IsLeaf { get; set; }

Property Value

bool

IsStatic

Specifies whether this feature characterizes individual instances classified by the classifier (false) or the classifier itself (true).

[TypeConverter(typeof(LowercaseBooleanConverter))]
[XmlElementName("isStatic")]
[XmlAttribute(true)]
public bool IsStatic { get; set; }

Property Value

bool

OwnedParameter

Specifies the ordered set of formal parameters of this BehavioralFeature.

[Browsable(false)]
[XmlElementName("ownedParameter")]
[XmlAttribute(false)]
[Containment]
public IOrderedSetExpression<IParameter> OwnedParameter { get; }

Property Value

IOrderedSetExpression<IParameter>

RaisedException

References the Types representing exceptions that may be raised during an invocation of this feature.

[XmlElementName("raisedException")]
[XmlAttribute(true)]
public ISetExpression<IType> RaisedException { get; }

Property Value

ISetExpression<IType>

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Methods

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

GetCollectionForFeature(string)

Gets the Model element collection for the given feature

protected override IList GetCollectionForFeature(string feature)

Parameters

feature string

The requested feature

Returns

IList

A non-generic list of elements

GetCompositionName(object)

Gets the property name for the given container

protected override string GetCompositionName(object container)

Parameters

container object

The container object

Returns

string

The name of the respective container reference

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

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

IsConsistentWith(IRedefinableElement)

The query isConsistentWith() specifies, for any two RedefinableElements in a context in which redefinition is possible, whether redefinition would be logically consistent. By default, this is false; this operation must be overridden for subclasses of RedefinableElement to define the consistency conditions. redefinee.isRedefinitionContextValid(self) result = false

public bool IsConsistentWith(IRedefinableElement redefinee)

Parameters

redefinee IRedefinableElement

Returns

bool

IsRedefinitionContextValid(IRedefinableElement)

The query isRedefinitionContextValid() specifies whether the redefinition contexts of this RedefinableElement are properly related to the redefinition contexts of the specified RedefinableElement to allow this element to redefine the other. By default at least one of the redefinition contexts of this element must be a specialization of at least one of the redefinition contexts of the specified element. result = redefinitionContext->exists(c | c.allParents()->includes(redefined.redefinitionContext)))

public bool IsRedefinitionContextValid(IRedefinableElement redefined)

Parameters

redefined IRedefinableElement

Returns

bool

Non_leaf_redefinition(object, object)

A redefinable element can only redefine non-leaf redefinable elements self.redefinedElement->forAll(not isLeaf)

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

OnIsConsistentWithCalled(OperationCallEventArgs)

Raises the IsConsistentWithCalled event

protected virtual void OnIsConsistentWithCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsConsistentWithCalling(OperationCallEventArgs)

Raises the IsConsistentWithCalling event

protected virtual void OnIsConsistentWithCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsLeafChanged(ValueChangedEventArgs)

Raises the IsLeafChanged event

protected virtual void OnIsLeafChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnIsLeafChanging(ValueChangedEventArgs)

Raises the IsLeafChanging event

protected virtual void OnIsLeafChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnIsRedefinitionContextValidCalled(OperationCallEventArgs)

Raises the IsRedefinitionContextValidCalled event

protected virtual void OnIsRedefinitionContextValidCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsRedefinitionContextValidCalling(OperationCallEventArgs)

Raises the IsRedefinitionContextValidCalling event

protected virtual void OnIsRedefinitionContextValidCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnIsStaticChanged(ValueChangedEventArgs)

Raises the IsStaticChanged event

protected virtual void OnIsStaticChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnIsStaticChanging(ValueChangedEventArgs)

Raises the IsStaticChanging event

protected virtual void OnIsStaticChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnNon_leaf_redefinitionCalled(OperationCallEventArgs)

Raises the Non_leaf_redefinitionCalled event

protected virtual void OnNon_leaf_redefinitionCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnNon_leaf_redefinitionCalling(OperationCallEventArgs)

Raises the Non_leaf_redefinitionCalling event

protected virtual void OnNon_leaf_redefinitionCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnRedefinition_consistentCalled(OperationCallEventArgs)

Raises the Redefinition_consistentCalled event

protected virtual void OnRedefinition_consistentCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnRedefinition_consistentCalling(OperationCallEventArgs)

Raises the Redefinition_consistentCalling event

protected virtual void OnRedefinition_consistentCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnRedefinition_context_validCalled(OperationCallEventArgs)

Raises the Redefinition_context_validCalled event

protected virtual void OnRedefinition_context_validCalled(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

OnRedefinition_context_validCalling(OperationCallEventArgs)

Raises the Redefinition_context_validCalling event

protected virtual void OnRedefinition_context_validCalling(OperationCallEventArgs eventArgs)

Parameters

eventArgs OperationCallEventArgs

The event data

Redefinition_consistent(object, object)

A redefining element must be consistent with each redefined element. self.redefinedElement->forAll(re | re.isConsistentWith(self))

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

Redefinition_context_valid(object, object)

At least one of the redefinition contexts of the redefining element must be a specialization of at least one of the redefinition contexts for each redefined element. self.redefinedElement->forAll(e | self.isRedefinitionContextValid(e))

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

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

Events

IsConsistentWithCalled

Gets fired after the operation isConsistentWith got called

public event EventHandler<OperationCallEventArgs> IsConsistentWithCalled

Event Type

EventHandler<OperationCallEventArgs>

IsConsistentWithCalling

Gets fired before the operation isConsistentWith gets called

public event EventHandler<OperationCallEventArgs> IsConsistentWithCalling

Event Type

EventHandler<OperationCallEventArgs>

IsLeafChanged

Gets fired when the IsLeaf property changed its value

public event EventHandler<ValueChangedEventArgs> IsLeafChanged

Event Type

EventHandler<ValueChangedEventArgs>

IsLeafChanging

Gets fired before the IsLeaf property changes its value

public event EventHandler<ValueChangedEventArgs> IsLeafChanging

Event Type

EventHandler<ValueChangedEventArgs>

IsRedefinitionContextValidCalled

Gets fired after the operation isRedefinitionContextValid got called

public event EventHandler<OperationCallEventArgs> IsRedefinitionContextValidCalled

Event Type

EventHandler<OperationCallEventArgs>

IsRedefinitionContextValidCalling

Gets fired before the operation isRedefinitionContextValid gets called

public event EventHandler<OperationCallEventArgs> IsRedefinitionContextValidCalling

Event Type

EventHandler<OperationCallEventArgs>

IsStaticChanged

Gets fired when the IsStatic property changed its value

public event EventHandler<ValueChangedEventArgs> IsStaticChanged

Event Type

EventHandler<ValueChangedEventArgs>

IsStaticChanging

Gets fired before the IsStatic property changes its value

public event EventHandler<ValueChangedEventArgs> IsStaticChanging

Event Type

EventHandler<ValueChangedEventArgs>

Non_leaf_redefinitionCalled

Gets fired after the operation non_leaf_redefinition got called

public event EventHandler<OperationCallEventArgs> Non_leaf_redefinitionCalled

Event Type

EventHandler<OperationCallEventArgs>

Non_leaf_redefinitionCalling

Gets fired before the operation non_leaf_redefinition gets called

public event EventHandler<OperationCallEventArgs> Non_leaf_redefinitionCalling

Event Type

EventHandler<OperationCallEventArgs>

Redefinition_consistentCalled

Gets fired after the operation redefinition_consistent got called

public event EventHandler<OperationCallEventArgs> Redefinition_consistentCalled

Event Type

EventHandler<OperationCallEventArgs>

Redefinition_consistentCalling

Gets fired before the operation redefinition_consistent gets called

public event EventHandler<OperationCallEventArgs> Redefinition_consistentCalling

Event Type

EventHandler<OperationCallEventArgs>

Redefinition_context_validCalled

Gets fired after the operation redefinition_context_valid got called

public event EventHandler<OperationCallEventArgs> Redefinition_context_validCalled

Event Type

EventHandler<OperationCallEventArgs>

Redefinition_context_validCalling

Gets fired before the operation redefinition_context_valid gets called

public event EventHandler<OperationCallEventArgs> Redefinition_context_validCalling

Event Type

EventHandler<OperationCallEventArgs>