Table of Contents

Class OperationCall

Namespace
NMF.Models.Changes
Assembly
NMF.Models.dll

The default implementation of the OperationCall class

[XmlNamespace("http://nmf.codeplex.com/changes")]
[XmlNamespacePrefix("changes")]
[ModelRepresentationClass("http://nmf.codeplex.com/changes#//OperationCall")]
public class OperationCall : ModelChange, IOperationCall, IModelChange, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
OperationCall
Implements
Inherited Members
Extension Methods

Constructors

OperationCall()

Creates a new instance

public OperationCall()

Properties

Arguments

The arguments property

[XmlElementName("arguments")]
[XmlAttribute(true)]
public IListExpression<IOperationArgument> Arguments { get; }

Property Value

IListExpression<IOperationArgument>

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

Operation

The operation property

[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>

TargetElement

The targetElement property

[XmlElementName("targetElement")]
[XmlAttribute(true)]
public IModelElement TargetElement { get; set; }

Property Value

IModelElement

Methods

Apply()

Applies the change

public override void Apply()

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

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

Invert()

Calculates changes that invert the current change

public override IEnumerable<IModelChange> Invert()

Returns

IEnumerable<IModelChange>

A collection of model changes that invert the current change

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

OnTargetElementChanged(ValueChangedEventArgs)

Raises the TargetElementChanged event

protected virtual void OnTargetElementChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnTargetElementChanging(ValueChangedEventArgs)

Raises the TargetElementChanging event

protected virtual void OnTargetElementChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

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

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>

TargetElementChanged

Gets fired when the TargetElement property changed its value

public event EventHandler<ValueChangedEventArgs> TargetElementChanged

Event Type

EventHandler<ValueChangedEventArgs>

TargetElementChanging

Gets fired before the TargetElement property changes its value

public event EventHandler<ValueChangedEventArgs> TargetElementChanging

Event Type

EventHandler<ValueChangedEventArgs>