Table of Contents

Class ConsiderIgnoreFragment

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

A ConsiderIgnoreFragment is a kind of CombinedFragment that is used for the consider and ignore cases, which require lists of pertinent Messages to be specified. <p>From package UML::Interactions.</p>

[XmlNamespace("http://www.eclipse.org/uml2/5.0.0/UML")]
[XmlNamespacePrefix("uml")]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//ConsiderIgnoreFragment")]
public class ConsiderIgnoreFragment : CombinedFragment, IConsiderIgnoreFragment, ICombinedFragment, IInteractionFragment, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
ConsiderIgnoreFragment
Implements
Inherited Members

Constructors

ConsiderIgnoreFragment()

Creates a new instance

public ConsiderIgnoreFragment()

Properties

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

Message

The set of messages that apply to this fragment. <p>From package UML::Interactions.</p>

[XmlElementName("message")]
[XmlAttribute(true)]
public ISetExpression<INamedElement> Message { get; }

Property Value

ISetExpression<INamedElement>

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Methods

Consider_or_ignore(object, object)

The interaction operator of a ConsiderIgnoreFragment must be either 'consider' or 'ignore'. (interactionOperator = InteractionOperatorKind::consider) or (interactionOperator = InteractionOperatorKind::ignore)

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

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

Type(object, object)

The NamedElements must be of a type of element that can be a signature for a message (i.e.., an Operation, or a Signal). message->forAll(m | m.oclIsKindOf(Operation) or m.oclIsKindOf(Signal))

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