Class OperationCall
The default implementation of the OperationCall class
[XmlNamespace("http://nmf.codeplex.com/changes")]
[XmlNamespacePrefix("changes")]
[ModelRepresentationClass("http://nmf.codeplex.com/changes#//OperationCall")]
public class OperationCall : ModelChange, IOperationCall, IModelChange, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
OperationCall
- Implements
- Inherited Members
- Extension Methods
Constructors
OperationCall()
Creates a new instance
public OperationCall()
Properties
Arguments
The arguments property
[XmlElementName("arguments")]
[XmlAttribute(true)]
public IListExpression<IOperationArgument> Arguments { get; }
Property Value
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
Operation
The operation property
[XmlElementName("operation")]
[XmlAttribute(true)]
public IOperation Operation { get; set; }
Property Value
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
TargetElement
The targetElement property
[XmlElementName("targetElement")]
[XmlAttribute(true)]
public IModelElement TargetElement { get; set; }
Property Value
Methods
Apply()
Applies the change
public override void Apply()
GetClass()
Gets the Class for this model element
public override IClass GetClass()
Returns
GetCollectionForFeature(string)
Gets the Model element collection for the given feature
protected override IList GetCollectionForFeature(string feature)
Parameters
feature
stringThe requested feature
Returns
- IList
A non-generic list of elements
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
Invert()
Calculates changes that invert the current change
public override IEnumerable<IModelChange> Invert()
Returns
- IEnumerable<IModelChange>
A collection of model changes that invert the current change
OnOperationChanged(ValueChangedEventArgs)
Raises the OperationChanged event
protected virtual void OnOperationChanged(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
OnOperationChanging(ValueChangedEventArgs)
Raises the OperationChanging event
protected virtual void OnOperationChanging(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
OnTargetElementChanged(ValueChangedEventArgs)
Raises the TargetElementChanged event
protected virtual void OnTargetElementChanged(ValueChangedEventArgs eventArgs)
Parameters
eventArgs
ValueChangedEventArgsThe event data
OnTargetElementChanging(ValueChangedEventArgs)
Raises the TargetElementChanging event
protected virtual void OnTargetElementChanging(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
OperationChanged
Gets fired when the Operation property changed its value
public event EventHandler<ValueChangedEventArgs> OperationChanged
Event Type
OperationChanging
Gets fired before the Operation property changes its value
public event EventHandler<ValueChangedEventArgs> OperationChanging
Event Type
TargetElementChanged
Gets fired when the TargetElement property changed its value
public event EventHandler<ValueChangedEventArgs> TargetElementChanged
Event Type
TargetElementChanging
Gets fired before the TargetElement property changes its value
public event EventHandler<ValueChangedEventArgs> TargetElementChanging