Class BubbledChangeEventArgs
Describes that an elementary change in the model elements containment hierarchy has happened
Inherited Members
Namespace: NMF.Models
Assembly: NMF.Models.dll
Syntax
public class BubbledChangeEventArgs : EventArgs
Properties
| Edit this page View SourceChangeType
Gets the type of change that occured. This defines the type of OriginalEventArgs and whether PropertyName is used.
Declaration
public ChangeType ChangeType { get; }
Property Value
Type | Description |
---|---|
ChangeType |
Element
The original model element directly affected by this change
Declaration
public IModelElement Element { get; }
Property Value
Type | Description |
---|---|
IModelElement |
Feature
Gets the feature that was affected from the change or null, if not applicable or could not be loaded
Declaration
public ITypedElement Feature { get; }
Property Value
Type | Description |
---|---|
ITypedElement |
OriginalEventArgs
The original event arguments
Declaration
public EventArgs OriginalEventArgs { get; }
Property Value
Type | Description |
---|---|
EventArgs |
PropertyName
The name of the affected property or null, if no specific property was affected
Declaration
public string PropertyName { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceCollectionChanged(IModelElement, string, NotifyCollectionChangedEventArgs, bool, Lazy<ITypedElement>)
Creates an instance of BubbledChangeEventArgs describing a change in a collection.
Declaration
public static BubbledChangeEventArgs CollectionChanged(IModelElement source, string propertyName, NotifyCollectionChangedEventArgs args, bool requireUris, Lazy<ITypedElement> feature = null)
Parameters
Type | Name | Description |
---|---|---|
IModelElement | source | The model element containing the collection. |
string | propertyName | The name of the collection property. |
NotifyCollectionChangedEventArgs | args | The event data of the original event |
bool | requireUris | Determies whether the event data should obtain the absolute Uris |
Lazy<ITypedElement> | feature | The affected feature |
Returns
Type | Description |
---|---|
BubbledChangeEventArgs | The complete event data |
CollectionChanging(IModelElement, string, NotifyCollectionChangedEventArgs, bool, Lazy<ITypedElement>)
Creates an instance of BubbledChangeEventArgs describing an upcoming change in a collection.
Declaration
public static BubbledChangeEventArgs CollectionChanging(IModelElement source, string propertyName, NotifyCollectionChangedEventArgs args, bool requireUris, Lazy<ITypedElement> feature = null)
Parameters
Type | Name | Description |
---|---|---|
IModelElement | source | The model element containing the collection. |
string | propertyName | The name of the collection property. |
NotifyCollectionChangedEventArgs | args | The event data of the original event |
bool | requireUris | Determines whether the event data should include absolute Uris |
Lazy<ITypedElement> | feature | The affected feature |
Returns
Type | Description |
---|---|
BubbledChangeEventArgs | The complete event data |
ElementCreated(IModelElement, UriChangedEventArgs)
Creates an instance of BubbledChangeEventArgs describing that an element in the tree has been created
Declaration
public static BubbledChangeEventArgs ElementCreated(IModelElement child, UriChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
IModelElement | child | The child that has been created |
UriChangedEventArgs | e | The original event data |
Returns
Type | Description |
---|---|
BubbledChangeEventArgs | A BubbledChange event data container |
ElementDeleted(ModelElement, UriChangedEventArgs)
Creates an instance of BubbledChangeEventArgs describing that an element in the tree has been deleted
Declaration
public static BubbledChangeEventArgs ElementDeleted(ModelElement source, UriChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
ModelElement | source | The element that has been deleted |
UriChangedEventArgs | e | The original event data |
Returns
Type | Description |
---|---|
BubbledChangeEventArgs | A BubbledChange event data container |
OperationCalled(IModelElement, IOperation, OperationCallEventArgs)
Creates an instance of BubbledChangeEventArgs describing that an operation is being called
Declaration
public static BubbledChangeEventArgs OperationCalled(IModelElement source, IOperation operation, OperationCallEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
IModelElement | source | The model element that is the target for the call |
IOperation | operation | The operation that is called |
OperationCallEventArgs | args | The event arguments, including parameters of the call |
Returns
Type | Description |
---|---|
BubbledChangeEventArgs |
OperationCalling(IModelElement, IOperation, OperationCallEventArgs)
Creates an instance of BubbledChangeEventArgs describing that an operation is being called
Declaration
public static BubbledChangeEventArgs OperationCalling(IModelElement source, IOperation operation, OperationCallEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
IModelElement | source | The model element that is the target for the call |
IOperation | operation | The operation that is called |
OperationCallEventArgs | args | The event arguments, including parameters of the call |
Returns
Type | Description |
---|---|
BubbledChangeEventArgs |
PropertyChanged(IModelElement, string, ValueChangedEventArgs, bool, Lazy<ITypedElement>)
Creates an instance of BubbledChangeEventArgs describing a change of a property value.
Declaration
public static BubbledChangeEventArgs PropertyChanged(IModelElement source, string propertyName, ValueChangedEventArgs args, bool requireUris, Lazy<ITypedElement> feature = null)
Parameters
Type | Name | Description |
---|---|---|
IModelElement | source | The model element containing the property. |
string | propertyName | The property name. |
ValueChangedEventArgs | args | The event data of the original event |
bool | requireUris | Determines whether the event data should include absolute Uris |
Lazy<ITypedElement> | feature | The affected feature |
Returns
Type | Description |
---|---|
BubbledChangeEventArgs | The complete event data |
PropertyChanging(IModelElement, string, ValueChangedEventArgs, bool, Lazy<ITypedElement>)
Create an instance of BubbledChangeEventArgs describing an upcoming change of a property value.
Declaration
public static BubbledChangeEventArgs PropertyChanging(IModelElement source, string propertyName, ValueChangedEventArgs eventArgs, bool requireUris, Lazy<ITypedElement> feature = null)
Parameters
Type | Name | Description |
---|---|---|
IModelElement | source | The model element containing the property. |
string | propertyName | The property name. |
ValueChangedEventArgs | eventArgs | The event data of the original event |
bool | requireUris | Determines whether the event data should include absolute Uris |
Lazy<ITypedElement> | feature | The affected feature |
Returns
Type | Description |
---|---|
BubbledChangeEventArgs | The complete event data |
UriChanged(ModelElement, UriChangedEventArgs)
Creates an instance of BubbledChangeEventArgs describing that the Uri of an element has changed
Declaration
public static BubbledChangeEventArgs UriChanged(ModelElement modelElement, UriChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
ModelElement | modelElement | The model element whose uri has changed |
UriChangedEventArgs | e | The original event data |
Returns
Type | Description |
---|---|
BubbledChangeEventArgs | A BubbledChange event data container |