Class ElementaryChange
The default implementation of the ElementaryChange class
Inheritance
Implements
Inherited Members
Namespace: NMF.Models.Changes
Assembly: NMF.Models.dll
Syntax
[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
Properties
| Edit this page View SourceAffectedElement
The affectedElement property
Declaration
[XmlElementName("affectedElement")]
[XmlAttribute(true)]
public IModelElement AffectedElement { get; set; }
Property Value
Type | Description |
---|---|
IModelElement |
ClassInstance
Gets the Class model for this type
Declaration
public static IClass ClassInstance { get; }
Property Value
Type | Description |
---|---|
IClass |
Feature
The feature property
Declaration
[XmlElementName("feature")]
[XmlAttribute(true)]
public ITypedElement Feature { get; set; }
Property Value
Type | Description |
---|---|
ITypedElement |
ReferencedElements
Gets the referenced model elements of this model element
Declaration
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Type | Description |
---|---|
IEnumerableExpression<IModelElement> |
Overrides
Methods
| Edit this page View SourceGetClass()
Gets the Class for this model element
Declaration
public override IClass GetClass()
Returns
Type | Description |
---|---|
IClass |
Overrides
| Edit this page View SourceGetExpressionForReference(string)
Gets the property expression for the given reference
Declaration
protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)
Parameters
Type | Name | Description |
---|---|---|
string | reference | The requested reference in upper case |
Returns
Type | Description |
---|---|
INotifyExpression<IModelElement> | An incremental property expression |
Overrides
| Edit this page View SourceGetModelElementForReference(string, int)
Resolves the given URI to a child model element
Declaration
protected override IModelElement GetModelElementForReference(string reference, int index)
Parameters
Type | Name | Description |
---|---|---|
string | reference | The requested reference name |
int | index | The index of this reference |
Returns
Type | Description |
---|---|
IModelElement | The model element or null if it could not be found |
Overrides
| Edit this page View SourceOnAffectedElementChanged(ValueChangedEventArgs)
Raises the AffectedElementChanged event
Declaration
protected virtual void OnAffectedElementChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnAffectedElementChanging(ValueChangedEventArgs)
Raises the AffectedElementChanging event
Declaration
protected virtual void OnAffectedElementChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnFeatureChanged(ValueChangedEventArgs)
Raises the FeatureChanged event
Declaration
protected virtual void OnFeatureChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnFeatureChanging(ValueChangedEventArgs)
Raises the FeatureChanging event
Declaration
protected virtual void OnFeatureChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
SetFeature(string, object)
Sets a value to the given feature
Declaration
protected override void SetFeature(string feature, object value)
Parameters
Type | Name | Description |
---|---|---|
string | feature | The requested feature |
object | value | The value that should be set to that feature |
Overrides
Events
| Edit this page View SourceAffectedElementChanged
Gets fired when the AffectedElement property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> AffectedElementChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
AffectedElementChanging
Gets fired before the AffectedElement property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> AffectedElementChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
FeatureChanged
Gets fired when the Feature property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> FeatureChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
FeatureChanging
Gets fired before the Feature property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> FeatureChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |