Class OperationCall
The default implementation of the OperationCall class
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#//OperationCall")]
public class OperationCall : ModelChange, IOperationCall, IModelChange, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Constructors
| Edit this page View SourceOperationCall()
Declaration
public OperationCall()
Properties
| Edit this page View SourceArguments
The arguments property
Declaration
[XmlElementName("arguments")]
[XmlAttribute(true)]
public IListExpression<IOperationArgument> Arguments { get; }
Property Value
Type | Description |
---|---|
IListExpression<IOperationArgument> |
ClassInstance
Gets the Class model for this type
Declaration
public static IClass ClassInstance { get; }
Property Value
Type | Description |
---|---|
IClass |
Operation
The operation property
Declaration
[XmlElementName("operation")]
[XmlAttribute(true)]
public IOperation Operation { get; set; }
Property Value
Type | Description |
---|---|
IOperation |
ReferencedElements
Gets the referenced model elements of this model element
Declaration
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Type | Description |
---|---|
IEnumerableExpression<IModelElement> |
Overrides
| Edit this page View SourceTargetElement
The targetElement property
Declaration
[XmlElementName("targetElement")]
[XmlAttribute(true)]
public IModelElement TargetElement { get; set; }
Property Value
Type | Description |
---|---|
IModelElement |
Methods
| Edit this page View SourceApply()
Applies the change
Declaration
public override void Apply()
Overrides
| 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 SourceGetCollectionForFeature(string)
Gets the Model element collection for the given feature
Declaration
protected override IList GetCollectionForFeature(string feature)
Parameters
Type | Name | Description |
---|---|---|
string | feature | The requested feature |
Returns
Type | Description |
---|---|
IList | A non-generic list of elements |
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 SourceInvert()
Calculates changes that invert the current change
Declaration
public override IEnumerable<IModelChange> Invert()
Returns
Type | Description |
---|---|
IEnumerable<IModelChange> | A collection of model changes that invert the current change |
Overrides
| Edit this page View SourceOnOperationChanged(ValueChangedEventArgs)
Raises the OperationChanged event
Declaration
protected virtual void OnOperationChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnOperationChanging(ValueChangedEventArgs)
Raises the OperationChanging event
Declaration
protected virtual void OnOperationChanging(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnTargetElementChanged(ValueChangedEventArgs)
Raises the TargetElementChanged event
Declaration
protected virtual void OnTargetElementChanged(ValueChangedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | eventArgs | The event data |
OnTargetElementChanging(ValueChangedEventArgs)
Raises the TargetElementChanging event
Declaration
protected virtual void OnTargetElementChanging(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 SourceOperationChanged
Gets fired when the Operation property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> OperationChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
OperationChanging
Gets fired before the Operation property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> OperationChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
TargetElementChanged
Gets fired when the TargetElement property changed its value
Declaration
public event EventHandler<ValueChangedEventArgs> TargetElementChanged
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |
TargetElementChanging
Gets fired before the TargetElement property changes its value
Declaration
public event EventHandler<ValueChangedEventArgs> TargetElementChanging
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs> |