Class ElementaryChange
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
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
Feature
The feature property
[XmlElementName("feature")]
[XmlAttribute(true)]
public ITypedElement Feature { get; set; }
Property Value
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Methods
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
GetExpressionForReference(string)
Gets the property expression for the given reference
protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)
Parameters
reference
stringThe 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
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
ValueChangedEventArgsThe event data
OnAffectedElementChanging(ValueChangedEventArgs)
Raises the AffectedElementChanging event
protected virtual void OnAffectedElementChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
OnFeatureChanged(ValueChangedEventArgs)
Raises the FeatureChanged event
protected virtual void OnFeatureChanged(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
OnFeatureChanging(ValueChangedEventArgs)
Raises the FeatureChanging event
protected virtual void OnFeatureChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)
Parameters
Events
AffectedElementChanged
Gets fired when the AffectedElement property changed its value
public event EventHandler<ValueChangedEventArgs> AffectedElementChanged
Event Type
AffectedElementChanging
Gets fired before the AffectedElement property changes its value
public event EventHandler<ValueChangedEventArgs> AffectedElementChanging
Event Type
FeatureChanged
Gets fired when the Feature property changed its value
public event EventHandler<ValueChangedEventArgs> FeatureChanged
Event Type
FeatureChanging
Gets fired before the Feature property changes its value
public event EventHandler<ValueChangedEventArgs> FeatureChanging