Table of Contents

Class BehavioralFeature

Namespace
NMF.Interop.Uml
Assembly
NMF.UMLInterop.dll

A BehavioralFeature is a feature of a Classifier that specifies an aspect of the behavior of its instances. A BehavioralFeature is implemented (realized) by a Behavior. A BehavioralFeature specifies that a Classifier will respond to a designated request by invoking its implementing method. <p>From package UML::Classification.</p>

[XmlNamespace("http://www.eclipse.org/uml2/5.0.0/UML")]
[XmlNamespacePrefix("uml")]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//BehavioralFeature")]
public abstract class BehavioralFeature : Namespace, IBehavioralFeature, IFeature, IRedefinableElement, INamespace, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
BehavioralFeature
Implements
Derived
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

Concurrency

Specifies the semantics of concurrent calls to the same passive instance (i.e., an instance originating from a Class with isActive being false). Active instances control access to their own BehavioralFeatures. <p>From package UML::Classification.</p>

[XmlElementName("concurrency")]
[XmlAttribute(true)]
public CallConcurrencyKind Concurrency { get; set; }

Property Value

CallConcurrencyKind

IsAbstract

If true, then the BehavioralFeature does not have an implementation, and one must be supplied by a more specific Classifier. If false, the BehavioralFeature must have an implementation in the Classifier or one must be inherited. <p>From package UML::Classification.</p>

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

Property Value

bool

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. <p>From package UML::Classification.</p>

[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). <p>From package UML::Classification.</p>

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

Property Value

bool

Method

A Behavior that implements the BehavioralFeature. There may be at most one Behavior for a particular pairing of a Classifier (as owner of the Behavior) and a BehavioralFeature (as specification of the Behavior). <p>From package UML::Classification.</p>

[XmlElementName("method")]
[XmlAttribute(true)]
[XmlOpposite("specification")]
public ISetExpression<IBehavior> Method { get; }

Property Value

ISetExpression<IBehavior>

OwnedParameter

The ordered set of formal Parameters of this BehavioralFeature. <p>From package UML::Classification.</p>

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

Property Value

IOrderedSetExpression<IParameter>

OwnedParameterSet

The ParameterSets owned by this BehavioralFeature. <p>From package UML::Classification.</p>

[Browsable(false)]
[XmlElementName("ownedParameterSet")]
[XmlAttribute(false)]
[Containment]
public IOrderedSetExpression<IParameterSet> OwnedParameterSet { get; }

Property Value

IOrderedSetExpression<IParameterSet>

RaisedException

The Types representing exceptions that may be raised during an invocation of this BehavioralFeature. <p>From package UML::Classification.</p>

[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

Abstract_no_method(object, object)

When isAbstract is true there are no methods. isAbstract implies method->isEmpty()

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

CreateReturnResult(string, IType)

Creates a return result parameter with the specified name and type.

public IParameter CreateReturnResult(string name, IType type)

Parameters

name string

The name for the new return result, or null.

type IType

The type for the new return result, or null.

Returns

IParameter

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

InputParameters()

The ownedParameters with direction in and inout. result = (ownedParameter->select(direction=ParameterDirectionKind::_'in' or direction=ParameterDirectionKind::inout)) <p>From package UML::Classification.</p>

public IOrderedSetExpression<IParameter> InputParameters()

Returns

IOrderedSetExpression<IParameter>

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. redefiningElement.isRedefinitionContextValid(self) result = (false) <p>From package UML::Classification.</p>

public bool IsConsistentWith(IRedefinableElement redefiningElement)

Parameters

redefiningElement 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()->includesAll(redefinedElement.redefinitionContext))) <p>From package UML::Classification.</p>

public bool IsRedefinitionContextValid(IRedefinableElement redefinedElement)

Parameters

redefinedElement IRedefinableElement

Returns

bool

Non_leaf_redefinition(object, object)

A RedefinableElement can only redefine non-leaf RedefinableElements. redefinedElement->forAll(re | not re.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

OutputParameters()

The ownedParameters with direction out, inout, or return. result = (ownedParameter->select(direction=ParameterDirectionKind::out or direction=ParameterDirectionKind::inout or direction=ParameterDirectionKind::return)) <p>From package UML::Classification.</p>

public IOrderedSetExpression<IParameter> OutputParameters()

Returns

IOrderedSetExpression<IParameter>

Redefinition_consistent(object, object)

A redefining element must be consistent with each redefined element. 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. redefinedElement->forAll(re | self.isRedefinitionContextValid(re))

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