/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { if ((this._parent.ProvidedRole_EntryLevelSystemCall == null)) { IOperationProvidedRole providedRole_EntryLevelSystemCallCasted = item.As <IOperationProvidedRole>(); if ((providedRole_EntryLevelSystemCallCasted != null)) { this._parent.ProvidedRole_EntryLevelSystemCall = providedRole_EntryLevelSystemCallCasted; return; } } if ((this._parent.OperationSignature__EntryLevelSystemCall == null)) { IOperationSignature operationSignature__EntryLevelSystemCallCasted = item.As <IOperationSignature>(); if ((operationSignature__EntryLevelSystemCallCasted != null)) { this._parent.OperationSignature__EntryLevelSystemCall = operationSignature__EntryLevelSystemCallCasted; return; } } IVariableUsage outputParameterUsages_EntryLevelSystemCallCasted = item.As <IVariableUsage>(); if ((outputParameterUsages_EntryLevelSystemCallCasted != null)) { this._parent.OutputParameterUsages_EntryLevelSystemCall.Add(outputParameterUsages_EntryLevelSystemCallCasted); } IVariableUsage inputParameterUsages_EntryLevelSystemCallCasted = item.As <IVariableUsage>(); if ((inputParameterUsages_EntryLevelSystemCallCasted != null)) { this._parent.InputParameterUsages_EntryLevelSystemCall.Add(inputParameterUsages_EntryLevelSystemCallCasted); } }
/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { IOperationSignature signatures__OperationInterfaceCasted = item.As <IOperationSignature>(); if ((signatures__OperationInterfaceCasted != null)) { this._parent.Signatures__OperationInterface.Add(signatures__OperationInterfaceCasted); } }
/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { IOperationSignature operationSignatureItem = item.As <IOperationSignature>(); if (((operationSignatureItem != null) && this._parent.Signatures__OperationInterface.Remove(operationSignatureItem))) { return(true); } return(false); }