Table of Contents

Class ActivityPartition

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

An ActivityPartition is a kind of ActivityGroup for identifying ActivityNodes that have some characteristic in common. <p>From package UML::Activities.</p>

[XmlNamespace("http://www.eclipse.org/uml2/5.0.0/UML")]
[XmlNamespacePrefix("uml")]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//ActivityPartition")]
public class ActivityPartition : ActivityGroup, IActivityPartition, IActivityGroup, IActivityContent, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
ActivityPartition
Implements
Inherited Members

Constructors

ActivityPartition()

Creates a new instance

public ActivityPartition()

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

Edge

ActivityEdges immediately contained in the ActivityPartition. <p>From package UML::Activities.</p>

[XmlElementName("edge")]
[XmlAttribute(true)]
[XmlOpposite("inPartition")]
public ISetExpression<IActivityEdge> Edge { get; }

Property Value

ISetExpression<IActivityEdge>

IsDimension

Indicates whether the ActivityPartition groups other ActivityPartitions along a dimension. <p>From package UML::Activities.</p>

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

Property Value

bool

IsExternal

Indicates whether the ActivityPartition represents an entity to which the partitioning structure does not apply. <p>From package UML::Activities.</p>

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

Property Value

bool

Node

ActivityNodes immediately contained in the ActivityPartition. <p>From package UML::Activities.</p>

[XmlElementName("node")]
[XmlAttribute(true)]
[XmlOpposite("inPartition")]
public ISetExpression<IActivityNode> Node { get; }

Property Value

ISetExpression<IActivityNode>

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Represents

An Element represented by the functionality modeled within the ActivityPartition. <p>From package UML::Activities.</p>

[XmlElementName("represents")]
[XmlAttribute(true)]
public IElement Represents { get; set; }

Property Value

IElement

Subpartition

Other ActivityPartitions immediately contained in this ActivityPartition (as its subgroups). <p>From package UML::Activities.</p>

[Browsable(false)]
[XmlElementName("subpartition")]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("superPartition")]
public IOrderedSetExpression<IActivityPartition> Subpartition { get; }

Property Value

IOrderedSetExpression<IActivityPartition>

SuperPartition

Other ActivityPartitions immediately containing this ActivityPartition (as its superGroups). <p>From package UML::Activities.</p>

[Browsable(false)]
[XmlElementName("superPartition")]
[XmlAttribute(true)]
[XmlOpposite("subpartition")]
public IActivityPartition SuperPartition { get; set; }

Property Value

IActivityPartition

Methods

Dimension_not_contained(object, object)

An ActvivityPartition with isDimension = true may not be contained by another ActivityPartition. isDimension implies superPartition->isEmpty()

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

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

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

OnParentChanged(IModelElement, IModelElement)

Gets called when the parent model element of the current model element changes

protected override void OnParentChanged(IModelElement newParent, IModelElement oldParent)

Parameters

newParent IModelElement

The new parent model element

oldParent IModelElement

The old parent model element

OnParentChanging(IModelElement, IModelElement)

Gets called when the parent model element of the current model element is about to change

protected override void OnParentChanging(IModelElement newParent, IModelElement oldParent)

Parameters

newParent IModelElement

The new parent model element

oldParent IModelElement

The old parent model element

Represents_classifier(object, object)

If a non-external ActivityPartition represents a Classifier and has a superPartition, then the superPartition must represent a Classifier, and the Classifier of the subpartition must be nested (nestedClassifier or ownedBehavior) in the Classifier represented by the superPartition, or be at the contained end of a composition Association with the Classifier represented by the superPartition. (not isExternal and represents.oclIsKindOf(Classifier) and superPartition->notEmpty()) implies ( let representedClassifier : Classifier = represents.oclAsType(Classifier) in superPartition.represents.oclIsKindOf(Classifier) and let representedSuperClassifier : Classifier = superPartition.represents.oclAsType(Classifier) in (representedSuperClassifier.oclIsKindOf(BehavioredClassifier) and representedClassifier.oclIsKindOf(Behavior) and representedSuperClassifier.oclAsType(BehavioredClassifier).ownedBehavior->includes(representedClassifier.oclAsType(Behavior))) or (representedSuperClassifier.oclIsKindOf(Class) and representedSuperClassifier.oclAsType(Class).nestedClassifier->includes(representedClassifier)) or (Association.allInstances()->exists(a | a.memberEnd->exists(end1 | end1.isComposite and end1.type = representedClassifier and a.memberEnd->exists(end2 | end1<>end2 and end2.type = representedSuperClassifier)))) )

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

Represents_property(object, object)

If an ActivityPartition represents a Property and has a superPartition representing a Classifier, then all the other non-external subpartitions of the superPartition must represent Properties directly owned by the same Classifier. (represents.oclIsKindOf(Property) and superPartition->notEmpty() and superPartition.represents.oclIsKindOf(Classifier)) implies ( let representedClassifier : Classifier = superPartition.represents.oclAsType(Classifier) in superPartition.subpartition->reject(isExternal)->forAll(p | p.represents.oclIsKindOf(Property) and p.owner=representedClassifier) )

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

Represents_property_and_is_contained(object, object)

If an ActivityPartition represents a Property and has a superPartition, then the Property must be of a Classifier represented by the superPartition, or of a Classifier that is the type of a Property represented by the superPartition. (represents.oclIsKindOf(Property) and superPartition->notEmpty()) implies ( (superPartition.represents.oclIsKindOf(Classifier) and represents.owner = superPartition.represents) or (superPartition.represents.oclIsKindOf(Property) and represents.owner = superPartition.represents.oclAsType(Property).type) )

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