Table of Contents

Class ElementaryChange

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

The default implementation of the ElementaryChange class

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

Properties

AffectedElement

The affectedElement property

[XmlElementName("affectedElement")]
[XmlAttribute(true)]
public IModelElement AffectedElement { get; set; }

Property Value

IModelElement

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

Feature

The feature property

[XmlElementName("feature")]
[XmlAttribute(true)]
public ITypedElement Feature { get; set; }

Property Value

ITypedElement

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Methods

GetClass()

Gets the Class for this model element

public override IClass GetClass()

Returns

IClass

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

OnAffectedElementChanged(ValueChangedEventArgs)

Raises the AffectedElementChanged event

protected virtual void OnAffectedElementChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnAffectedElementChanging(ValueChangedEventArgs)

Raises the AffectedElementChanging event

protected virtual void OnAffectedElementChanging(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnFeatureChanged(ValueChangedEventArgs)

Raises the FeatureChanged event

protected virtual void OnFeatureChanged(ValueChangedEventArgs eventArgs)

Parameters

eventArgs ValueChangedEventArgs

The event data

OnFeatureChanging(ValueChangedEventArgs)

Raises the FeatureChanging event

protected virtual void OnFeatureChanging(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

AffectedElementChanged

Gets fired when the AffectedElement property changed its value

public event EventHandler<ValueChangedEventArgs> AffectedElementChanged

Event Type

EventHandler<ValueChangedEventArgs>

AffectedElementChanging

Gets fired before the AffectedElement property changes its value

public event EventHandler<ValueChangedEventArgs> AffectedElementChanging

Event Type

EventHandler<ValueChangedEventArgs>

FeatureChanged

Gets fired when the Feature property changed its value

public event EventHandler<ValueChangedEventArgs> FeatureChanged

Event Type

EventHandler<ValueChangedEventArgs>

FeatureChanging

Gets fired before the Feature property changes its value

public event EventHandler<ValueChangedEventArgs> FeatureChanging

Event Type

EventHandler<ValueChangedEventArgs>